 | 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
Syntaxpublic static Bitmap Crop(
Bitmap image,
Rectangle cropRect
)
Public Shared Function Crop (
image As Bitmap,
cropRect As Rectangle
) As Bitmap
Parameters
- image
- Type: System.DrawingBitmap
An image. - cropRect
- Type: System.DrawingRectangle
The bounds of the sub-image in image to return.
Return Value
Type:
BitmapThe cropped image.
See Also