• 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: CAShapeLayer as a mask for CALayer: rounded corners are stretched
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CAShapeLayer as a mask for CALayer: rounded corners are stretched


  • Subject: Re: CAShapeLayer as a mask for CALayer: rounded corners are stretched
  • From: Anton Sotkov <email@hidden>
  • Date: Wed, 26 Oct 2011 23:19:33 +0300

Hi David,

> The CAShapeLayer favors performance over accuracy, while Quartz favors accuracy over performance. As such it is entirely possible to get slightly different results between the APIs.

Looks I've ran into the case where the difference was most noticeable (the small radii). Thank you for the explanation.

> Of note is that on 10.6 or later you can assign an NSImage directly as the contents of a layer, so your CGImageForProposedRect::: call is unnecessary here.

And thank you for making my life easier and my code cleaner. :-)

— Anton._______________________________________________

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: 
 >CAShapeLayer as a mask for CALayer: rounded corners are stretched (From: Anton Sotkov <email@hidden>)
 >Re: CAShapeLayer as a mask for CALayer: rounded corners are stretched (From: David Duncan <email@hidden>)

  • Prev by Date: Re: A button, an arrayController and a tableView....
  • Next by Date: Re: getResourceValue:forKey:error: Unrecognized Selector
  • Previous by thread: Re: CAShapeLayer as a mask for CALayer: rounded corners are stretched
  • Next by thread: Using CALayer's renderInContext: method with geometryFlipped
  • Index(es):
    • Date
    • Thread