HTMLCanvas is a proxy class for the HTML Canvas, encapsulating the properties and methods of the Canvas.

HTMLCanvas 是 Html Canvas 的代理类,封装了 Canvas 的属性和方法。

属性

访问器

方法

属性

source: HTMLCanvasElement

访问器

方法

  • 参数

    • w: number

      The width of the Canvas.

    • h: number

      The height of the Canvas.

    返回 void

    Set the width and height of the Canvas.

    设置画布的宽度和高度。