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 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]

Reply via email to