Re: CAShapeLayer as a mask for CALayer: rounded corners are stretched
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