FxBitonalErode4 Method (GdPictureImaging)
GdPicture.NET Reference Guide
FxBitonalErode4 Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : FxBitonalErode4 Method
GdPicture Image Identifier.
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 the four cardinal directions: N, S, W, E. Very useful when the characters are bold and very close to each other.
Syntax
'Declaration
 
Public Function FxBitonalErode4( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxBitonalErode4( 
   int ImageID
)
public function FxBitonalErode4( 
    ImageID: Integer
): GdPictureStatus; 
public function FxBitonalErode4( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxBitonalErode4( 
   int ImageID
) 
public:
GdPictureStatus FxBitonalErode4( 
   int ImageID
) 

Parameters

ImageID
GdPicture Image Identifier.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Image Processing" and "Barcode Recognition"Demo. Please check appendix "Finding Demo Applications" for more information.
Example
Using Erode4 on a binary image to erode black pixels and dilate black ones.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.tif")
If imageId <> 0 Then
   oGdPictureImaging.FxBitonalErode4(ImageID)
   oGdPictureImaging.SaveAsTIFF(ImageID, "test.tif", TiffCompression.TiffCompressionAUTO)
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
SetROI Method
ResetROI Method
FxBitonalErodeH Method
FxBitonalErodeV Method
FxBitonalErode8 Method