ImgFindBorderChangeTop |
Top Previous Next |
Prototype
intTopBorderPosition:=ImgFindBorderChangeTop(intImageHandle, floatMinChangePecentage, floatMaxBorderSize, boolDarkToLight)
Description
Finds the position of the top border examining the change in brightness.
Parameters
intImageHandle: integer value corresponding to the image handle.
floatMinChangePercentage: the minimum change percentage of brighness in the border column.
floatMaxBorderSize: the maximum border size, in inches
boolDarkToLight: flag selecting if the border change to find is dark to light or vice-versa
Returned value
intTopBorderPosition: position of the left border.
Notes
None.
Example
// Calculate border coordinates in the four sides of the page Left:=ImgFindBorderChangeLeft( _CurrentImage, 70.0, 1.0, True ); Top:=ImgFindBorderChangeTop( _CurrentImage, 70.0, 1.0, True ); Right:=ImgFindBorderChangeRight( _CurrentImage, 70.0, 1.0, True ); Bottom:=ImgFindBorderChangeBottom( _CurrentImage, 70.0, 1.0, True );
// Clean the border ImgCleanBorder( _CurrentImage, Left, Top, Right, Bottom ); |