ImgFindBlackBorderBottom

Top  Previous  Next

Prototype

 

intBottomBorderPosition:=ImgFindBlackBorderBottom(intImageHandle, floatMinBlackPercentage, intMaxNumberHoles)

 

Description

 

Finds the position of the bottom 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

 

intBottomBorderPosition: 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 );