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 protected]> 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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
