WhiteImageInformation Class Reference

Inherits from WhiteObject
Declared in WhiteImageInformation.h

Overview

Image information.

– initWithFrame:

Sets the frame of the image and initialize the WhiteImageInformation object.

- (instancetype)initWithFrame:(CGRect)frame

Parameters

frame

The frame of the image, which include width, height and the coordinate of the upper left corner (in the whiteboard coordinate system).

Return Value

Initialized WhiteImageInformation object.

Declared In

WhiteImageInformation.h

– initWithSize:

Sets the size of the image and initialize the WhiteImageInformation object.

- (instancetype)initWithSize:(CGSize)size

Parameters

size

The picture size.

Return Value

Initialized WhiteImageInformation object.

Declared In

WhiteImageInformation.h

– initWithUuid:frame:

Sets the UUID and frame of the image and initialize the WhiteImageInformation object.

- (instancetype)initWithUuid:(NSString *)uuid frame:(CGRect)frame

Parameters

uuid

The unique identifier (UUID) of the image.

frame

The frame of the image, which include width, height and the coordinate of the upper left corner (in the whiteboard coordinate system).

Return Value

Initialized WhiteImageInformation object.

Declared In

WhiteImageInformation.h

  uuid

The UUID of the image.

@property (nonatomic, copy) NSString *uuid

Discussion

The UUID of the image is a string, which is the identifier of the image and must be unique in the live interactive whiteboard room.

Declared In

WhiteImageInformation.h

  centerX

The X coordinate of the center of the image in the world coordinate system (taking the center of the initial whiteboard as the origin).

@property (nonatomic, assign) CGFloat centerX

Declared In

WhiteImageInformation.h

  centerY

The Y coordinate of the center of the image in the world coordinate system (taking the center of the initial whiteboard as the origin).

@property (nonatomic, assign) CGFloat centerY

Declared In

WhiteImageInformation.h

  width

The width (px) of the image.

@property (nonatomic, assign) CGFloat width

Declared In

WhiteImageInformation.h

  height

The height (px) of the image.

@property (nonatomic, assign) CGFloat height

Declared In

WhiteImageInformation.h

  locked

Whether the image is locked. When an image is locked, users cannot move or zoom the image.

@property (nonatomic, assign) BOOL locked

Discussion

  • YES:Locks the image.
  • NO:(Default) Do not lock the image.

Declared In

WhiteImageInformation.h