## DrawIcon(Icon, int, int) {#drawicon_1}

Draws the image represented by the specified Icon at the specified coordinates.

```csharp
public void DrawIcon(Icon icon, int x, int y)
```

| Parameter | Type | Description |
| --- | --- | --- |
| icon | Icon | Icon to draw. |
| x | Int32 | The x-coordinate of the upper-left corner of the drawn image. |
| y | Int32 | The y-coordinate of the upper-left corner of the drawn image. |

### See Also

* class [Icon](../../icon/)
* class [Graphics](../)
* namespace [Aspose.Drawing](../../graphics/)
* assembly [Aspose.Drawing.Common](../../../)

---

## DrawIcon(Icon, Rectangle) {#drawicon}

Draws the image represented by the specified Icon within the area specified by a Rectangle structure.

```csharp
public void DrawIcon(Icon icon, Rectangle targetRect)
```

| Parameter | Type | Description |
| --- | --- | --- |
| icon | Icon | Icon to draw. |
| targetRect | Rectangle | Rectangle structure that specifies the location and size of the resulting image on the display surface. The image contained in the *icon* parameter is scaled to the dimensions of this rectangular area. |

### See Also

* class [Icon](../../icon/)
* struct [Rectangle](../../rectangle/)
* class [Graphics](../)
* namespace [Aspose.Drawing](../../graphics/)
* assembly [Aspose.Drawing.Common](../../../)


