Re: NSImageView blurring bug
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