Re: Rotate NSImage to get a new NSImage, without drawing
Re: Rotate NSImage to get a new NSImage, without drawing
- Subject: Re: Rotate NSImage to get a new NSImage, without drawing
- From: Jerry Krinock <email@hidden>
- Date: Sun, 1 Mar 2009 20:47:04 -0800
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 (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