Re: Rotating image
Re: Rotating image
- Subject: Re: Rotating image
- From: David Duncan <email@hidden>
- Date: Sun, 26 Jul 2009 17:20:01 -0700
On Jul 26, 2009, at 1:00 AM, Agha Khan wrote:
HI:
I have an image which works fine.
UIImage *img = [UIImage imageNamed:@"background.png"];
[img drawAtPoint:CGPointMake(0,0)];
[img release];
Now suppose I want to rotate that image at 90 degree. Is there an
easy way to accomplish this task?
CGContextRotateCTM(UIGraphicsGetCurrentContext(), M_PI / 2.0);
[img drawAtPoint...];
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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