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





In This Topic
FxBitonalFillHolesH Method (GdPictureImaging)
In This Topic
Fills the 1 pixel size holes in the horizontal direction in a GdPicture image or in an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Function FxBitonalFillHolesH( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxBitonalFillHolesH( 
   int ImageID
)
public function FxBitonalFillHolesH( 
    ImageID: Integer
): GdPictureStatus; 
public function FxBitonalFillHolesH( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxBitonalFillHolesH( 
   int ImageID
) 
public:
GdPictureStatus FxBitonalFillHolesH( 
   int ImageID
) 

Parameters

ImageID
GdPicture image identifier.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Barcode Recognition" Demo.

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 direction.
    gdpictureImaging.FxBitonalFillHolesH(imageID);
    gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also