• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting CGImage out of NSBitmapImageRep in 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting CGImage out of NSBitmapImageRep in 10.4
      • From: David Alter <email@hidden>
References: 
 >Getting CGImage out of NSBitmapImageRep in 10.4 (From: David Alter <email@hidden>)
 >Re: Getting CGImage out of NSBitmapImageRep in 10.4 (From: Michael Ash <email@hidden>)
 >Re: Getting CGImage out of NSBitmapImageRep in 10.4 (From: David Alter <email@hidden>)

  • Prev by Date: Re: Getting CGImage out of NSBitmapImageRep in 10.4
  • Next by Date: IMKit window not reappearing
  • Previous by thread: Re: Getting CGImage out of NSBitmapImageRep in 10.4
  • Next by thread: Re: Getting CGImage out of NSBitmapImageRep in 10.4
  • Index(es):
    • Date
    • Thread