'Declaration
Public Overloads Function RemoveHolePunch( _ ByVal ImageID As Integer, _ ByVal Margins As HolePunchMargins _ ) As GdPictureStatus
public GdPictureStatus RemoveHolePunch( int ImageID, HolePunchMargins Margins )
public function RemoveHolePunch( ImageID: Integer; Margins: HolePunchMargins ): GdPictureStatus;
public function RemoveHolePunch( ImageID : int, Margins : HolePunchMargins ) : GdPictureStatus;
public: GdPictureStatus RemoveHolePunch( int ImageID, HolePunchMargins Margins )
public: GdPictureStatus RemoveHolePunch( int ImageID, HolePunchMargins Margins )
Parameters
- ImageID
- GdPicture image identifier.
Be aware that only 1, 8 and 24 bit per pixel images are supported.
- Margins
- A member of the HolePunchMargins enumeration. The required image margin you want to repair.
You can combine margins using the "OR" operator, as it is shown in the example below.
Return Value
If the method has been successfully followed, then the return value is GdPictureStatus.OK. We strongly recommend always checking this status first.
This method requires the Image Documents component to run.