Getting the pixels from an NSImage
Getting the pixels from an NSImage
- Subject: Getting the pixels from an NSImage
- From: "Sean McBride" <email@hidden>
- Date: Fri, 18 Feb 2005 16:12:20 -0500
- Organization: Rogue Research
Hi all,
My app needs to get the pixels from an NSImage (so I can manipulate them
'by hand'). My understanding is that NSBitmapImageRep's bitmapData: will
do this. It works generally, but sometimes NSImage's representations:
gives me a NSCachedImageRep instead (and there are no other
representations). (I'm only dealing with jpegs here, no vector format files.)
How can I reliably get an NSBitmapImageRep from an NSImage?
Really what I'd like is for the OS to give me an RGB array for a bitmap
image file I give it. :) Maybe NSImage and friends is not the way?
Thanks!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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