Export (0) Print
Expand All

createImageData method

Returns a CanvasImageData object with the given dimensions in CSS pixels.

The canvas element, Section 13Internet Explorer 9

Syntax


 retVal = object.createImageData(width, height);

Parameters

width [in]

Type: number

The width of the new object, in CSS pixels.

height [in]

Type: number

The height of the new object, in CSS pixels.

Standards information

Remarks

When the CanvasImageData object is first created, it contains only pixels that are set to transparent black.

 

 

Community Additions

ADD
Show:
© 2014 Microsoft