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

2011-10-28 Thread Anton Sotkov
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 y

CAShapeLayer as a mask for CALayer: rounded corners are stretched

2011-10-21 Thread Anton Sotkov
Hi! I want to mask a CALayer with CAShapeLayer, because changes to the shape can be animated. When I use the CAShapeLayer as a mask, its rounded corners are stretched. However, if I take the same shape, create an image with it, and use the image to mask my CALayer, the rounded corners are perf