## DrawImage(*[HTMLImageElement](../../../aspose.html/htmlimageelement/), double, double*) {#drawimage_3}

Draws the specified image.

```csharp
public void DrawImage(HTMLImageElement image, double dx, double dy)
```

| Parameter | Type | Description |
| --- | --- | --- |
| image | HTMLImageElement | The HTMLImageElement to draw into the context. |
| dx | Double | The X coordinate in the destination canvas at which to place the top-left corner of the source image. |
| dy | Double | The Y coordinate in the destination canvas at which to place the top-left corner of the source image. |

### See Also

* class [HTMLImageElement](../../../aspose.html/htmlimageelement/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)

---

## DrawImage(*[HTMLCanvasElement](../../../aspose.html/htmlcanvaselement/), double, double*) {#drawimage}

Draws the specified image.

```csharp
public void DrawImage(HTMLCanvasElement image, double dx, double dy)
```

| Parameter | Type | Description |
| --- | --- | --- |
| image | HTMLCanvasElement | The HTMLCanvasElement to draw into the context. |
| dx | Double | The X coordinate in the destination canvas at which to place the top-left corner of the source image. |
| dy | Double | The Y coordinate in the destination canvas at which to place the top-left corner of the source image. |

### See Also

* class [HTMLCanvasElement](../../../aspose.html/htmlcanvaselement/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)

---

## DrawImage(*[HTMLImageElement](../../../aspose.html/htmlimageelement/), double, double, double, double*) {#drawimage_4}

Draws the specified image.

```csharp
public void DrawImage(HTMLImageElement image, double dx, double dy, double dw, double dh)
```

| Parameter | Type | Description |
| --- | --- | --- |
| image | HTMLImageElement | The HTMLImageElement to draw into the context. |
| dx | Double | The X coordinate in the destination canvas at which to place the top-left corner of the source image. |
| dy | Double | The Y coordinate in the destination canvas at which to place the top-left corner of the source image. |
| dw | Double | 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 | Double | 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

* class [HTMLImageElement](../../../aspose.html/htmlimageelement/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)

---

## DrawImage(*[HTMLCanvasElement](../../../aspose.html/htmlcanvaselement/), double, double, double, double*) {#drawimage_1}

Draws the specified image.

```csharp
public void DrawImage(HTMLCanvasElement image, double dx, double dy, double dw, double dh)
```

| Parameter | Type | Description |
| --- | --- | --- |
| image | HTMLCanvasElement | The HTMLCanvasElement to draw into the context. |
| dx | Double | The X coordinate in the destination canvas at which to place the top-left corner of the source image. |
| dy | Double | The Y coordinate in the destination canvas at which to place the top-left corner of the source image. |
| dw | Double | 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 | Double | 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

* class [HTMLCanvasElement](../../../aspose.html/htmlcanvaselement/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)

---

## DrawImage(*[HTMLImageElement](../../../aspose.html/htmlimageelement/), double, double, double, double, double, double, double, double*) {#drawimage_5}

Draws the specified image.

```csharp
public void DrawImage(HTMLImageElement image, double sx, double sy, double sw, double sh, 
    double dx, double dy, double dw, double dh)
```

| Parameter | Type | Description |
| --- | --- | --- |
| image | HTMLImageElement | The HTMLImageElement to draw into the context. |
| sx | Double | The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context. |
| sy | Double | The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context. |
| sw | Double | The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rectangle from the coordinates specified by sx and sy to the bottom-right corner of the image is used. |
| sh | Double | The height of the sub-rectangle of the source image to draw into the destination context. |
| dx | Double | The X coordinate in the destination canvas at which to place the top-left corner of the source image. |
| dy | Double | The Y coordinate in the destination canvas at which to place the top-left corner of the source image. |
| dw | Double | 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 | Double | 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

* class [HTMLImageElement](../../../aspose.html/htmlimageelement/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)

---

## DrawImage(*[HTMLCanvasElement](../../../aspose.html/htmlcanvaselement/), double, double, double, double, double, double, double, double*) {#drawimage_2}

Draws the specified image.

```csharp
public void DrawImage(HTMLCanvasElement image, double sx, double sy, double sw, double sh, 
    double dx, double dy, double dw, double dh)
```

| Parameter | Type | Description |
| --- | --- | --- |
| image | HTMLCanvasElement | The HTMLCanvasElement to draw into the context. |
| sx | Double | The X coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context. |
| sy | Double | The Y coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context. |
| sw | Double | The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rectangle from the coordinates specified by sx and sy to the bottom-right corner of the image is used. |
| sh | Double | The height of the sub-rectangle of the source image to draw into the destination context. |
| dx | Double | The X coordinate in the destination canvas at which to place the top-left corner of the source image. |
| dy | Double | The Y coordinate in the destination canvas at which to place the top-left corner of the source image. |
| dw | Double | 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 | Double | 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

* class [HTMLCanvasElement](../../../aspose.html/htmlcanvaselement/)
* interface [ICanvasRenderingContext2D](../)
* namespace [Aspose.Html.Dom.Canvas](../../../aspose.html.dom.canvas/)
* assembly [Aspose.HTML](../../../)
