[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GrayscaleBitmap.Clip

Clip Method

Clip(Rectangle, bool)

Creates a new GrayscaleBitmap with a fragment of the image.

Declaration
public GrayscaleBitmap Clip(Rectangle rect, bool metadataOnly = false)
Public Function Clip(rect As Rectangle, Optional metadataOnly As Boolean = False) As GrayscaleBitmap
Parameters
Type Name Description
Rectangle rect

Clipping rectangle of the source image to be extracted as a new GrayscaleBitmap.

bool metadataOnly

Specifies whether to copy the image metadata only, not actual pixel data. If false, the corresponding pixel data will be copied from the current GrayscaleBitmap. If true, the pixel data of the resulting GrayscaleBitmap remain uninitialized.

Returns
Type Description
GrayscaleBitmap