Suoranta.NaturalLanguage - Developer API

ImageExtensions..::..Crop Method (Bitmap, Rectangle)

Crops image to leave the area within rectangle.

Namespace:  Suoranta.NaturalLanguage
Assembly:  Suoranta.NaturalLanguage (in Suoranta.NaturalLanguage.dll)

Syntax


public static Bitmap Crop(
	this Bitmap image,
	Rectangle rectangle
)

Parameters

image
Type: Bitmap
the source image
rectangle
Type: Rectangle
the bounding rectangle.

Return Value

cropped Bitmap

Exceptions


ExceptionCondition
ArgumentExceptionCrop area is fully outside the image. - rectangle