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





In This Topic
CropBorders(Int32,Single,ReferencePoint,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 PixelReference As ReferencePoint, _
   ByVal Context As ImagingContext _
) As GdPictureStatus
public function CropBorders( 
    ImageID: Integer;
    Confidence: Single;
    PixelReference: ReferencePoint;
    Context: ImagingContext
): GdPictureStatus; 
public function CropBorders( 
   ImageID : int,
   Confidence : float,
   PixelReference : ReferencePoint,
   Context : ImagingContext
) : GdPictureStatus;

Parameters

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

Return Value

A member of the GdPictureStatus enumeration.
Remarks

This method requires the Image Documents component to run.

See Also