ICanvasRenderingContext2DCreateImageData Method (Double, Double) |
Creates a new, blank ImageData object with the specified dimensions.
All of the pixels in the new object are transparent black.
Namespace: Aspose.Html.Dom.CanvasAssembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
SyntaxIImageData CreateImageData(
double sw,
double sh
)
Function CreateImageData (
sw As Double,
sh As Double
) As IImageData
IImageData^ CreateImageData(
double sw,
double sh
)
abstract CreateImageData :
sw : float *
sh : float -> IImageData
Parameters
- sw
- Type: SystemDouble
The width to give the new ImageData object. - sh
- Type: SystemDouble
The height to give the new ImageData object.
Return Value
Type:
IImageDataA new ImageData object with the specified width and height. The new object is filled with transparent black pixels.
See Also