ImgCropBorder
Previous  Top  Next

Prototype

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

Description

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


ApplicationLog(_CurrentAgent,'Border Cropping');