FxBitonalErodeV Method (GdPictureImaging)
In This Topic
Erodes black pixels in a GdPicture image or in an area of a GdPicture image defined by SetROI()
method.
This filter retains the black pixels surrounded in the two cardinal directions: N, S. The actions of this filter are
less prominent than FxBitonalErode4.
Syntax
Parameters
- ImageID
- GdPicture image identifier.
Return Value
A member of the GdPictureStatus enumeration.
Example
Eroding 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);
// Erodes black pixels in two cardinal directions: N, S.
gdpictureImaging.FxBitonalErodeV(imageID);
gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
gdpictureImaging.ReleaseGdPictureImage(imageID);
}
Example
Eroding 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);
// Erodes black pixels in two cardinal directions: N, S.
gdpictureImaging.FxBitonalErodeV(imageID);
gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also