Canvas

Canvas object

property

number width

Canvas width

number height

Canvas height

Method

string Canvas.toTempFilePath(Object object)

Save the current canvas as a temporary file and generate the corresponding temporary file path.

RenderingContext Canvas.getContext(string contextType, Object contextAttributes)

Acquire canvas object's drawing context

string Canvas.toDataURL()

Return the drawing content on the canvas in a data URI format