• 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
Pixel perfect drawing on magnified view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Converting views to use layer backing (From: Kenneth Baxter <email@hidden>)

  • Prev by Date: Re: NSBundle using .stringsdict files MIA in 10.9?
  • Next by Date: Re: NSBundle using .stringsdict files MIA in 10.9?
  • Previous by thread: Re: Converting views to use layer backing
  • Next by thread: Question about matrix of possibilities
  • Index(es):
    • Date
    • Thread