Graphics.DrawIconUnstretched

Graphics.DrawIconUnstretched method

Draws the image represented by the specified Icon without scaling the image.

public void DrawIconUnstretched(Icon icon, Rectangle targetRect)
ParameterTypeDescription
iconIconIcon to draw.
targetRectRectangleRectangle structure that specifies the location and size of the resulting image. The image is not scaled to fit this rectangle, but retains its original size. If the image is larger than the rectangle, it is clipped to fit inside it.

See Also