Re: Now contents of the layer not being rotated [was Re: Rotating a CALayer more than once is not working ]
Re: Now contents of the layer not being rotated [was Re: Rotating a CALayer more than once is not working ]
- Subject: Re: Now contents of the layer not being rotated [was Re: Rotating a CALayer more than once is not working ]
- From: Gustavo Pizano <email@hidden>
- Date: Mon, 15 Dec 2008 11:06:19 +0100
Why would it change? The content of the layer is what it displays, the
rotation is part of the overall transform which is how it displays.
The latter won't influence the former.
Think of it like a photo on your desk. (A real physical paper one,
mind.) Now turn it sideways. Did the photo change in any way? No, just
how you see it. Now hold a magnifying glass in front. Still no change.
CALayer is the same. You can move it around and turn it and blow it up
and do various other transformations to it but this all simply
modifies how it is displayed. Its content remains unchanged.
Hi.
Yes in fact while sleeping the other night I thought something similar
to what you explain me here, thx for the explanation btw. The problem
is that after its rotated the user will want to make another drag and
drop to the same view, so if I take the contents of the layer to set
the "image to be dragged" I will only see one part of the image,
because the layer its in a Vertical position, and it's content its in
a horizontal position, So what Im thinking its to do the following in
the mouseDragged method
1. check if the layer which I took for a the drag operation its
vertical or horizontal by comparing its width against its height.
2. if So, then change the contents. and perform the drag.
3. If no, perform the drag.
so when I lockfocus the image to be drag, it will display a vertical
or horizontal image, depending on the position of the layer.
some other thing that maybe you know but its not so important, when
the layer rotate, once in vertical position the images looks blurred,
but on horizontal position it doesn't, why is this behavior?..
Thanks for your help.
Gustavo
_______________________________________________
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