• 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: NSImageView bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: NSImageView bug?
      • From: Andy Armstrong <email@hidden>
    • Re: NSImageView bug?
      • From: Scott Harper <email@hidden>
References: 
 >NSImageView bug? (From: Dario Mèndez Musicò <email@hidden>)
 >Re: NSImageView bug? (From: Andy Armstrong <email@hidden>)

  • Prev by Date: Re: NSImageView bug?
  • Next by Date: Re: NSImageView bug?
  • Previous by thread: Re: NSImageView bug?
  • Next by thread: Re: NSImageView bug?
  • Index(es):
    • Date
    • Thread