FROM : Scott Anguish
DATE : Tue Jun 24 18:22:02 2008
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.
DATE : Tue Jun 24 18:22:02 2008
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.
| Related mails | Author | Date |
|---|---|---|
| Wayne Shao | Jun 17, 17:27 | |
| Scott Anguish | Jun 24, 18:22 |






Cocoa mail archive

