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





In This Topic
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
'Declaration
 
Public Function FxBitonalFillHolesHV( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxBitonalFillHolesHV( 
   int ImageID
)
public function FxBitonalFillHolesHV( 
    ImageID: Integer
): GdPictureStatus; 
public function FxBitonalFillHolesHV( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxBitonalFillHolesHV( 
   int ImageID
) 
public:
GdPictureStatus FxBitonalFillHolesHV( 
   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
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