Graphics.DrawIcon

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)
ParameterTypeDescription
iconIconIcon to draw.
xInt32The x-coordinate of the upper-left corner of the drawn image.
yInt32The y-coordinate of the upper-left corner of the drawn image.

See Also


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)
ParameterTypeDescription
iconIconIcon to draw.
targetRectRectangleRectangle 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