TuSDK2DImageSticker Class Reference

Inherits from NSObject
Declared in TuSDK2DImageSticker.h

Overview

文字/图片贴纸数据包装

– initWithStickerImage:

根据图片进行初始化

- (instancetype)initWithStickerImage:(UIImage *)stickerImage

Parameters

stickerImage

图片

Return Value

TuSDKLiveStickerImage 实例

Availability

v2.2.0

Declared In

TuSDK2DImageSticker.h

  image

当前贴纸对象

@property (nonatomic, strong, readonly) UIImage *image

Availability

v2.2.0

Declared In

TuSDK2DImageSticker.h

  designScreenSize

编辑贴纸时屏幕大小

@property (nonatomic) CGSize designScreenSize

Availability

v2.2.0

Declared In

TuSDK2DImageSticker.h

  centerPercent

当前文字贴纸相对于 designScreenSize 中心点坐标百分比

@property (nonatomic, assign) CGPoint centerPercent

Availability

v2.2.0

Declared In

TuSDK2DImageSticker.h

  imageSize

绘制的图片大小

@property (nonatomic) CGSize imageSize

Availability

v3.3.2

Declared In

TuSDK2DImageSticker.h

  degree

当前文字贴纸的旋转角度

@property (nonatomic, assign) float degree

Availability

v2.2.0

Declared In

TuSDK2DImageSticker.h

  currentTextureID

当前图片的纹理ID

@property (nonatomic, assign, readonly) GLuint currentTextureID

Availability

v2.2.0

Declared In

TuSDK2DImageSticker.h

– reset

  • 离屏渲染重置Textured
- (void)reset

Availability

v2.2.0

Declared In

TuSDK2DImageSticker.h