Determining if images are roughly equal
Determining if images are roughly equal
- Subject: Determining if images are roughly equal
- From: Jan Van Tol <email@hidden>
- Date: Fri, 31 Jan 2003 21:25:25 -0600
Can someone suggest a method for roughly comparing NSImages? I am
creating a disk caching mechanism for my app, and I need a way to check
if an image downloaded from the web (could be in any format) is equal
to an NSImage I've created from a PNG on disk. -isEqual doesn't cut
it, since it seems to compare all sorts of stuff that has probably
changed in the process. Can I rely on an NSImage created from a PNG
created from some web image to be comparable to an NSImage created from
the same web image?
I could use TIFFs instead of PNG, but I rather avoid it due to the
relatively large file size.
Thanks in advance!
-Jan Van Tol
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.