Specifies the dithering method to be used for Black/White conversion.
Namespace: Neodynamic.SDK.PrintingAssembly: Neodynamic.SDK.ThermalLabel (in Neodynamic.SDK.ThermalLabel.dll) Version: 6.0.3500.0 (6.0.3515.430)
Syntax
C# |
---|
public enum DitherMethod |
Visual Basic |
---|
Public Enumeration DitherMethod |
Visual C++ |
---|
public enum class DitherMethod |
Members
Member name | Value | Description | |
---|---|---|---|
Threshold | 0 | Any pixel below the threshold becomes black; otherwise it becomes white. Use it for logos or simple images. | |
PatternDiffusion | 1 | It uses a 4x4 dithering matrix to create a grouping of pixels that approximates the pixel group brightness. Use it for photos and other complicated images. | |
FloydSteinberg | 2 | It uses Floyd-Steinberg algorithm to keep a track of the error in brightness caused by the threshold, and diffusing it across an area. Use it for photos and other complicated images. | |
OtsuThreshold | 3 | It uses Otsu's method to automatically perform histogram shape-based image thresholding. Use it for logos or simple images. |