Ruttensoft
asked on
fastest way to compare 2 bitmaps
Hello
What's the fastest way to compare 2 bitmaps?
Comparing with GetPixel is veeeeery slow...
I just want to know if bitmap a is the same as b or not...
What's the fastest way to compare 2 bitmaps?
Comparing with GetPixel is veeeeery slow...
I just want to know if bitmap a is the same as b or not...
The fastest way is to compare internal bitmap structure, by taking the HBITMAP handle of each.
It is extremely complex, have a look to the C++ code:
http://www.codeproject.com/useritems/BitmapCompare.asp
It is extremely complex, have a look to the C++ code:
http://www.codeproject.com/useritems/BitmapCompare.asp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Another interesting debate is present here from
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1057994&SiteID=1
If important thing is not the pixels to be equals, just human readable eye difference, then jo0ls
has given good argument
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1057994&SiteID=1
If important thing is not the pixels to be equals, just human readable eye difference, then jo0ls
has given good argument
Open in new window