Re: How do I rotate an image?
Re: How do I rotate an image?
- Subject: Re: How do I rotate an image?
- From: Colin Cornaby <email@hidden>
- Date: Tue, 29 Jan 2008 13:44:30 -0800
- Resent-date: Tue, 29 Jan 2008 13:44:54 -0800
- Resent-from: Colin Cornaby <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
CATransform3D would be the correct way to do what you want. Simply
create your transform with CATransform3DMakeRotation, and apply it to
your layer by setting your layer's transform property.
The only issue I've run into is that the transform doesn't look 3D.
I.E. it doesn't have that nice perspective look that the dock has.
Instead, the image just has a squashed look. If anyone has any
solution or flag that needs to be thrown to accomplish a nice
perspective transform, I'd be interested in knowing about it....
On Jan 29, 2008, at 11:10 AM, Mac Man wrote:
I am trying to rotate an image along the z-axis, to get a
perspective change
like the Dock appears in Leopard. If I have a rectangular image, is
there
an easy way to rotate it to achieve this? I thought that I might
find some
luck with CATransform3D, but the documentation I've encountered
didn't do
much to help, and I couldn't find any clear examples of how to do
this. If
it can be done without Core Animation, that would work as well. Any
insight
and help would be greatly appreciated!
Thanks,
Devon
_______________________________________________
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
_______________________________________________
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