• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Determining if images are roughly equal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: menu outlet in IB doesn't work for some views/controls?
  • Previous by thread: Loading NSView subclasses from a Nib
  • Index(es):
    • Date
    • Thread