Skip to main content

GraphicsCache.DrawImage(Image, Int32, Int32, Rectangle, GraphicsUnit) Method

Draws an image portion at a specified location.

Namespace: DevExpress.Utils.Drawing

Assembly: DevExpress.Utils.v24.1.dll

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

Declaration

public void DrawImage(
    Image image,
    int x,
    int y,
    Rectangle srcRect,
    GraphicsUnit srcUnit
)

Parameters

Name Type Description
image Image

An Image to draw.

x Int32

An Int32 value that is the x-coordinate of the image upper-left corner.

y Int32

An Int32 value that is the y-coordinate of the image upper-left corner.

srcRect Rectangle

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

srcUnit GraphicsUnit

A GraphicsUnit enumeration value that specifies the measure units for the srcRect parameter.

See Also