ios - Comparing UIImage -


How can I compare an image to someone else?

Thank you!

If you have two UIImages, you can send quartz representations from your CGImageRef Those items should then get two new bitmap references supported by a memory buffer that you create and pass, for each image to draw images in one again bitmap references CGContextDrawImage Use now images are in bytes buffers for you to transfer again Can loop manually or via memcmp .

Apple has its own elaborate interpretation and sample code regarding the creation of bitmap contexts and the drawing is in them:

The difference for you is that You are portraying an existing image in context. Use CGContextDrawImage for this.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -