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 03-22-2009, 12:25 AM   #17 (permalink)
XenoSage
New Member
 
Join Date: Mar 2009
Posts: 48
Default

here's what i think to be an easier way to resize and image.

Code:
UIGraphicsBeginImageContext( newSize );// a CGSize that has the size you want
   [image drawInRect:CGRectMake(0,0,newSize.width,newSize.height)];
//image is the original UIImage
   UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext();
   UIGraphicsEndImageContext();
newImage is your newly created image with the size you want
XenoSage is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,136
Threads: 38,911
Posts: 170,717
Top Poster: smasher (2,565)
Welcome to our newest member, cye
Powered by vBadvanced CMPS v3.1.0

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