Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

createImageData method

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

The canvas element, Section 13Internet Explorer 9

 

Syntax

var retval = CanvasRenderingContext2D.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.

Return value

Type: CanvasImageData

Standards information

Remarks

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

See also

CanvasRenderingContext2D

 

 

Show:
© 2017 Microsoft