com.aliyun.svideosdk.editor

## Interface AliyunICanvasController

-     public interface AliyunICanvasController

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `applyPaintCanvas()` 设置涂鸦
    `void` | `cancel()` 撤销所有的操作
    `void` | `clear()` 清除画布
    `void` | `confirm()` 确认所有的操作
    `View` | `getCanvas()` 获取涂鸦画板
    `boolean` | `hasCanvasPath()` 判断是否有涂鸦
    `void` | `release()` 释放资源
    `void` | `removeCanvas()` 删除视频上的涂鸦渲染
    `int` | `resetPaintCanvas()` 重新设置涂鸦
    `void` | `setCurrentColor(int color)` 设置当前画笔颜色
    `void` | `setCurrentSize(float size)` 设置当前画笔粗细
    `void` | `setPaint(Paint paint)` 设置自定义paint
    `void` | `undo()` 撤销最后一笔

- - ### Method Detail

    - #### applyPaintCanvas

          int applyPaintCanvas()

      设置涂鸦
      Returns:
        成功返回0，失败返回对应的ErrorCode

    - #### getCanvas

          View getCanvas()

      获取涂鸦画板
      Returns:
        涂鸦板View

    - #### hasCanvasPath

          boolean hasCanvasPath()

      判断是否有涂鸦

    - #### removeCanvas

          void removeCanvas()

      删除视频上的涂鸦渲染

    - #### undo

          void undo()

      撤销最后一笔

    - #### cancel

          void cancel()

      撤销所有的操作

    - #### confirm

          void confirm()

      确认所有的操作

    - #### clear

          void clear()

      清除画布

    - #### setPaint

          void setPaint(Paint paint)

      设置自定义paint

    - #### setCurrentColor

          void setCurrentColor(int color)

      设置当前画笔颜色

    - #### setCurrentSize

          void setCurrentSize(float size)

      设置当前画笔粗细

    - #### resetPaintCanvas

          int resetPaintCanvas()

      重新设置涂鸦
      Returns:
        成功返回0，失败返回对应的ErrorCode

    - #### release

          void release()

      释放资源