GdPicture image identifier.
Example





In This Topic
GdPicture14 Namespace / GdPictureImaging Class / FxBitonalRemoveIsolatedDots2x2 Method

FxBitonalRemoveIsolatedDots2x2 Method (GdPictureImaging)

In This Topic
Removes 4 pixels-sized isolated black dots in the 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 FxBitonalRemoveIsolatedDots2x2( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxBitonalRemoveIsolatedDots2x2( 
   int ImageID
)
public function FxBitonalRemoveIsolatedDots2x2( 
    ImageID: Integer
): GdPictureStatus; 
public function FxBitonalRemoveIsolatedDots2x2( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxBitonalRemoveIsolatedDots2x2( 
   int ImageID
) 
public:
GdPictureStatus FxBitonalRemoveIsolatedDots2x2( 
   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.
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);
 
    // Remove 4 pixels-sized isolated black dots in the 8 directions: E, NE, SE, S, SW, W, NW, N.
    gdpictureImaging.FxBitonalRemoveIsolatedDots2x2(imageID);
    gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also