开发者

how can i make thumb images without cropping in iphone?

开发者 https://www.devze.com 2023-02-22 06:08 出处:网络
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开发者_如何学Python image.

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开发者_如何学Python image. What's coding to do that ?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消