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: Rick Mann <email@hidden>
- Date: Sun, 20 Jul 2008 22:20:17 -0700
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.
--
Rick
_______________________________________________
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