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: David Alter <email@hidden>
- Date: Tue, 24 Feb 2009 11:17:30 -0800
I removed the use of the NSBitmapImageRep as you suggested and it is working
much better now.
Thanks for the help
-dave
On Tue, Feb 24, 2009 at 10:10 AM, douglas welton <
email@hidden> wrote:
> 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