Click or drag to resize
Ranorex

ImagingCrop Method

Crops the given image by the specified rectangle.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static Bitmap Crop(
	Bitmap image,
	Rectangle cropRect
)

Parameters

image
Type: System.DrawingBitmap
An image.
cropRect
Type: System.DrawingRectangle
The bounds of the sub-image in image to return.

Return Value

Type: Bitmap
The cropped image.
See Also