## Graphics.DrawIconUnstretched method

绘制指定表示的图像Icon不缩放图像。

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| icon | Icon | Icon画。 |
| targetRect | Rectangle | Rectangle指定生成图像的位置和大小的结构。 图像未缩放以适合此矩形，但保留其原始大小。如果图像大于矩形， 它会被剪裁以适应它。 |

### 也可以看看

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

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