Skip to main content
A newer version of this page is available. .
All docs
V22.2

DXBitmap.Crop(Rectangle) Method

Crops the bitmap to the specified rectangle.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v22.2.dll

NuGet Package: DevExpress.Drawing

Declaration

public DXBitmap Crop(
    Rectangle rectangle
)

Parameters

Name Type Description
rectangle Rectangle

An area to which the bitmap should be cropped.

Returns

Type Description
DXBitmap

The resulting bitmap.

See Also