Search notes:

HTMLCanvasElement

HTMLCanvasElement inherits from HTMLElement.

Methods and properties

captureStream()
getContext() Returns the drawing context on the canvas. Possible values for the first parameter (contextType) are: 2d returns a CanvasRenderingContext2D, webgl a WebGLRenderingContext, webgl2 a WebGL2RenderingContext, webgpu a GPUCanvasContext, bitmaprenderer a ImageBitmapRenderingContext object.
height
mozOpaque Non-standard, Deprecated
toBlob()
toDataURL()
transferControlToOffscreen()
width

Events

contextlost Experimental
contextrestored Experimental
webglcontextcreationerror
webglcontextlost
webglcontextrestored

See also

The HTML <canvas> element.

Index