Image conversion to RGBA colors
Image conversion to RGBA colors
- Subject: Image conversion to RGBA colors
- From: Gideon King <email@hidden>
- Date: Fri, 17 Dec 2010 13:48:08 +1000
Hi, I have an arbitrary (user supplied) image, and I want to get the RGBA values of each pixel of the image. I'm thinking that I should create it as an NSImage and then use the TIFFRepresentation to get it into an NSBitmapImageRep object, and then walk through and pick up the colors, but it appears that the NSBitmapImageRep could be in a wide variety of internal formats.
Is there either some generic way of finding the RGBA values, or ensuring that the NSBitmapImageRep is created in a fixed color space that I can code for? ...or some other way of solving this problem?
Thanks
Gideon
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden