Re: zoom question
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