width property
Gets the number of physical device pixels in a row of the CanvasImageData object.
![]() ![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Integer
The number of pixels in a row of the CanvasImageData object.
Standards information
- HTML Canvas 2D Context, Section 13
Remarks
For an example of using length, see Sampling image colors with Canvas.
See also
Show:

