I need some help comparing to picture boxes. I guess the question is how. I was think in of saving all the rgb values of the points into an array. Then comparing the two arrays. Is there a better way??
Basically, if picturebox1 = picturebox2 then do somthing cool. I am grabing areas of the screen, putting them in picture boxes and I need to compare them to see if it is the same image.
Thanks in advance for any help
You could start by checking the height & width - if they are different then so are the images...
If you do have to do a pixel-by-pixel check, then, if your pictureboxes are large, it will be quite slow to do the comparison using the pb.point(x,y) method. You'd be better to grab the bitmaps associated with the image and then the data array inside it & compare those.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.