ImgCropBorder

Top  Previous  Next

Prototype

 

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

 

Description

 

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

 

// Cropping the border

ImgCropBorder( _CurrentImage, Left, Top, Right, Bottom );