FxBitonalRemoveIsolatedDots2x2 Method (GdPictureImaging)
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.
public function FxBitonalRemoveIsolatedDots2x2(
: Integer
): GdPictureStatus;
'Declaration
Public Function FxBitonalRemoveIsolatedDots2x2( _
ByVal As Integer _
) As GdPictureStatus
Parameters
- ImageID
- GdPicture image identifier.
Return Value
A member of the GdPictureStatus enumeration.
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);
}
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);
}