Re: Getting CGImage out of NSBitmapImageRep in 10.4
Re: Getting CGImage out of NSBitmapImageRep in 10.4
- Subject: Re: Getting CGImage out of NSBitmapImageRep in 10.4
- From: douglas welton <email@hidden>
- Date: Tue, 24 Feb 2009 13:10:55 -0500
David,
perhaps I'm missing something simple... Is there some reason that you
are using NSBitmapImageRep to handle the jpg file?
why not use CGImageSource to read your jpg file, create a CGImage from
the CGImageSource, draw the new CGImage into a CGBitmapContext, do
your additional drawing; and then extract a final CGImage from the
CGBitmapContext with CGBitmapContextCreateImage?
regards,
douglas
On Feb 24, 2009, at 12:41 PM, David Alter wrote:
What I want to do is create the NSBitmapImageRep from a jpg. Draw
into the
image and extract a CGImageRef out. I need to be able to access
the individual pixels of the image. Maybe there is a better way to
do this?
_______________________________________________
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