Forum Discussion

sunrays123's avatar
sunrays123
Occasional Contributor
7 years ago

Bitmap comparison fails!!

Hi, I want to compare two bitmaps and using Picture.Compare method for the same but the result says the two images are not identical while the images look same with a minute pixel difference.

Can anyone suggest how to resolve this problem?

 

Attached is the bitmaps images.

3 Replies

  • aPrivett's avatar
    aPrivett
    Occasional Contributor

    Make sure ClearType is the same for recording and playback  (a real problem if the playback machine is a different machine than the one you recorded on).

     

    (Note: Image comparison should be a last resort because there are too many things that can go wrong)

     

    How to set ClearType on Windows 7:

    • Right-click in desktop
    • Personalize
    • In bottom/Left, Display
    • In Top/Left, Adjust ClearType text

     

    On Windows 10:

    • Right-click in desktop
    • Personalize
    • In Top/Left, Find a Setting Box”, type literally, “Adjust ClearType”, but no quotes.

     

    If you are VM'ng, the "Font Smoothing" on the "Experience" tab shown below in attached rdp.png  is what turns on "ClearType".

    • sunrays123's avatar
      sunrays123
      Occasional Contributor

      Thanks for the suggestion. It worked for me!