NSBitmapImageRep getPixel and color Spaces
NSBitmapImageRep getPixel and color Spaces
- Subject: NSBitmapImageRep getPixel and color Spaces
- From: Daniel Vollmer <email@hidden>
- Date: Thu, 2 Mar 2006 01:06:35 +0100
Hi all,
I am using an NSBitmapImageRep's getPixel:atX:y: method to access the
pixel data of an image, but when I create an NSImage (and a
corresponding NSBitmapImageRep) from the raw data and display it, the
gamma-curve (for a grayscale image) looks slightly different then
when I am displaying the image in Preview.app.
Is the data returned by getPixel color-corrected? Or maybe there is a
difference between [NSBitmapImageReg initWithData:] and what
Preview.app uses (probably NSImage)?
For reference, the file I am using for testing is a grayscale PNG
image with 8bpp and the info panel displays the color-space as
"Calibrated Gray Colorspace", the created NSBitmapImageRep which I
fill with data and display is using NSCalibratedWhiteColorSpace.
Any ideas?
Thanks,
Daniel Vollmer.
_______________________________________________
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