UIImage(ImageCorp) Category Reference

Declared in TuSDKTSImage+Extend.h

Overview

图片裁剪扩展

– lsqImageCorpResizeWithSize:

输出指定长宽图片,多余将进行裁剪

- (UIImage *)lsqImageCorpResizeWithSize:(CGSize)size

Parameters

size

输出图片长宽

Return Value

指定长宽图片

Declared In

TuSDKTSImage+Extend.h

– lsqImageCorpWithPrecentRect:

裁剪图片 (需要先旋转到正确的方向)

- (UIImage *)lsqImageCorpWithPrecentRect:(CGRect)rect

Parameters

rect

百分比裁剪区域

Return Value

裁剪后的图片

Declared In

TuSDKTSImage+Extend.h

– lsqImageCorpWithPrecentRect:outputSize:

裁剪图片 (需要先旋转到正确的方向)

- (UIImage *)lsqImageCorpWithPrecentRect:(CGRect)rect outputSize:(CGSize)outputSize

Parameters

rect

百分比裁剪区域

outputSize

输出图片长宽

Return Value

裁剪后的图片

Declared In

TuSDKTSImage+Extend.h

– lsqImageCorpWithSize:rect:outputSize:orientation:interpolationQuality:

裁剪图片

- (UIImage *)lsqImageCorpWithSize:(CGSize)size rect:(CGRect)rect outputSize:(CGSize)outputSize orientation:(UIImageOrientation)orientation interpolationQuality:(CGInterpolationQuality)quality

Parameters

size

源图片长宽

rect

百分比裁剪区域

outputSize

输出图片长宽

orientation

图片宽度

quality

图片质量

Return Value

裁剪后的图片

Declared In

TuSDKTSImage+Extend.h