Devang
Devang

Reputation: 11338

how can i make thumb images without cropping in iphone?

I want to make thumb image with the size 200*151. I don't want to crop image. The thumb should be look like orignal image. What's coding to do that ?

Upvotes: 0

Views: 520

Answers (2)

Inder Kumar Rathore
Inder Kumar Rathore

Reputation: 39988

Hello just resize the frame of the imageView e.g.

   imageView.frame = CGRectMake(0,0,200,151);

then crop the images of full size.. for cropping you can see the blogblog

Upvotes: 0

Mark Adams
Mark Adams

Reputation: 30846

Take a look at MGImageUtilities from Matt Gemmell - MGImageUtilities

It's a couple categories on UIImage that provide methods for resizing images. You simply pass in a CGSize (for instance CGSize thumbnailSize = CGSizeMake(200.0f, 151.0f);) and it will return a resized image.

Upvotes: 1

Related Questions