ImgFindBlackBorderRight

Top  Previous  Next

Prototype

 

intRightBorderPosition:=ImgFindBlackBorderRight(intImageHandle, floatMinBlackPercentage, intMaxNumberHoles)

 

Description

 

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

 

intRightBorderPosition: position of the right 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 );