PDA

View Full Version : Scalling of Image




sujithkrishnan
Apr 8, 2009, 01:17 AM
In my app im setting cell.image to image fetched from some url.But image is too big so i want to scale this image so how to achive this.



jnic
Apr 8, 2009, 04:44 AM
imageView.frame = CGRectMake(x, y, width, height);
imageView.image = image;

https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIImageView_Class/Reference/Reference.html
https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIImage_Class/Reference/Reference.html

You should really be resizing the image on the server side though, so you're sending less data over the air (so it'll be faster over GPRS/3G/Edge).