'Declaration
Public Overloads Function AutoCropPage( _ ByVal MarginLeft As Single, _ ByVal MarginTop As Single, _ ByVal MarginRight As Single, _ ByVal MarginBottom As Single, _ ByVal IgnoreWhiteRectangles As Boolean _ ) As GdPictureStatus
public GdPictureStatus AutoCropPage( float MarginLeft, float MarginTop, float MarginRight, float MarginBottom, bool IgnoreWhiteRectangles )
public function AutoCropPage( MarginLeft: Single; MarginTop: Single; MarginRight: Single; MarginBottom: Single; IgnoreWhiteRectangles: Boolean ): GdPictureStatus;
public function AutoCropPage( MarginLeft : float, MarginTop : float, MarginRight : float, MarginBottom : float, IgnoreWhiteRectangles : boolean ) : GdPictureStatus;
public: GdPictureStatus AutoCropPage( float MarginLeft, float MarginTop, float MarginRight, float MarginBottom, bool IgnoreWhiteRectangles )
public: GdPictureStatus AutoCropPage( float MarginLeft, float MarginTop, float MarginRight, float MarginBottom, bool IgnoreWhiteRectangles )
Parameters
- MarginLeft
- Specifies the width of the left margin for the cropped content.
- MarginTop
- Sets the height of the top margin for the cropped content.
- MarginRight
- Sets the width of the right margin for the cropped content.
- MarginBottom
- Sets the height of the bottom margin for the cropped content.
- IgnoreWhiteRectangles
- Set this parameter to true in order to make the algorithm ignore white rectangle objects on page. Otherwise set to false.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.