Show / Hide Table of Contents

Enum DitherMethod

Specifies the dithering method to be used for Black/White conversion.

Namespace:Neodynamic.SDK.Printing
Assembly:Neodynamic.SDK.ThermalLabel.dll
Syntax
public enum DitherMethod

Fields

FloydSteinberg

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.

Declaration
FloydSteinberg = 2
Field Value
Type Description
DitherMethod

OtsuThreshold

It uses Otsu's method to automatically perform histogram shape-based image thresholding. Use it for logos or simple images.

Declaration
OtsuThreshold = 3
Field Value
Type Description
DitherMethod

PatternDiffusion

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.

Declaration
PatternDiffusion = 1
Field Value
Type Description
DitherMethod

Threshold

Any pixel below the threshold becomes black; otherwise it becomes white. Use it for logos or simple images.

Declaration
Threshold = 0
Field Value
Type Description
DitherMethod
Back to top Copyright © 2003- Neodynamic SRL
http://www.neodynamic.com