UIImage(ImageExtend) Category Reference
Declared in | TuSDKTSImage+Extend.h |
---|
+ lsqImageFromColor:
使用颜色获取Image对象
+ (UIImage *)lsqImageFromColor:(UIColor *)color
Parameters
color |
颜色对象 |
---|
Return Value
Image对象
Declared In
TuSDKTSImage+Extend.h
+ lsqCreateOvalImage:fillColor:
创建圆形图像
+ (UIImage *)lsqCreateOvalImage:(NSUInteger)radius fillColor:(UIColor *)fillColor
Parameters
radius |
半径 |
---|---|
fillColor |
填充色 |
Return Value
图像
Declared In
TuSDKTSImage+Extend.h
+ lsqCreateRectImage:fillColor:
创建矩形图像
+ (UIImage *)lsqCreateRectImage:(CGSize)size fillColor:(UIColor *)fillColor
Parameters
size |
尺寸 |
---|---|
fillColor |
填充色 |
Return Value
图像
Declared In
TuSDKTSImage+Extend.h
– lsqScaleImage:
缩放图片
- (UIImage *)lsqScaleImage:(CGSize)newSize
Parameters
newSize |
新的长宽 |
---|
Return Value
缩放过的图片
Declared In
TuSDKTSImage+Extend.h
– lsqScaleGeometricAndRotate:
等比旋转缩放 (不得小于 newSize)
- (UIImage *)lsqScaleGeometricAndRotate:(CGSize)newSize
Parameters
newSize |
新的长宽 |
---|
Return Value
等比旋转缩放
Declared In
TuSDKTSImage+Extend.h
– lsqImageLimit:
获取限制最大边长图片
- (UIImage *)lsqImageLimit:(CGFloat)limit
Parameters
limit |
最大边长 |
---|
Return Value
修改限制后的图片
Declared In
TuSDKTSImage+Extend.h
– lsqImageScale:
缩放图片
- (UIImage *)lsqImageScale:(CGFloat)scale
Parameters
scale |
缩放比例 |
---|
Return Value
缩放后的图片
Declared In
TuSDKTSImage+Extend.h
– lsqImageRotatedToUp
旋转图像到UP角度
- (UIImage *)lsqImageRotatedToUp
Return Value
旋转图像到UP角度
Declared In
TuSDKTSImage+Extend.h
– lsqImageCorpWithRatio:
按比例裁剪图片
- (UIImage *)lsqImageCorpWithRatio:(CGFloat)ratio
Parameters
ratio |
裁剪比例 |
---|
Return Value
裁剪后的图片
Declared In
TuSDKTSImage+Extend.h
– lsqFullScreenImage
获取全屏大小图片
- (UIImage *)lsqFullScreenImage
Return Value
全屏大小图片
Declared In
TuSDKTSImage+Extend.h
– lsqFullScreenImageKeepOrientation
获取全屏大小图片 (保持图片原始方向)
- (UIImage *)lsqFullScreenImageKeepOrientation
Return Value
全屏大小图片
Declared In
TuSDKTSImage+Extend.h
– lsqChangeOrientation:
改变图片方向属性
- (UIImage *)lsqChangeOrientation:(UIImageOrientation)orientation
Return Value
图片对象
Declared In
TuSDKTSImage+Extend.h
– lsqMergeAboveImage:
将输入图片拼合到自身上层
- (UIImage *)lsqMergeAboveImage:(UIImage *)inputImage
Parameters
inputImage |
输入图片 |
---|
Return Value
拼合的图片
Declared In
TuSDKTSImage+Extend.h
– lsqJpegDataWithCompress:meta:
转换为JPEG数据
- (NSData *)lsqJpegDataWithCompress:(CGFloat)compress meta:(NSDictionary *)meta
Parameters
compress |
压缩率 0-1 |
---|---|
meta |
图片信息 |
Return Value
JPEG数据
Declared In
TuSDKTSImage+Extend.h
– lsqSizeTransposed
是否需要长宽换位
- (BOOL)lsqSizeTransposed
Return Value
是否换位
Declared In
TuSDKTSImage+Extend.h
+ lsqDecodedImageWithImage:
重新解析图片
+ (UIImage *)lsqDecodedImageWithImage:(UIImage *)image
Parameters
image |
图片对象 |
---|
Return Value
图片对象
Declared In
TuSDKTSImage+Extend.h
– lsqScaledImageForKey:
根据图片文件名按屏幕DPI进行缩放
- (UIImage *)lsqScaledImageForKey:(NSString *)key
Parameters
key |
图片文件名 |
---|
Return Value
按屏幕DPI进行缩放后的图片
Declared In
TuSDKTSImage+Extend.h
– lsqGetBitmapClipHistListWithClipX:ClipY:fLimit:
Get adaptive histogram equalization
- (uint8_t *)lsqGetBitmapClipHistListWithClipX:(NSUInteger)iClipXNum ClipY:(NSUInteger)iClipYNum fLimit:(CGFloat)fLimit
Parameters
iClipXNum |
水平切片数目 |
---|---|
iClipYNum |
垂直切片数目 |
fLimit |
调节系数 |
Return Value
uint8_t
Declared In
TuSDKTSImage+Extend.h
– lsqGetBitmapHistRange
Get histogram range
- (NSDictionary *)lsqGetBitmapHistRange
Return Value
NSDictionary
Declared In
TuSDKTSImage+Extend.h
– antiAlias
图片抗锯齿
- (UIImage *)antiAlias
Return Value
抗锯齿后的图片
Availability
v3.4.5
Declared In
TuSDKTSImage+Extend.h