Graphics.DrawIcon
Contents
[
Hide
]DrawIcon(Icon, int, int)
Draws the image represented by the specified Icon at the specified coordinates.
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
- class Graphics
- namespace System.Drawing
- assembly Aspose.Drawing
DrawIcon(Icon, Rectangle)
Draws the image represented by the specified Icon within the area specified by a Rectangle structure.
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
- struct Rectangle
- class Graphics
- namespace System.Drawing
- assembly Aspose.Drawing