GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / CropBorders Method / CropBorders(Int32,Single,ImagingContext) Method
GdPicture image identifier.
Confidence threshold in percentage. Default value is 99 for documents and 92 for digital photo.
A member of the ImagingContext enumeration.





In This Topic
CropBorders(Int32,Single,ImagingContext) Method
In This Topic
Detects and removes margins consisting of constant color around a GdPicture image. It has a Confidence Parameter where if the lines and borders detection confidence exceeds this value they will be removed, and left as they are if the confidence in detecting them is less than the Confidence Parameter Value.
Syntax
'Declaration
 
Public Overloads Function CropBorders( _
   ByVal ImageID As Integer, _
   ByVal Confidence As Single, _
   ByVal Context As ImagingContext _
) As GdPictureStatus
public GdPictureStatus CropBorders( 
   int ImageID,
   float Confidence,
   ImagingContext Context
)
public function CropBorders( 
    ImageID: Integer;
    Confidence: Single;
    Context: ImagingContext
): GdPictureStatus; 
public function CropBorders( 
   ImageID : int,
   Confidence : float,
   Context : ImagingContext
) : GdPictureStatus;
public: GdPictureStatus CropBorders( 
   int ImageID,
   float Confidence,
   ImagingContext Context
) 
public:
GdPictureStatus CropBorders( 
   int ImageID,
   float Confidence,
   ImagingContext Context
) 

Parameters

ImageID
GdPicture image identifier.
Confidence
Confidence threshold in percentage. Default value is 99 for documents and 92 for digital photo.
Context
A member of the ImagingContext enumeration.

Return Value

A member of the GdPictureStatus enumeration.
See Also