Suoranta.NaturalLanguage - Developer API

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

Crops image to leave the area within rectangle.

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

Syntax


public static Image Crop(
	this Bitmap image,
	Rectangle rectangle,
	ImageFormat imageFormat
)

Parameters

image
Type: Bitmap
the source image
rectangle
Type: Rectangle
the bounding rectangle.
imageFormat
Type: ImageFormat
return format

Return Value

cropped Image in imageFormat

Exceptions


ExceptionCondition
ArgumentExceptionCrop area is fully outside the image. - rectangle