Re: Grayscale NSImage?
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.