ImgFindBlackBorderLeft
Previous  Top  Next

Prototype

intLeftBorderPosition:=ImgFindBlackBorderLeft(intImageHandle, floatMinBlackPercentage, intMaxNumberHoles)

Description

It finds the position of the left black border.

Parameters

intImageHandle: integer value corresponding to the image handle.
floatMinBlackPercentage: the minimum black percentage in a black border column.
intMaxNumberHoles: the maximum number of holes in a black border column;if it is specified -1, then the program will allow 0.04 inches of holes, automatically calculating the corresponding pixels;


Returned value

intLeftBorderPosition: position of the left black border.

Notes

None.

Example

//calculate border coordinates in the four sides of the page
Left:=ImgFindBlackBorderLeft( _CurrentImage, 99.0, 1 );
Top:=ImgFindBlackBorderTop( _CurrentImage, 99.0, 1 );
Right:=ImgFindBlackBorderRight( _CurrentImage, 99.0, 1 );
Bottom:=ImgFindBlackBorderBottom( _CurrentImage, 99.0, 1 );

//clean the border
ImgCleanBorder( _CurrentImage, Left, Top, Right, Bottom );

ApplicationLog(_CurrentAgent,'Border Cleaning');