AVDCanvasView Class Reference

Inherits from UIView
Declared in AVDCanvasView.h
AVDCanvasView.m

Other Methods

– attachView:whiteboar:boardInfo:annotaion:

显示白板

- (void)attachView:(UIView *)sView whiteboar:(AVDWhiteboard *)board boardInfo:(AVDWhiteboardInfo *)boardInfo annotaion:(AVDAnnotaion *)anno

Parameters

sView

白板view

board

白板对象

boardInfo

白板信息

anno

注释信息

Discussion

显示白板

Declared In

AVDCanvasView.h

– removeBoardTool:

移除sdk自带的toolView

- (void)removeBoardTool:(UIView *)sView

Parameters

sView

传nil

Discussion

移除sdk自带的toolView

Declared In

AVDCanvasView.h

– setBrushType:

设置画笔类型

- (void)setBrushType:(BrushPattern)brushType

Parameters

brushType

画笔类型

Discussion

设置画笔类型

Declared In

AVDCanvasView.h

– setBrushColor:

设置画笔颜色

- (void)setBrushColor:(UIColor *)brushColor

Parameters

brushColor

brushColor

Discussion

设置画笔颜色

Declared In

AVDCanvasView.h

– setBrushWidth:

设置画笔宽度

- (void)setBrushWidth:(NSInteger)brushWidth

Parameters

brushWidth

brushWidth

Discussion

设置画笔宽度

Declared In

AVDCanvasView.h

– setIsEraser:

设置是否是橡皮擦

- (void)setIsEraser:(BOOL)isEraser

Parameters

isEraser

isEraser

Discussion

设置是否是橡皮擦

Declared In

AVDCanvasView.h

– setIsNite:

设置是否是激光笔

- (void)setIsNite:(BOOL)isNite

Parameters

isNite

isNite

Discussion

设置是否是激光笔

Declared In

AVDCanvasView.h

– unDo

撤销

- (void)unDo

Discussion

撤销

Declared In

AVDCanvasView.h

– reDo

重做

- (void)reDo

Discussion

重做

Declared In

AVDCanvasView.h

– clearBrush

清空

- (void)clearBrush

Discussion

清空

Declared In

AVDCanvasView.h

– setIsToolOpen:

设置工具条展开状态

- (void)setIsToolOpen:(BOOL)isToolOpen

Discussion

设置工具条展开状态

Declared In

AVDCanvasView.h

– updateBackgroundImg:

更新本地白板背景图

- (void)updateBackgroundImg:(UIImage *)img

Parameters

img

uiimage

Discussion

更新本地白板背景图

Declared In

AVDCanvasView.h

– updateBackgroundColor:

更新本地白板背景

- (void)updateBackgroundColor:(UIColor *)color

Parameters

img

uiimage

Discussion

更新本地白板背景

Declared In

AVDCanvasView.h

– canvasSize

获取画板大小

- (CGSize)canvasSize

Return Value

size

Discussion

获取画板大小

Declared In

AVDCanvasView.h

Extension Methods

  boardTool

白板工具条

@property (nonatomic, strong) ToolView *boardTool

Discussion

白板工具条

Declared In

AVDCanvasView.m

  isNite

是否是荧光笔

@property (nonatomic, assign) BOOL isNite

Discussion

是否是荧光笔

Declared In

AVDCanvasView.m

  scrollView

用于缩放

@property (nonatomic, strong) UIScrollView *scrollView

Discussion

用于缩放

Declared In

AVDCanvasView.m

  laserPenImg

激光笔

@property (nonatomic, strong) UIImageView *laserPenImg

Discussion

激光笔

Declared In

AVDCanvasView.m

  hightTextLab

带箭头的文字

@property (nonatomic, strong) UIButton *hightTextLab

Discussion

带箭头的文字

Declared In

AVDCanvasView.m

  isSelfBoard

是否是自己共享的白板

@property (nonatomic, assign) BOOL isSelfBoard

Discussion

是否是自己共享的白板

Declared In

AVDCanvasView.m

  isToolOpen

工具条是否展开

@property (nonatomic, assign) BOOL isToolOpen

Discussion

工具条是否展开

Declared In

AVDCanvasView.m

  bottomDis

工具条底部距离画布底部距离

@property (nonatomic, assign) CGFloat bottomDis

Discussion

工具条底部距离画布底部距离

Declared In

AVDCanvasView.m