Re: NSImageView bug?
Re: NSImageView bug?
- Subject: Re: NSImageView bug?
- From: Dario Mèndez Musicò <email@hidden>
- Date: Sun, 9 Oct 2005 00:00:21 +0200
Il giorno 08/ott/05, alle ore 23:53, Andy Armstrong ha scritto:
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
I'm not sure I get that... do you have an example or something?
Thanks in advance.
In the meanwhile I noticed that - resizeWithOldSuperviewSize: doesn't
even get called, so I tried subclassing viewDidEndLiveResize and re-
setting the image.
It works, but I'm pretty sure it will hog the processor (the resize
gets pretty sluggish already).
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
_______________________________________________
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