Graphics.DrawIconUnstretched
Graphics.DrawIconUnstretched method
Draws the image represented by the specified Icon without scaling the image.
public void DrawIconUnstretched(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. 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
- class Icon
- struct Rectangle
- class Graphics
- namespace System.Drawing
- assembly Aspose.Drawing