Results 101 - 120 of 129

CanvasRenderingContext2D.translate()

The CanvasRenderingContext2D.translate() method of the Canvas 2D API adds a translation transformation by moving the canvas and its origin x horizontally and y vertically on the grid.
API Canvas CanvasRenderingContext2D Method Reference Référence

HTMLCanvasElement

The HTMLCanvasElement interface provides properties and methods for manipulating the layout and presentation of canvas elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface.
API Canvas HTML DOM Interface Reference

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

ImageBitmapFactories

The ImageBitmapFactories mixin interface contains utility methods to create an ImageBitmap. There is no object of this type, but the two interfaces Window, available within the regular browsing scope, and the WorkerGlobalScope interface for workers, implement this interface.
API Canvas Interface Mixin Reference Workers

ImageBitmapRenderingContext

The ImageBitmapRenderingContext interface is a canvas rendering context which only provides the functionality to replace the canvas's contents with the given ImageBitmap. Its context id (the first argument to HTMLCanvasElement.getContext() or OffscreenCanvas.getContext()  is "bitmaprenderer".
API Canvas Experimental Interface OffscreenCanvas Reference

ImageData.data

The readonly ImageData.data property returns a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (included).
API Canvas ImageData Property Reference Référence

ImageData.height

The readonly ImageData.height property returns the number of rows in the image data object.
API Canvas ImageData Property Reference Référence

OffscreenCanvas.getContext()

The OffscreenCanvas.getContext() method returns a drawing context for an offscreen canvas, or null if the context identifier is not supported.
API Canvas Experimental Method OffscreenCanvas Reference

OffscreenCanvas.height

The height property returns and sets the height of an OffscreenCanvas object.
API Canvas Experimental OffscreenCanvas Property Reference

OffscreenCanvas()

The OffscreenCanvas() constructor returns a newly instantiated OffscreenCanvas object.
API Canvas Constructor Experimental OffscreenCanvas Reference WebGL

OffscreenCanvas.toBlob()

The OffscreenCanvas.toBlob() method creates a Blob object representing the image contained in the canvas.
API Canvas Experimental Method OffscreenCanvas Reference

OffscreenCanvas.transferToImageBitmap()

The OffscreenCanvas.transferToImageBitmap() method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas.
API Canvas Experimental Method OffscreenCanvas Reference

OffscreenCanvas.width

The width property returns and sets the width of an OffscreenCanvas object.
API Canvas Experimental OffscreenCanvas Property Reference

Path2D

The Path2D interface of the Canvas 2D API is used to declare paths that are then later used on CanvasRenderingContext2D objects. The path methods of the CanvasRenderingContext2D interface are present on this interface as well and are allowing you to create paths that you can retain and replay as required on a canvas.
API Canvas Interface Path2D Reference Référence

TextMetrics.width

The readonly TextMetrics.width property contains the text's advance width (the width of that inline box) in CSS pixels.
API Canvas Property Reference Référence TextMetrics

CORS enabled image

The HTML specification introduces a crossorigin attribute for images that, in combination with an appropriate CORS header, allows images defined by the <img> element loaded from foreign origins to be used in canvas as if they were being loaded from the current origin.
Advanced Canvas CORS HTML Reference Référence Security

CanvasPattern.setTransform()

The CanvasPattern.setTransform() method uses an SVGMatrix object as the pattern's transformation matrix and invokes it on the pattern.
API Canvas CanvasPattern Experimental Expérimental Method Reference Référence

CanvasRenderingContext2D.globalCompositeOperation

The CanvasRenderingContext2D.globalCompositeOperation property of the Canvas 2D API sets the type of compositing operation to apply when drawing new shapes, where type is a string identifying which of the compositing or blending mode operations to use.
API Blending Canvas CanvasRenderingContext2D Compositing Property Reference