You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Crop, Auto Deskew & Auto Border Removal > CropBorders > CropBorders Method (Integer, Single, ReferencePoint)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.CropBorders Method (Integer, Single, ReferencePoint)

Detects & removes margins consisting of constant color around a GdPicture image.

C#
public GdPictureStatus CropBorders(
    int ImageID, 
    Single Confidence, 
    ReferencePoint PixelReference
);
Visual Basic
Public Function CropBorders(
    ByVal ImageID As Integer, 
    ByVal Confidence As Single, 
    ByVal PixelReference As ReferencePoint
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
Confidence 
Confidence threshold in percentage. Default value is 90.  
PixelReference 
A member of the ReferencePoint enumeration. Default value is ReferencePoint.ReferencePointTopLeft.  
Returns

A member of the GdPictureStatus enumeration.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.