Results 1 - 10 of 10

HTMLCanvasElement.height

The HTMLCanvasElement.height property is a positive integer reflecting the height HTML attribute of the <canvas> element interpreted in CSS pixels. When the attribute is not specified, or if it is set to an invalid value, like a negative, the default value of 150 is used.
API Canvas HTMLCanvasElement Property

HTMLCanvasElement.mozOpaque

The HTMLCanvasElement.mozOpaque property is a Boolean reflecting the moz-opaque HTML attribute of the <canvas> element. It lets the canvas know whether or not translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized.
API Canvas HTMLCanvasElement Property

HTMLCanvasElement.width

The HTMLCanvasElement.width property is a positive integer reflecting the width HTML attribute of the <canvas> element interpreted in CSS pixels. When the attribute is not specified, or if it is set to an invalid value, like a negative, the default value of 300 is used.
API Canvas HTMLCanvasElement Property

HTMLCanvasElement.getContext()

The HTMLCanvasElement.getContext() method returns a drawing context on the canvas, or null if the context identifier is not supported.
API Canvas HTMLCanvasElement Method Reference

HTMLCanvasElement.toBlob()

The HTMLCanvasElement.toBlob() method creates a Blob object representing the image contained in the canvas; this file may be cached on the disk or stored in memory at the discretion of the user agent. If type is not specified, the image type is image/png. The created image is in a resolution of 96dpi.
The third argument is used with image/jpeg images to specify the quality of the output.
API Canvas HTMLCanvasElement Method Reference

HTMLCanvasElement.captureStream()

The HTMLCanvasElement.captureStream() method returns a CanvasCaptureMediaStream that is a real-time video capture of the surface of the canvas.
Experimental HTMLCanvasElement Media Stream Method Reference Web

HTMLCanvasElement.mozFetchAsStream()

The HTMLCanvasElement.mozFetchAsStream() internal method used to create a new input stream that, when ready, would provide the contents of the canvas as image data. However, this non-standard and internal method has been removed.
API Canvas HTMLCanvasElement Method Obsolete Reference

HTMLCanvasElement.mozGetAsFile()

The HTMLCanvasElement.mozGetAsFille() method returns a File object representing the image contained in the canvas; this file is a memory-based file, with the specified name. If type is not specified, the image type is image/png.
API Canvas HTMLCanvasElement Method Reference Référence

HTMLCanvasElement.toDataURL()

The HTMLCanvasElement.toDataURL() method returns a data URI containing a representation of the image in the format specified by the type parameter (defaults to PNG). The returned image is in a resolution of 96 dpi.
API Canvas HTMLCanvasElement Method Reference Référence

HTMLCanvasElement.transferControlToOffscreen()

The HTMLCanvasElement.transferControlToOffscreen() method transfers control to an OffscreenCanvas object, either on the main thread or on a worker.
API Experimental HTMLCanvasElement Method OffscreenCanvas Reference