GdPicture image identifier.
Example





In This Topic
GdPicture14 Namespace / GdPictureImaging Class / FxBitonalErodeV Method

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
'Declaration

 

Public Function FxBitonalErodeV( _

   ByVal ImageID As Integer _

) As GdPictureStatus
public GdPictureStatus FxBitonalErodeV( 

   int ImageID

)
public function FxBitonalErodeV( 

    ImageID: Integer

): GdPictureStatus; 
public function FxBitonalErodeV( 

   ImageID : int

) : GdPictureStatus;
public: GdPictureStatus FxBitonalErodeV( 

   int ImageID

) 
public:

GdPictureStatus FxBitonalErodeV( 

   int ImageID

) 

Parameters

ImageID
GdPicture image identifier.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

This method requires the Image Documents component to run.

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