• 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: CGImage to NSImage, or PDFPage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGImage to NSImage, or PDFPage?


  • Subject: Re: CGImage to NSImage, or PDFPage?
  • From: Brian Postow <email@hidden>
  • Date: Tue, 10 Aug 2010 18:10:02 -0400

On Aug 10, 2010, at 6:03 PM, glenn andreas wrote:

>
> On Aug 10, 2010, at 4:45 PM, Brian Postow wrote:
>
>>
>> I'm not sure if this is rightly a Cocoa question or Quartz, so I'm posting on both lists. Sorry for the double...
>>
>> I have a CGImageRef, and I need to put it into a PDFPage. At the moment, the only way I see to do that is to turn it into an NSImage first. I've currently got:
> [snip]
>>
>> Is there something obvious that I'm missing?
>>
>
>
> How about -[NSImage initWithCGImage:(CGImageRef)cgImage size:(NSSize)size] if you're using 10.6, or use -[NSBitmapImageRep initWithCGImage:(CGImageRef)cgImage] and add it to an NSImage if you're using 10.5?


I can assume 10.5, but not 10.6... so, the NSBitmapImageRep is my best bet.

thanks!
(Also thanks Nick for the same advice!)

Brian Postow
Senior Software Engineer
Acordex Imaging Systems

_______________________________________________

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: 
 >CGImage to NSImage, or PDFPage? (From: Brian Postow <email@hidden>)
 >Re: CGImage to NSImage, or PDFPage? (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: CGImage to NSImage, or PDFPage?
  • Next by Date: Re: CGImage to NSImage, or PDFPage?
  • Previous by thread: Re: CGImage to NSImage, or PDFPage?
  • Next by thread: Re: CGImage to NSImage, or PDFPage?
  • Index(es):
    • Date
    • Thread