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

  • Follow-Ups:
    • Re: CGImage to NSImage, or PDFPage?
      • From: Brian Postow <email@hidden>
References: 
 >CGImage to NSImage, or PDFPage? (From: Brian Postow <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