ImgCleanBorder

Top  Previous  Next

Prototype

 

ImgCleanBorder(intImageHandle, intLeftPosition, intTopPosition, intRightPosition, intBottomPosition)

 

Description

 

Cleans black border.

 

Parameters

 

intImageHandle: integer value corresponding to the image handle.

 

intLeftPosition: the position of the left black border.

 

intRightPosition: the position of the right black border.

 

intTopPosition: the position of the top black border.

 

intBottomPosition: the position of the bottom black border.

 

Returned value

 

None.

 

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