GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / FxBitonalDespeckleAdvanced Method
GdPicture image identifier. Only 1 bit per pixel images with black and white palette are supported.
A member of the DespeckleType enumeration. The despeckle mode.
The strength for the cleanup. The higher is the value, the more pixels are changed.





In This Topic
FxBitonalDespeckleAdvanced Method (GdPictureImaging)
In This Topic
Offers advanced despeckle features on a GdPicture image or on an area of a GdPicture image defined by SetROI() method. It works as a noise removal filter, for Salt-And-Pepper like-noise, or varied dots around a document.
Syntax
'Declaration
 
Public Function FxBitonalDespeckleAdvanced( _
   ByVal ImageID As Integer, _
   ByVal DespeckleMode As DespeckleType, _
   ByVal Strength As Integer _
) As GdPictureStatus
public GdPictureStatus FxBitonalDespeckleAdvanced( 
   int ImageID,
   DespeckleType DespeckleMode,
   int Strength
)
public function FxBitonalDespeckleAdvanced( 
    ImageID: Integer;
    DespeckleMode: DespeckleType;
    Strength: Integer
): GdPictureStatus; 
public function FxBitonalDespeckleAdvanced( 
   ImageID : int,
   DespeckleMode : DespeckleType,
   Strength : int
) : GdPictureStatus;
public: GdPictureStatus FxBitonalDespeckleAdvanced( 
   int ImageID,
   DespeckleType DespeckleMode,
   int Strength
) 
public:
GdPictureStatus FxBitonalDespeckleAdvanced( 
   int ImageID,
   DespeckleType DespeckleMode,
   int Strength
) 

Parameters

ImageID
GdPicture image identifier. Only 1 bit per pixel images with black and white palette are supported.
DespeckleMode
A member of the DespeckleType enumeration. The despeckle mode.
Strength
The strength for the cleanup. The higher is the value, the more pixels are changed.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
The advanced bitonal despeckle offers several flavors of cleanup algorithms: remove small speckles, remove isolated dots, remove tiny white holes, etc. The strength parameter adjusts the internal parameters of the selected type of despeckle. The higher is the value, the more impact the filter has on the image. The typical usage is a slider in the user interface from 0 to 100. When the slider is on position 0, the image is not changed. When the slider is on position 100, a lot of pixels are removed from the image.

This method requires the Image Documents component to run.

See Also