Prototype
intTopBorderPosition:=ImgFindBlackBorderTop(intImageHandle, floatMinBlackPercentage, intMaxNumberHoles)
Description
It finds the position of the top black border.
Parameters
intImageHandle: integer value corresponding to the image handle.
floatMinBlackPercentage: the minimum black percentage in a black border row.
intMaxNumberHoles: the maximum number of holes in a black border row; if it is specified -1, then the program will allow 0.04 inches of holes, automatically calculating the corresponding pixels;
Returned value
intTopBorderPosition: position of the bottom 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');