Rotate NSImage to get a new NSImage, without drawing
Rotate NSImage to get a new NSImage, without drawing
- Subject: Rotate NSImage to get a new NSImage, without drawing
- From: Jerry Krinock <email@hidden>
- Date: Sat, 28 Feb 2009 19:31:11 -0800
I understand that NSAffineTransform can rotate an image while you're
drawing it. But is there any way to rotate an image and get a new
image? Something like:
NSImage* imageUp = [NSImage imageNamed:@"BaseImage"] ;
NSImage* imageLeft = [imageUp myRotateByDegrees:90] ;
...
How could I implement -[NSImage myRotateByDegrees] ?
(The reason is that I want images rotated in four directions to which
I can bind the 'image' binding of buttons that open/close drawers on
the bottom, top, left or right window edge.
Jerry Krinock
_______________________________________________
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