Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-23-2009, 07:22 PM   #1 (permalink)
detz
New Member
 
Join Date: Aug 2008
Posts: 394
Default Rotating an image...arg...

I don't know why this is giving me so much trouble but I want to draw an image on the current context and have it rotate around it's center. No matter what I do it rotates around one of it's corners or some other point, how can i get it to rotate around IT'S center?

PHP Code:
CGContextSaveGState(context);
CGContextRotateCTM (contextrotate);
CGContextTranslateCTMcontextx,  y);
CGContextDrawImage(contextCGRectMake(00100100), test.CGImage);
CGContextRestoreGState(context); 
__________________
Super Pig
iOwn - Inventory anything and everything.
detz is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,203
Threads: 38,981
Posts: 171,001
Top Poster: smasher (2,568)
Welcome to our newest member, sfeast
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:22 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.