GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / FxBitonalErodeH Method
GdPicture image identifier.
Example





In This Topic
FxBitonalErodeH 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 two cardinal directions: W, E.
Syntax
'Declaration
 
Public Function FxBitonalErodeH( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxBitonalErodeH( 
   int ImageID
)
public function FxBitonalErodeH( 
    ImageID: Integer
): GdPictureStatus; 
public function FxBitonalErodeH( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxBitonalErodeH( 
   int ImageID
) 
public:
GdPictureStatus FxBitonalErodeH( 
   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: W, E.
    gdpictureImaging.FxBitonalErodeH(imageID);
    gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also