• 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 blurring bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageView blurring bug


  • Subject: Re: NSImageView blurring bug
  • From: Dorian Johnson <email@hidden>
  • Date: Sat, 30 Jun 2007 21:38:13 -0500

Marc is probably right - non-integral image sizes can cause many annoying drawing problems (especially with lines, but to a lesser extent images too).

However, I think another thing that could compound the problem is that NSImageView doesn't use high quality image interpolation. Off the top of my head, there isn't an easier way to do it. I'd subclass NSImageView. That way you can handle both the integral rect issue and the anti-aliasing issue (whichever it is) at once.

- Dorian

On Jun 30, 2007, at 5:09 PM, Mitchell Livingston wrote:

I'm not sure if the last went through, so I'm resending.


I set the image in code, using setImage: from the return value of NSWorkspace's iconForFileType:. The autoresizing is set in IB with the springs for max x and max y.


The code is availaible http://transmission.m0k.org/trac/browser/ trunk/macosx/CreatorWindowController.m?rev=2175 and http:// transmission.m0k.org/trac/browser/trunk/macosx/English.lproj/ Creator.nib?rev=http://transmission.m0k.org/trac/browser% 2Ftrunk/macosx/CreatorWindowController.m?rev=2175

Cheers,
Mitch
_______________________________________________

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


References: 
 >NSImageView blurring bug (From: Mitchell Livingston <email@hidden>)
 >Re: NSImageView blurring bug (From: "Marc Wan" <email@hidden>)
 >Re: NSImageView blurring bug (From: Mitchell Livingston <email@hidden>)

  • Prev by Date: Creating drag images from NSView snapshots
  • Next by Date: Re: Creating drag images from NSView snapshots
  • Previous by thread: Re: NSImageView blurring bug
  • Next by thread: Re: NSImageView blurring bug
  • Index(es):
    • Date
    • Thread