Help Center

Local Navigation

Canvas 2D rendering context API

Object

Description

Availability

CanvasGradient

Represents a linear or radial gradient definition that is used for fills and strokes.

6.0or later

CanvasPattern

Represents an image that is used as a repeatable pattern for fills and strokes.

6.0 or later

CanvasPixelArray

Provides access to the raw pixel data for the canvas image.

6.0 or later

CanvasRenderingContext2D

Defines the context in which drawing and animation occurs. It represents a flat, rectangular two-dimensional surface that is placed upon the canvas defined by the associated <canvas> element.

6.0 or later

ImageData

Contains information about the image on a canvas.

6.0 or later

TextMetrics

Returns the width of a block of text.

6.0 or later


Was this information helpful? Send us your comments.