• 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: question on layer setup in Covertflow sample code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question on layer setup in Covertflow sample code


  • Subject: Re: question on layer setup in Covertflow sample code
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 24 Jun 2008 12:22:02 -0400

first, please don't crosspost between cocoadev and quartz-dev

the reflection is a sublayer of the image so that it will move the same. rotate the layer with the image in it, the reflection also rotates.


the reflection layer uses additional Core Animation features to display only parts of the flipped image (a gradient in another layer that is set as the reflection layer's mask).


so setting the same imageon the reflection causes it to mask with the maskLayer that is set and display only a portion of the image that corresponds with the gradient.

hopefully that helps.


_______________________________________________

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


References: 
 >question on layer setup in Covertflow sample code (From: "Wayne Shao" <email@hidden>)

  • Prev by Date: Re: NSPredicateEditorRowTemplate
  • Next by Date: How to prevent NSControl from graying out when sent to background?
  • Previous by thread: question on layer setup in Covertflow sample code
  • Next by thread: PDF manipulation and fine control over page layout in Cocoa
  • Index(es):
    • Date
    • Thread