Pixel perfect drawing on magnified view
Pixel perfect drawing on magnified view
- Subject: Pixel perfect drawing on magnified view
- From: Kenneth Baxter <email@hidden>
- Date: Tue, 29 Oct 2013 23:43:47 +0000 (GMT)
Hi, I have an NSScrollView and use the magnification property to zoom into my view. It's all layer backed and I'm redrawing on setNeedsDisplay:
I think that it draws in to the layer at 100% scale and then applies a transform to the layer, which leaves it looking blurry at large scale values etc. I would like to be able to use the smooth magnification and then trigger a redraw which draws pixel perfect for the new scale factor when the magnification ends. Is this possible in the current scenario? Or will I need to take the magnification factor from the scroll view and resize the view to the new number of pixels (old size * magnification) and reset the magnification on the scroll view to 1.0? Or is there some other way of handling this?
Thanks
Ken
_______________________________________________
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