Properties
This section contains the HTML5 Canvas properties reference documentation.
In this section
| Topic | Description |
|---|---|
|
Gets a back reference to the canvas object that the current context derives from. | |
|
Gets the CanvasPixelArray object that contains image data for a given CanvasImageData object. | |
|
Gets or sets the current style that is used to fill shapes. | |
|
Gets or sets the current font for the context. | |
|
Gets or sets the current alpha or transparency value that is applied to global composite rendering operations. | |
|
Gets or sets a value that indicates how source images are drawn onto a destination image. | |
|
Gets or sets the height of a canvas element on a document. | |
|
Gets the number of rows of physical device pixels in the CanvasImageData object. | |
|
Gets or sets the number of pixel entries in a CanvasPixelArray object. | |
|
Gets or sets the current line cap style. | |
|
Sets or gets the phase offset of the current line dash pattern. Can be changed to produce "marching ants" animation like marching ants. | |
|
Gets or sets the type of corner that is created when two lines meet. | |
|
Gets or sets the current line width, in pixels. | |
|
Gets or sets the maximum allowed ratio between half of the lineWidth value and the miter length. | |
|
Gets or sets the fill rule used to check if a point is inside a shape when filling. | |
|
Choose bilinear or nearest-neighbor image smoothing when images are resized. | |
|
Gets or sets the current level of blur that is applied to shadows. | |
|
Gets or sets the color to use for shadows. | |
|
Gets or sets the horizontal distance of a shadow from a shape. | |
|
Gets or sets the vertical distance of a shadow from a shape. | |
|
Gets or sets the current style that is used for strokes (lines) on shapes. | |
|
Gets or sets the current anchor point or alignment settings for text in the current context. | |
|
Gets or sets the current settings for the font baseline alignment. | |
|
Gets or sets the width of a canvas element on a document. | |
|
Gets the number of physical device pixels in a row of the CanvasImageData object. | |
|
Gets the width, in CSS pixels, of a given box of text. |