• 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: Fastest high-quality thumbnail display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fastest high-quality thumbnail display


  • Subject: Re: Fastest high-quality thumbnail display
  • From: Michael Babin <email@hidden>
  • Date: Sun, 31 Jul 2011 06:32:22 -0500

On Jul 30, 2011, at 9:10 PM, James Merkel wrote:

> I tried ImageKit and it works great.  Excellent quality. Thanks for the suggestion, Scott.
> I didn't have to do much more than change an NSImageView to an IKImageView in InterfaceBuilder and the code.
>
> However, there doesn't appear to be an easy way to print a CGImageRef (which you get from an IKImageView) . So I figure for the printing case,  I'll just open the file again and create an NSImage.
> Seems counterintuitive to open the file again, but its' probably easier than converting a CGImageRef to an NSImage.
> Interestingly, the quality of the printed NSImage is very good compared to the screen rendition. Never understood why that is.

For 10.6 and later, you can use -[NSImage initWithCGImage:size:] to create an NSImage from a CGImageRef.

For 10.5 and later, you can create an NSBitmapImageRep from your CGImageRef (-[NSBitmapImageRep initWithCGImage:]) and add the representation to an NSImage.




_______________________________________________

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: Fastest high-quality thumbnail display
      • From: James Merkel <email@hidden>
References: 
 >Fastest high-quality thumbnail display (From: James Merkel <email@hidden>)
 >Re: Fastest high-quality thumbnail display (From: Scott Anguish <email@hidden>)
 >Re: Fastest high-quality thumbnail display (From: James Merkel <email@hidden>)
 >Re: Fastest high-quality thumbnail display (From: James Merkel <email@hidden>)

  • Prev by Date: Re: Ticker tape display
  • Next by Date: Dock Tile Plugin Problem
  • Previous by thread: Re: Fastest high-quality thumbnail display
  • Next by thread: Re: Fastest high-quality thumbnail display
  • Index(es):
    • Date
    • Thread