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