ICanvasRenderingContext2D.CreateImageData
Contents
[
Hide
]CreateImageData(double, double)
Creates a new, blank ImageData object with the specified dimensions. All of the pixels in the new object are transparent black.
public IImageData CreateImageData(double sw, double sh)
Parameter | Type | Description |
---|---|---|
sw | Double | The width to give the new ImageData object. |
sh | Double | The height to give the new ImageData object. |
Return Value
A new ImageData object with the specified width and height. The new object is filled with transparent black pixels.
See Also
- interface IImageData
- interface ICanvasRenderingContext2D
- package com.aspose.html.Dom.Canvas
- package Aspose.HTML
CreateImageData(IImageData)
Creates a new, blank ImageData object with the specified dimensions. All of the pixels in the new object are transparent black.
public IImageData CreateImageData(IImageData imagedata)
Parameter | Type | Description |
---|---|---|
imagedata | IImageData | An existing ImageData object from which to copy the width and height. The image itself is not copied. |
Return Value
A new ImageData object with the specified width and height. The new object is filled with transparent black pixels.
See Also
- interface IImageData
- interface ICanvasRenderingContext2D
- package com.aspose.html.Dom.Canvas
- package Aspose.HTML