Canvas 2D rendering context API

Object

Description

Availability

CanvasGradient

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

6.0+

CanvasPattern

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

6.0+

CanvasPixelArray

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

6.0+

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+

ImageData

Contains information about the image on a canvas.

6.0+

TextMetrics

Returns the width of a block of text.

6.0+

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus