Re: Best Way to Rotate
Re: Best Way to Rotate
- Subject: Re: Best Way to Rotate
- From: Scott Stevenson <email@hidden>
- Date: Sat, 27 Oct 2007 16:06:03 -0700
On Oct 27, 2007, at 2:17 PM, Gordon Apple wrote:
I like the idea of each shape (at least ones having fill/
content) having
its own coordinate system. Maybe that's not the best approach.
Shapes can
contain a shader, an NSImage, a QTMovie, text etc. The philosophy of
rotation has now become an issue: Rotate the Bezier or rotate the
coordinates?
My instinct is to rotate the coordinates, but that's without knowing
much about your requirements.
I don's see a way to rotate an NSImage, so it looks like rotating
coordinates is de rigueur. OTOH, rotating coordinates for drawing
isn't
going to work for a QTMovie. The movie is expected to play and be
clipped
rotated regardless of what else is going on, so the movie object
itself has
to be rotated. I assume that text will do ok in coordinate
rotation, so I
don't think that's an issue.
CoreAnimation is likely an ideal solution for you if you can target
Leopard. It will handle all the media types and will do all of the
rotation math for you.
- Scott
_______________________________________________
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