length property
Gets or sets the number of pixel entries in a CanvasPixelArray object.
![]() ![]() |
Syntax
HRESULT value = object.get_length(* p);
Property values
Type: unsigned long
The number of pixel entries in an array.
Standards information
- HTML Canvas 2D Context, Section 13
Remarks
A unit of length represents the height and width attributes of an CanvasImageData object times four (that is, height × width × 4)
For an example of using length, see Sampling image colors with Canvas.
Build date: 11/12/2012

