Getting CALayer's frame with 3D transform identity?
Getting CALayer's frame with 3D transform identity?
- Subject: Getting CALayer's frame with 3D transform identity?
- From: Colin Cornaby <email@hidden>
- Date: Sat, 2 Feb 2008 15:03:14 -0800
I was orthogonally transforming layers and I had some code that relied
on getting the area that the layer was being drawn in in the
composition. I was using the frame property, and it seemed to properly
return the area that the transformed layer was drawing into.
I am now 3D transforms. The frame property still changes as I
transform the layer, but instead of returning the area that the layer
will occupy on the screen as a result of it's 3D transform, it still
seems to return the area occupied as if I was doing an orthogonal
transform on my layer.
The only funny thing I am doing is that I am taking the rect and
translating it to a superlayers context a few levels up the render
tree (using convertRect: fromLayer:), and the superlayer is still set
to orthogonally transform. Would this cause the rect to be altered in
the sort of way I am seeing?
Thanks,
Colin
_______________________________________________
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