• 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: zoom question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: zoom question


  • Subject: Re: zoom question
  • From: Graham Cox <email@hidden>
  • Date: Sat, 12 Jun 2010 00:47:40 +1000

On 12/06/2010, at 12:39 AM, <email@hidden> wrote:

> I'm working on a droplet where a user can drop an eps image and
> zoom in on it.  I'm running it in Leopard 10.5.8.  It's working
> decently, but when I zoom it looks all pixelated.


Try disabling caching on the NSImage, then it will be forced to draw always from the EPS image rep and not reuse the first bitmap it renders. I think this caching behaviour changed on 10.6 but on 10.5 even PDF/EPS will pixellate if you don't turn off caching.

As for implementing zoom, you could check out the NSView method -scaleUnitSquareToSize:, which does most of the work for you.

--Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >zoom question (From: <email@hidden>)

  • Prev by Date: zoom question
  • Next by Date: Re: Double binding not possible?
  • Previous by thread: zoom question
  • Next by thread: NSTrackingArea pending install
  • Index(es):
    • Date
    • Thread