Re: CGImage to NSImage, or PDFPage?
Re: CGImage to NSImage, or PDFPage?
- Subject: Re: CGImage to NSImage, or PDFPage?
- From: glenn andreas <email@hidden>
- Date: Tue, 10 Aug 2010 17:03:03 -0500
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?
Glenn Andreas email@hidden
The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL
_______________________________________________
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