• 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
Re: Grayscale NSImage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grayscale NSImage?


  • Subject: Re: Grayscale NSImage?
  • From: John Randolph <email@hidden>
  • Date: Mon, 16 Feb 2004 11:29:13 -0800

Umm... Let me give you a warning about the Monochrome Image sample. I used the ReadPixel() function in that code, and that's not something you want to do if you're going to convert images frequently. It does have the advantage of not caring what the format of the original image is, though.

If you need to convert from color to greyscale in a more efficient manner, I'd recommend an approach more like that of the ImageDifference sample, where I wrote NSBitmapImageRep methods to generate negatives.

-jcr


John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.

References: 
 >Grayscale NSImage? (From: Colin Cornaby <email@hidden>)
 >Re: Grayscale NSImage? (From: Ryan Bates <email@hidden>)

  • Prev by Date: Re: Slow Cocoa
  • Next by Date: Re: General Question: Debugging these "NS" Objects: Answered
  • Previous by thread: Re: Grayscale NSImage?
  • Next by thread: Spinning wait cursor in COCOA
  • Index(es):
    • Date
    • Thread