AutoCrop removes the border with color like Background from the image borders.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public IERect AutoCrop(
	int tolerance,
	IERGB background,
	bool doCrop
)
Public Function AutoCrop ( _
	tolerance As Integer, _
	background As IERGB, _
	doCrop As Boolean _
) As IERect
public:
IERect AutoCrop(
	int tolerance, 
	IERGB background, 
	bool doCrop
)

Parameters

tolerance
Int32
The Tolerance specifies how much background color must be equal to actual pixel
background
IERGB
A color which defined the background
doCrop
Boolean
If False the image is not cropped, but the suggested area for cropping is returned as the result

Return Value

Returns the area to crop or cropped

Examples

CopyC#
IEImage1.AcquireFromTWain();
IEImage1.AutoCrop(10, new IERGB(0,0,0));

See Also