Problem comparing 2 bitmaps
-
Tuesday, March 20, 2012 2:47 PM
Hi,
I have the code below on a timer( “b” is a bitmap )
If Not (Clipboard.GetImage Is Nothing) Then
If Not (Clipboard.GetImage.Clone Is b) Then
b = Clipboard.GetImage.Clone
RaiseEvent NewClipboardImageEntry(b)
End If
End If
The problem is that it raises the event even if the picture didn’t change.
Any help on comparing the 2 images without actually comparing them pixel by pixel (too slow to do the job)?
Muscalu Ștefan ~~~~ Student
- Edited by Muscalu Stefan Gabriel Tuesday, March 20, 2012 3:30 PM
All Replies
-
Tuesday, March 20, 2012 3:29 PM
Of course, using LockBits (facepalm).
Muscalu Ștefan ~~~~ Student- Marked As Answer by Muscalu Stefan Gabriel Tuesday, March 20, 2012 3:29 PM
-
Thursday, March 22, 2012 3:42 AMModerator
Hi Muscalu,
Thanks for your post.
I’m glad to hear that you found a good idea to resolve your question. Thanks for sharing your solutions and experience here, it will be very beneficial for other community members who have similar questions.
Have a nice day.
Mark Liu-lxf [MSFT]
MSDN Community Support | Feedback to us

