• 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: NSImageView setImageScaling:NSScaleToFit blurs image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageView setImageScaling:NSScaleToFit blurs image


  • Subject: Re: NSImageView setImageScaling:NSScaleToFit blurs image
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 4 Mar 2008 12:59:07 -0800


On 4 Mar '08, at 12:02 PM, R.L. Grigg wrote:

Mike, yes that is something we tried but it seems to have no effect on the blurring.

You have to set the interpolation at the moment the image is being drawn, i.e. just before the NSImage draw/composite call. You can't do this using a regular NSImageView; it draws the image for you and has no ability to configure the interpolation.


You can either make a custom NSView and do the drawing in its - drawRect: method; or you can create a scaled-up NSImage, draw the small NSImage into it using the appropriate interpolation, and then put the scaled-up NSImage into the NSImageView.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: NSImageView setImageScaling:NSScaleToFit blurs image
      • From: "R.L. Grigg" <email@hidden>
References: 
 >NSImageView setImageScaling:NSScaleToFit blurs image (From: "R.L. Grigg" <email@hidden>)
 >Re: NSImageView setImageScaling:NSScaleToFit blurs image (From: Mike Abdullah <email@hidden>)
 >Re: NSImageView setImageScaling:NSScaleToFit blurs image (From: "R.L. Grigg" <email@hidden>)

  • Prev by Date: Re: Directly using NSString's "hash" (or equivalent) on unichar pointer
  • Next by Date: Re: An Excursus
  • Previous by thread: Re: NSImageView setImageScaling:NSScaleToFit blurs image
  • Next by thread: Re: NSImageView setImageScaling:NSScaleToFit blurs image
  • Index(es):
    • Date
    • Thread