ICanvasRenderingContext2DDrawImage Method (HTMLCanvasElement, Double, Double, Double, Double) |
Draws the specified image.
Namespace: Aspose.Html.Dom.CanvasAssembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
Syntax void DrawImage(
HTMLCanvasElement image,
double dx,
double dy,
double dw,
double dh
)
Sub DrawImage (
image As HTMLCanvasElement,
dx As Double,
dy As Double,
dw As Double,
dh As Double
)
void DrawImage(
HTMLCanvasElement^ image,
double dx,
double dy,
double dw,
double dh
)
abstract DrawImage :
image : HTMLCanvasElement *
dx : float *
dy : float *
dw : float *
dh : float -> unit
Parameters
- image
- Type: Aspose.HtmlHTMLCanvasElement
The HTMLCanvasElement to draw into the context. - dx
- Type: SystemDouble
The X coordinate in the destination canvas at which to place the top-left corner of the source image. - dy
- Type: SystemDouble
The Y coordinate in the destination canvas at which to place the top-left corner of the source image. - dw
- Type: SystemDouble
The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in width when drawn. - dh
- Type: SystemDouble
The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in height when drawn.
See Also