FxBitonalDilate8 Method (GdPictureImaging)
In This Topic
Dilates black pixels in a GdPicture image or in an area of a GdPicture image defined by SetROI()
method.
This filter helps to dilate black pixels in 8 directions: E, NE, SE, S, SW, W, NW, N. The actions
of this filter are more prominent than FxDilate4.
Syntax
Parameters
- ImageID
- GdPicture image identifier.
Return Value
A member of the GdPictureStatus enumeration.
Example
Dilating 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);
// Dilates black pixels in 8 directions: E, NE, SE, S, SW, W, NW, N.
gdpictureImaging.FxBitonalDilate8(imageID);
gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
gdpictureImaging.ReleaseGdPictureImage(imageID);
}
Example
Dilating 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);
// Dilates black pixels in 8 directions: E, NE, SE, S, SW, W, NW, N.
gdpictureImaging.FxBitonalDilate8(imageID);
gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also