CMImageClipper Class Reference

Inherits from NSObject
Declared in CMImageClipper.h
CMImageClipper.m

– getBase64ImageMergeTable

获取图像合并表

- (NSMutableArray *)getBase64ImageMergeTable

Declared In

CMImageClipper.h

– getImageInfoTable

获取图像信息表

- (NSDictionary *)getImageInfoTable

Declared In

CMImageClipper.h

– getImageDataTable

获取图像数据表

- (NSDictionary *)getImageDataTable

Declared In

CMImageClipper.h

– getBase64EncodedImageDataTable

获取base64编码过的图像数据表

- (NSDictionary *)getBase64EncodedImageDataTable

Declared In

CMImageClipper.h

– addImageFile:file:limitSize:limitWidth:limitHeight:limitQuality:

添加一条裁剪信息

- (int)addImageFile:(NSString *)name file:(NSString *)file limitSize:(int)limitSize limitWidth:(int)limitWidth limitHeight:(int)limitHeight limitQuality:(float)limitQuality

Parameters

name

图片名称

file

图片路径

limitSize

文件大小限制

limitWidth

宽度限制

limitHeight

高度限制

limitQuality

质量限制

Return Value

成功返回0, 否则返回非0

Declared In

CMImageClipper.h

– addImageData:imageData:limitSize:limitWidth:limitHeight:limitQuality:

添加一条裁剪信息

- (int)addImageData:(NSString *)name imageData:(NSData *)imageData limitSize:(int)limitSize limitWidth:(int)limitWidth limitHeight:(int)limitHeight limitQuality:(float)limitQuality

Parameters

name

图片名称

imageData

图像数据

limitSize

文件大小限制

limitWidth

宽度限制

limitHeight

高度限制

limitQuality

质量限制

Return Value

成功返回0, 否则返回非0

Declared In

CMImageClipper.h

– addImage:image:limitSize:limitWidth:limitHeight:limitQuality:

添加一条裁剪信息

- (int)addImage:(NSString *)name image:(UIImage *)image limitSize:(int)limitSize limitWidth:(int)limitWidth limitHeight:(int)limitHeight limitQuality:(float)limitQuality

Parameters

name

图片名称

image

图像

limitSize

文件大小限制

limitWidth

宽度限制

limitHeight

高度限制

limitQuality

质量限制

Return Value

成功返回0, 否则返回非0

Declared In

CMImageClipper.h

– addImageFileAuto:file:limitSize:limitWidth:limitHeight:limitQuality:

添加一条裁剪信息(自动模式)

- (int)addImageFileAuto:(NSString *)name file:(NSString *)file limitSize:(int)limitSize limitWidth:(int)limitWidth limitHeight:(int)limitHeight limitQuality:(float)limitQuality

Parameters

name

图片名称

file

图片路径

limitSize

文件大小限制

limitWidth

宽度限制

limitHeight

高度限制

limitQuality

质量限制

Return Value

成功返回0, 否则返回非0

Declared In

CMImageClipper.h

– addImageDataAuto:imageData:limitSize:limitWidth:limitHeight:limitQuality:

添加一条裁剪信息(自动模式)

- (int)addImageDataAuto:(NSString *)name imageData:(NSData *)imageData limitSize:(int)limitSize limitWidth:(int)limitWidth limitHeight:(int)limitHeight limitQuality:(float)limitQuality

Parameters

name

图片名称

imageData

图像数据

limitSize

文件大小限制

limitWidth

宽度限制

limitHeight

高度限制

limitQuality

质量限制

Return Value

成功返回0, 否则返回非0

Declared In

CMImageClipper.h

– addImageAuto:image:limitSize:limitWidth:limitHeight:limitQuality:

添加一条裁剪信息

- (int)addImageAuto:(NSString *)name image:(UIImage *)image limitSize:(int)limitSize limitWidth:(int)limitWidth limitHeight:(int)limitHeight limitQuality:(float)limitQuality

Parameters

name

图片名称

image

图像

limitSize

文件大小限制

limitWidth

宽度限制

limitHeight

高度限制

limitQuality

质量限制

Return Value

成功返回0, 否则返回非0

Declared In

CMImageClipper.h