do you know any source or info about comparing images within as3/flash?
I want to compare two images and check if the images are the same or not.
Check this example:
http://imageshack.us/photo/my-images/825/imagecompare.jpg/
Any clues? Thank you in advance!
In addition to the duplicate answers,
I believe you can also use BitmapData.compare()
An example taken from the link, consider the following two BitmapData objects:
Code Sample (for Percentage Difference) :
Don’t how correct the results are, this is what I brewed up for a percentage :
where : info is a TextBox, mc1 & mc2 are two movieclips on stage.
I think you can make it better by comparing individual values (i.e how much different a pixel is) rather than a boolean is-pixel-similar match.
Result: (White space around the round image would be included)