Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

length property

Gets or sets the number of pixel entries in a CanvasPixelArray object.

This property is read/write.

HTML Canvas 2D Context, Section 13Internet Explorer 9

Syntax

HRESULT put_length();

HRESULT get_length(
  [out, retval]  unsigned long *number
);

Property values

Type: unsigned long

The number of pixel entries in an array.

Standards information

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.

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.