CropBordersEX2 Method

See Also     Examples     Applies To

Detects margins consisting of constant color around the native GdPicture image.
This function returns the coordinate of the cropping selection which can be used by the Crop function.

Syntax

object.CropBordersEX2 (nConfidence, nConfidence, nPixelReference, *nLeft, *nTop, *nWidth, *nHeight)

The CropBordersEX2 syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nConfidence Required. Long. Confidence threshold in percentage.
nConfidence Required. Long. Confidence threshold in percentage. Default value is 90.
nPixelReference Optional. Long. Pixel reference. Default value is 1.
1: Top-Left pixel.
2: Top-Right pixel.
3: Bottom-Right pixel.
4: Bottom-Left pixel.
*nLeft Required. Output long. Returns the left coordinate, in pixel, of the area without margins.
*nTop Required. Output long. Returns the top coordinate, in pixel, of the area without margins.
*nWidth Required. Output long. Returns the width, in pixel, of the area without margins.
*nHeight Required. Output long. Returns the height, in pixel, of the area without margins.

Returns

Long. GdPictureStatus

Category

Crop, Auto Deskew & Auto Border Removal





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.