Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / FxBitonalDilate4 Method
GdPicture image identifier.

In This Topic
    FxBitonalDilate4 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 4 directions: N, S, W, E. The actions of this filter are less prominent than FxDilate8. It can be used used to improve very fine and degraded characters.
    Public Function FxBitonalDilate4( _
       ByVal ImageID As Integer _
    ) As GdPictureStatus
    public GdPictureStatus FxBitonalDilate4( 
       int ImageID
    public function FxBitonalDilate4( 
        ImageID: Integer
    ): GdPictureStatus; 
    public function FxBitonalDilate4( 
       ImageID : int
    ) : GdPictureStatus;
    public: GdPictureStatus FxBitonalDilate4( 
       int ImageID
    GdPictureStatus FxBitonalDilate4( 
       int ImageID


    GdPicture image identifier.

    Return Value

    A member of the GdPictureStatus enumeration.
    This method is used in the "Image Processing" and "Barcode Recognition"Demo.
    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 4 directions: N, S, W, E.
        gdpictureImaging.SaveAsTIFF(imageID, "image.tif", TiffCompression.TiffCompressionCCITT4);
    See Also