Canvas 2D rendering context API
|
Object |
Description |
Availability |
|---|---|---|
|
Represents a linear or radial gradient definition that is used for fills and strokes. |
6.0or later |
|
|
Represents an image that is used as a repeatable pattern for fills and strokes. |
6.0 or later |
|
|
Provides access to the raw pixel data for the canvas image. |
6.0 or later |
|
|
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 |
|
|
Contains information about the image on a canvas. |
6.0 or later |
|
|
Returns the width of a block of text. |
6.0 or later |
- Object: CanvasGradient
- Object: CanvasPattern
- CanvasPixelArray
- Object: CanvasRenderingContext2D
- Object: ImageData
- Object: TextMetrics