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





In This Topic
FxBitonalDilateH Method (GdPictureImaging)
In This Topic
Dilates black pixels in a GdPicture image or in an area of a GdPicture image defined by SetROI() method. This filter helps to dilate black pixels in 2 directions: W, E. The actions of this filter are less prominent than FxDilate4.
Syntax
'Declaration
 
Public Function FxBitonalDilateH( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxBitonalDilateH( 
   int ImageID
)
public function FxBitonalDilateH( 
    ImageID: Integer
): GdPictureStatus; 
public function FxBitonalDilateH( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxBitonalDilateH( 
   int ImageID
) 
public:
GdPictureStatus FxBitonalDilateH( 
   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
Dilating 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);
 
    // Dilates black pixels in 2 directions: W, E.
    gdpictureImaging.FxBitonalDilateH(imageID);
    gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also