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

绘制指定表示的图像Icon在指定的坐标。

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| icon | Icon | Icon画。 |
| x | Int32 | 绘制图像左上角的 x 坐标。 |
| y | Int32 | 绘制图像左上角的 y 坐标。 |

### 也可以看看

* class [Icon](../../icon)
* class [Graphics](../../graphics)
* 命名空间 [System.Drawing](../../graphics)
* 部件 [Aspose.Drawing](../../../)

---

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

绘制指定表示的图像Icon在a指定的区域内Rectangle结构.

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| icon | Icon | Icon画。 |
| targetRect | Rectangle | Rectangle结构，它指定生成图像在显示表面上的位置和大小。 包含在*icon*参数被缩放到这个矩形区域的尺寸。 |

### 也可以看看

* class [Icon](../../icon)
* struct [Rectangle](../../rectangle)
* class [Graphics](../../graphics)
* 命名空间 [System.Drawing](../../graphics)
* 部件 [Aspose.Drawing](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Drawing.dll -->
