• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rotating image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Rotating image (From: Agha Khan <email@hidden>)

  • Prev by Date: Re: Display csv in a tableView with bindings
  • Next by Date: Re: I need a milder application badge (solution #2)
  • Previous by thread: Re: Rotating image
  • Next by thread: Re: Rotating image
  • Index(es):
    • Date
    • Thread