• 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: Redrawing CALayer subclass when super layer is scaled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Redrawing CALayer subclass when super layer is scaled
      • From: Rick Mann <email@hidden>
References: 
 >Redrawing CALayer subclass when super layer is scaled (From: Rick Mann <email@hidden>)
 >Re: Redrawing CALayer subclass when super layer is scaled (From: David Duncan <email@hidden>)
 >Re: Redrawing CALayer subclass when super layer is scaled (From: Rick Mann <email@hidden>)
 >Re: Redrawing CALayer subclass when super layer is scaled (From: David Duncan <email@hidden>)
 >Re: Redrawing CALayer subclass when super layer is scaled (From: Rick Mann <email@hidden>)
 >Re: Redrawing CALayer subclass when super layer is scaled (From: David Duncan <email@hidden>)
 >Re: Redrawing CALayer subclass when super layer is scaled (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Newbie CALayer Questions
  • Next by Date: Re: Redrawing CALayer subclass when super layer is scaled
  • Previous by thread: Re: Redrawing CALayer subclass when super layer is scaled
  • Next by thread: Re: Redrawing CALayer subclass when super layer is scaled
  • Index(es):
    • Date
    • Thread