Re: Can NSImageView not antialias a bitmap image?
Re: Can NSImageView not antialias a bitmap image?
- Subject: Re: Can NSImageView not antialias a bitmap image?
- From: Nicko van Someren <email@hidden>
- Date: Mon, 4 Oct 2004 19:07:18 +0100
On 4 Oct 2004, at 18:32, Glen Simmons wrote:
On 4 Oct, 2004, at 11:49 AM, Nicko van Someren wrote:
...
- (void)setUpGState {
[super setUpGState];
[[NSGraphicsContext currentContext] setImageInterpolation:
NSImageInterpolationNone];
}
Thanks for the suggestions. Unfortunately, I'm still seeing some
fuzziness. Might the problem be in the image creation / manipulation?
I think it might well be to do with the creation of the image. I just
tried the above code on an NSImageView subclass having used IB to set
it as scale to fit and editable so I can drop image on it. If I drop a
tiny GIF in it comes out crisp and pixelated whereas if I comment out
the image interpolation setting line it comes out smoothed.
It's possible that a cached representation is getting created before it
reaches the point that the NSImageView gets to draw it, possibly when
you set the image size. You might try not setting the image size but
instead setting the NSImageView to scale to fit and see what happens
then.
Nicko
_______________________________________________
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