• 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: 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

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>)
 >Re: Getting CGImage out of NSBitmapImageRep in 10.4 (From: douglas welton <email@hidden>)

  • Prev by Date: IMKit window not reappearing
  • Next by Date: Re: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?
  • Previous by thread: Re: Getting CGImage out of NSBitmapImageRep in 10.4
  • Next by thread: NSTextView Undo behavior
  • Index(es):
    • Date
    • Thread