Skip to main content

GraphicsCache.DrawImage(Image, Rectangle, Rectangle, Boolean) Method

Draws the specified Image portion with the specified size.

Namespace: DevExpress.Utils.Drawing

Assembly: DevExpress.Utils.v23.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

public void DrawImage(
    Image image,
    Rectangle destRect,
    Rectangle scrRect,
    bool enabled
)

Parameters

Name Type Description
image Image

An Image to draw.

destRect Rectangle

A Rectangle structure that specifies the drawn image’s location and size. The image is scaled to fit the rectangle.

scrRect Rectangle

A Rectangle structure that specifies the image portion to be drawn.

enabled Boolean

true if the image should be painted as is; false to draw a grayed-out “disabled” image.

See Also