Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-08-2010, 09:15 AM   #2 (permalink)
JDave
Registered Member
 
Join Date: May 2010
Posts: 107
JDave is on a distinguished road
Default

Quote:
I use this code in my app several times and it works fine there.
Any ideas why the text is upside down and mirrored?
It has been my experience that text is always drawn upside down the way you are describing... other graphics objects are treated with 0,0 in the top left of the image, and thus are not rendered upsidedown.

insert:

Code:
CGAffineTransform textTransform = CGAffineTransformMake(1.0, 0.0, 0.0, -1.0, 0.0, 0.0);
CGContextSetTextMatrix(ctx, textTransform);
before:

Code:
CGContextShowTextAtPoint (ctx, 35, 250, goodVals, strlen(goodVals));
to set it back to what you 'want'.
JDave is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,550
Threads: 94,078
Posts: 402,724
Top Poster: BrianSlick (7,990)
Welcome to our newest member, deloisig73
Powered by vBadvanced CMPS v3.1.0

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