WhiteImageInformation Class Reference
- iOS
更新时间
Whiteboard iOS SDK 2.16.147 公开接口。
@interface WhiteImageInformation: WhiteObject
成员
– initWithFrame:
- (instancetype)initWithFrame:(CGRect)frame;设置图片框架并初始化 `WhiteImageInformation` 对象。
@param frame 图片框架。包括宽高以及左上角坐标(白板坐标系内)。
@return 初始化的 `WhiteImageInformation` 对象。Declared in Room/WhiteImageInformation.h
– initWithSize:
- (instancetype)initWithSize:(CGSize)size;设置图片尺寸并初始化 `WhiteImageInformation` 对象。
@param size 图片尺寸。
@return 初始化的 `WhiteImageInformation` 对象。Declared in Room/WhiteImageInformation.h
– initWithUuid:frame:
- (instancetype)initWithUuid:(NSString *)uuid frame:(CGRect)frame;设置图片的 UUID 和框架并初始化 `WhiteImageInformation` 对象。
@param uuid 图片的 UUID,即图片在互动白板实时房间中的唯一标识符。
@param frame 图片框架。包括宽高以及左上角坐标(白板坐标系内)。
@return 初始化的 `WhiteImageInformation` 对象。Declared in Room/WhiteImageInformation.h
uuid
@property (nonatomic, copy) NSString *uuid;图片的 UUID,即图片在互动白板实时房间中的唯一标识符。Declared in Room/WhiteImageInformation.h
centerX
@property (nonatomic, assign) CGFloat centerX;图片的中心在世界坐标系(以白板初始化时的中心点为原点的坐标系)中的横向坐标。Declared in Room/WhiteImageInformation.h
centerY
@property (nonatomic, assign) CGFloat centerY;图片的中心在世界坐标系(以白板初始化时的中心点为原点的坐标系)中的纵向坐标。Declared in Room/WhiteImageInformation.h
width
@property (nonatomic, assign) CGFloat width;图片的宽度,单位为像素。Declared in Room/WhiteImageInformation.h
height
@property (nonatomic, assign) CGFloat height;图片的高度,单位为像素。Declared in Room/WhiteImageInformation.h
locked
@property (nonatomic, assign) BOOL locked;是否锁定图片。
图片被锁定后,用户无法移动或缩放图片。
- `YES`:锁定。
- `NO`:不锁定。Declared in Room/WhiteImageInformation.h