Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / RemoveStapleMark Method
GdPicture image identifier. Only 1 bit per pixel images with black and white palette are supported.
Example





In This Topic
    RemoveStapleMark Method (GdPictureImaging)
    In This Topic
    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 on 1bpp b&w image.
    using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
    {
        int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.bmp");
     
        if ((gdpictureImaging.GetBitDepth(imageID) == 1) && gdpictureImaging.IsBitonal(imageID, 0))
        {
            gdpictureImaging.RemoveStapleMark(imageID);
            gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
        }
     
        // Release used resources.
        gdpictureImaging.ReleaseGdPictureImage(imageID);
    }
    See Also