TuSDKCPImageDecoder Class Reference

Inherits from NSObject
Declared in TuSDKCPImageDecoder.h

Overview

图片解析基类

  data

Image data

@property (nonatomic, readonly) NSData *data

Declared In

TuSDKCPImageDecoder.h

  type

Image Type

@property (nonatomic, readonly) lasqueImageType type

Declared In

TuSDKCPImageDecoder.h

  scale

DPI缩放级别

@property (nonatomic, readonly) CGFloat scale

Declared In

TuSDKCPImageDecoder.h

  width

Image width

@property (nonatomic, readonly) NSUInteger width

Declared In

TuSDKCPImageDecoder.h

  height

Image height

@property (nonatomic, readonly) NSUInteger height

Declared In

TuSDKCPImageDecoder.h

  orientation

图片方向

@property (nonatomic, readonly) UIImageOrientation orientation

Declared In

TuSDKCPImageDecoder.h

  dataCompleted

数据是否已全部加载完毕

@property (nonatomic, readonly) BOOL dataCompleted

Declared In

TuSDKCPImageDecoder.h

– getImageType:

根据文件头检测图片类型

- (lasqueImageType)getImageType:(const char *)bytes

Parameters

bytes

文件字节指针

Return Value

imageType 图片类型

Declared In

TuSDKCPImageDecoder.h

– supportedTypes

图片解析器支持的格式列表

- (NSArray<NSNumber*> *)supportedTypes

Return Value

supportedTypes 格式数组

Declared In

TuSDKCPImageDecoder.h

– validImageType:

是否支持目标格式

- (BOOL)validImageType:(lasqueImageType)type

Parameters

type

图片格式

Return Value

BOOL

Declared In

TuSDKCPImageDecoder.h