Re: Redrawing CALayer subclass when super layer is scaled
Re: Redrawing CALayer subclass when super layer is scaled
- Subject: Re: Redrawing CALayer subclass when super layer is scaled
- From: Scott Anguish <email@hidden>
- Date: Mon, 21 Jul 2008 01:44:37 -0400
On 21-Jul-08, at 1:20 AM, Rick Mann wrote:
On Jul 16, 2008, at 16:23:23, David Duncan wrote:
This is also why when you scale up a CALayer its content its
content looks interpolated - its the same number of pixels as
before, just interpolated larger. If you exceed the maximum LOD of
a tiled layer, you will see the same thing (which if you don't set
a LOD bias means if you scale a tiled layer above 1.0 it will also
have its content interpolated).
So why is it that when setting a CALayer's (not CATiledLayer)
background color, corner and border properties, those render
beautifully, no matter what the scale of the parent layer? Clearly,
at some point, Quartz is getting called to fill & stroke the layer's
frame with the appropriate CTM in place for it to appear as it does
(scaled & rotated). I wish I could get it to do the same for my
drawing code.
all the visual properties that are 'animatable' are applied at render
time.
_______________________________________________
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