• 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
CALayer Mask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CALayer Mask


  • Subject: CALayer Mask
  • From: Gordon Apple <email@hidden>
  • Date: Sun, 07 Dec 2008 12:42:13 -0600
  • Thread-topic: CALayer Mask

    Either the mask setting of CALayer is the most ill-behaved item in Cocoa
or I totally don't understand it.  I suspect the latter.  Although I have
successfully used a mask layer in a CALayer (mainly QTMovieLayer and
QTCapture Layer) when first creating the CALayer, changing the transform
(rotations, flips, etc.) to the CAlayer has unpredictable results for the
mask until the original transform is re-established.  I've tried applying
the same transform to the mask and a few other things to no avail.  I've
also tried re-computing and resetting the mask each time the transform is
changed.

    What space does the mask reside in?  The CALayer's bounds?  It's
superlayer?

    How exactly does the mask relate the the containing CALayer?  It is a
sublayer of the CALayer?

    As far as I can tell, there is no documentation on any of this and the
sample code does not help.  Any help here would be appreciated.




_______________________________________________

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

  • Prev by Date: Re: How to disable the transparency in dropdown sheets?
  • Next by Date: 3-float struct?
  • Previous by thread: Re: NSArrayController setSelectedObjects: not working with newly created objects
  • Next by thread: 3-float struct?
  • Index(es):
    • Date
    • Thread