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

createImageData method

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

The canvas element, Section 13Internet Explorer 9


 retVal = object.createImageData(width, height);


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


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



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.