GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / FxBitonalRemoveIsolatedDots8 Method
GdPicture image identifier.
Example





In This Topic
FxBitonalRemoveIsolatedDots8 Method (GdPictureImaging)
In This Topic
Removes 1 pixel-sized isolated black dots in 8 directions: E, NE, SE, S, SW, W, NW, N in a GdPicture image or in an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Function FxBitonalRemoveIsolatedDots8( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxBitonalRemoveIsolatedDots8( 
   int ImageID
)
public function FxBitonalRemoveIsolatedDots8( 
    ImageID: Integer
): GdPictureStatus; 
public function FxBitonalRemoveIsolatedDots8( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxBitonalRemoveIsolatedDots8( 
   int ImageID
) 
public:
GdPictureStatus FxBitonalRemoveIsolatedDots8( 
   int ImageID
) 

Parameters

ImageID
GdPicture image identifier.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Image Processing" Demo.

This method requires the Image Documents component to run.

Example
Removing isolated dots from a black and white tiff image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    // LoadInMemory parameter is set to true in order to be able to update the input file.
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.tif", true);
 
    // Removes 1 pixel-sized isolated black dots in 8 directions: E, NE, SE, S, SW, W, NW, N.
    gdpictureImaging.FxBitonalRemoveIsolatedDots8(imageID);
    gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also