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





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

Parameters

ImageID
GdPicture image identifier.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

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 4 directions: N, S, W, E.
    gdpictureImaging.FxBitonalRemoveIsolatedDots4(imageID);
    gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also