UIImage(OrientationChange) Category Reference

Declared in TuSDKTSImage+Extend.h

Overview

修改图片对象方向属性 (不修改图像)

– lsqChangeTurnLeft

设置图片属性向左旋转图片90度

- (UIImage *)lsqChangeTurnLeft

Return Value

重设属性后的图片对象

Declared In

TuSDKTSImage+Extend.h

– lsqChangeTurnRight

设置图片属性向右旋转图片90度

- (UIImage *)lsqChangeTurnRight

Return Value

重设属性后的图片对象

Declared In

TuSDKTSImage+Extend.h

– lsqChangeMirrorHorizontal

设置图片属性水平镜像

- (UIImage *)lsqChangeMirrorHorizontal

Return Value

重设属性后的图片对象

Declared In

TuSDKTSImage+Extend.h

– lsqChangeMirrorVertical

设置图片属性垂直镜像

- (UIImage *)lsqChangeMirrorVertical

Return Value

重设属性后的图片对象

Declared In

TuSDKTSImage+Extend.h

+ lsqOrientation:isMirror:

计算正确的的图片方向

+ (UIImageOrientation)lsqOrientation:(UIImageOrientation)orientation isMirror:(BOOL)isMirror

Parameters

orientation

图片方向

isMirror

是否镜像

Return Value

正确的的图片方向

Declared In

TuSDKTSImage+Extend.h

+ lsqOrientationWithExif:

获取图片EXIF的方向

+ (UIImageOrientation)lsqOrientationWithExif:(NSUInteger)exifOrientation

Parameters

exifOrientation

EXIF方向

Return Value

图片的方向

Declared In

TuSDKTSImage+Extend.h

– lsqTransformRotateWithRotateRadian:

根据传入的弧度值,旋转图片(绕图片中心旋转)

- (UIImage *)lsqTransformRotateWithRotateRadian:(CGFloat)rotate

Parameters

rotate

需要旋转的弧度值

Return Value

返回旋转后的UIImage对象

Declared In

TuSDKTSImage+Extend.h