GdPicture.NET Reference Guide
RemoveStapleMark Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : RemoveStapleMark Method
GdPicture Image Identifier. Only 1 bit per pixel images with black and white palette are supported.
Removes the staples marks on the image.
Syntax
'Declaration
 
Public Function RemoveStapleMark( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus RemoveStapleMark( 
   int ImageID
)
public function RemoveStapleMark( 
    ImageID: Integer
): GdPictureStatus; 
public function RemoveStapleMark( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus RemoveStapleMark( 
   int ImageID
) 
public:
GdPictureStatus RemoveStapleMark( 
   int ImageID
) 

Parameters

ImageID
GdPicture Image Identifier. Only 1 bit per pixel images with black and white palette are supported.

Return Value

A member of the GdPictureStatus enumeration.
Example
Removing staple marks from the image.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.tif")
If imageId <> 0 Then
   If oGdPictureImaging.GetBitDepth(ImageID) <> 1 Then
      oGdPictureImaging.ConvertTo1BppAT(ImageID)
   End If
   oGdPictureImaging.RemoveStapleMark(ImageID)
   oGdPictureImaging.SaveAsTIFF(ImageID, "test.tif", TiffCompression.TiffCompressionCCITT4)
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members