Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns a CanvasImageData object with the given dimensions in CSS pixels.
![]() ![]() |
Syntax
retVal = object.createImageData(width, height);
Parameters
width [in]
Type: numberThe width of the new object, in CSS pixels.
height [in]
Type: numberThe height of the new object, in CSS pixels.
Standards information
- The canvas element, Section 13
Remarks
When the CanvasImageData object is first created, it contains only pixels that are set to transparent black.
.png)
.png)