On 2009 Mar 01, at 14:27, Steve Christensen wrote:

That version only works for a ±90° rotation since you're just swapping the width and height for the rotated image size. A more generalized solution would be:

Thank you, Steve. Yes, yours works for a 45° rotation whereas mine clipped.

Near the end of your code, to make it work, I needed to change
   [transform set];
to
   [transform concat];


On 2009 Mar 01, at 16:42, douglas welton wrote:

I'll offer a couple of other alternatives:

1)  Use Quartz Composer...

2) Use Core Image...

Thanks Douglas. Now I have some motivation to learn those. But it will be after I'm done using all the things I learned during WWDC 2007 :)

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to