Re: NSImageView bug?
Re: NSImageView bug?
- Subject: Re: NSImageView bug?
- From: Andy Armstrong <email@hidden>
- Date: Sat, 8 Oct 2005 22:53:29 +0100
On 8 Oct 2005, at 22:50, Dario Mèndez Musicò wrote:
I don't know if anybody noticed this, but NSImageViews tend to show
"blurred" images when the window gets resized.
I tried to search for a workaround, and stumbled into this
http://cocoa.karelia.com/AppKit_Classes/NSImageView_subclas.m
Unfortunately, this didn't help.
Experimenting a little further I've noticed that when testing in
interface builder the "blurring" doesnt' happen, but when the
application runs it does happen.
Anybody else is experiencing this or knows a working workaround?
It's because the coordinate system uses real numbers rather than
integers and can render images with sub-pixel alignment - which
results in the image being resampled to effect the sub-pixel shift.
Check the coordinates at which you're rendering the image.
--
Andy Armstrong, hexten.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden