Skip to main content

GraphicsCache.DrawIconUnstretched(Icon, Rectangle) Method

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

Namespace: DevExpress.Utils.Drawing

Assembly: DevExpress.Utils.v24.2.dll

Declaration

public void DrawIconUnstretched(
    Icon icon,
    Rectangle targetRect
)

Parameters

Name 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