• 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: Can NSImageView not antialias a bitmap image?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Can NSImageView not antialias a bitmap image? (From: Glen Simmons <email@hidden>)
 >Re: Can NSImageView not antialias a bitmap image? (From: Nicko van Someren <email@hidden>)
 >Re: Can NSImageView not antialias a bitmap image? (From: Nicko van Someren <email@hidden>)
 >Re: Can NSImageView not antialias a bitmap image? (From: Glen Simmons <email@hidden>)

  • Prev by Date: Re: Changing the background of a 1 bit bitmap?
  • Next by Date: Re: Custom NSCells
  • Previous by thread: Re: Can NSImageView not antialias a bitmap image?
  • Next by thread: Changing the background of a 1 bit bitmap?
  • Index(es):
    • Date
    • Thread