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 11-23-2008, 04:42 AM   #7 (permalink)
SkylarEC
New Member
 
Join Date: Nov 2008
Posts: 74
SkylarEC is on a distinguished road
Default

I don't know about the black thumbnail. The image is flipped because the CoreGraphics drawing surface' y axis is correct, and UIKit's y axis is inverted (for some weird reason). You will need to translate the grid and scale the image accordingly. Use these two lines:

Code:
	CGContextTranslateCTM(UIGraphicsGetCurrentContext, 0.0, CGImageGetHeight(theImage));  //Whereas theImage is a CGImageRef.  Using that is much more accurate than feeding in a height variable, but if you must, use a CGFloat variable.
	CGContextScaleCTM(UIGraphicsGetCurrentContext, 1.0, -1.0);
SkylarEC is offline   Reply With Quote
 

» Advertisements
» Online Users: 377
14 members and 363 guests
asleylq98, Clouds, DaveDee, erdinc27, eski, gogoman, jacob7khan, lionelnlex, matador1978, networ, Pudding, sacha1996, sirenum, Vijithasri06
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,595
Threads: 94,084
Posts: 402,781
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Vijithasri06
Powered by vBadvanced CMPS v3.1.0

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