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

width property

Gets the number of physical device pixels in a row of the CanvasImageData object.

HTML Canvas 2D Context, Section 13Internet Explorer 9

Syntax

JavaScript

number = object.width

Property values

Type: Integer

The number of pixels in a row of the CanvasImageData object.

Standards information

Remarks

For an example of using length, see Sampling image colors with Canvas.

See also

CanvasImageData
Sampling image colors with Canvas

 

 

Show:
© 2014 Microsoft. All rights reserved.