FxBitonalFillHolesHV Method (GdPictureImaging)
In This Topic
Fills the 1 pixel size holes in the vertical and horizontal directions in a GdPicture image or in an
area of a GdPicture image defined by SetROI() method. This methods is equivalent of 2 successive
call of FxBitonalFillHolesV() and FxBitonalFillHolesH()
Syntax
Parameters
- ImageID
- GdPicture image identifier.
Return Value
A member of the GdPictureStatus enumeration.
Example
Filling holes within 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);
// Fills the 1 pixel size holes in the horizontal and vertical directions.
gdpictureImaging.FxBitonalFillHolesHV(imageID);
gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
gdpictureImaging.ReleaseGdPictureImage(imageID);
}
Example
Filling holes within 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);
// Fills the 1 pixel size holes in the horizontal and vertical directions.
gdpictureImaging.FxBitonalFillHolesHV(imageID);
gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also