Ask a Question

Bitmap comparison fails!!

sunrays123
Occasional Contributor

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 3
baxatob
Community Hero

Your images are not 100% equal. 

 

You can play with such settings as Pixel and Color Tolerance >>>

 

And about factors affecting image comparison >>> 

 

 

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
Occasional Contributor

Thanks for the suggestion. It worked for me!

cancel
Showing results for 
Search instead for 
Did you mean: