AliSoftware / UIImage-Resize

Category to add some resizing methods to the UIImage class, to resize it to a given CGSize — or fit in a CGSize keeping aspect ratio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This category allows you to resize an UIImage at a constraint size, or proportionally so that it fits in a given CGSize.

This category defines the following methods :

-(UIImage*)resizedImageToSize:(CGSize*)size;
-(UIImage*)resizedImageToFitInSize:(CGSize*)size scaleIfSmaller:(BOOL)scale;

This methods takes correctly the imageOrientation / EXIF orientation into account.

About

Category to add some resizing methods to the UIImage class, to resize it to a given CGSize — or fit in a CGSize keeping aspect ratio

License:Other


Languages

Language:Objective-C 100.0%