Re: Problem with converting an NSImage to grayscale
Re: Problem with converting an NSImage to grayscale
- Subject: Re: Problem with converting an NSImage to grayscale
- From: Heinrich Giesen <email@hidden>
- Date: Tue, 30 Aug 2005 17:00:58 +0200
On 30.08.2005, at 16:31, John C. Randolph wrote:
The Image Difference sample is correct, for versions of OS X prior
to Tiger. The point I was making is that it's no longer necessary
to do this at all, since CoreImage has a filter that does the RGB
to grayscale mapping according to the NTSC formula.
I fully agree and I hope you do not feel offended by my remarks.
I did not know why Arik wanted to convert an RGB image. Did he need
a gray image or did he want to know more about dealing with pixels.
I only wanted to point to the often unknown problem of padding
bytes.
Heinrich
--
Heinrich Giesen
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden