Class DitherMode
Represents dithering options for indexed color images.
Inheritance
System.Object
DitherMode
Namespace: PhotoSauce.MagicScaler
Assembly: PhotoSauce.MagicScaler.dll
Syntax
public sealed class DitherMode : Enum
Fields
Auto
The quantizer will choose whether to dither or not based on the palette size and image colors.
Declaration
public const DitherMode Auto
Field Value
Type | Description |
---|---|
DitherMode |
ErrorDiffusion
Error diffusion dithering will be applied.
Declaration
public const DitherMode ErrorDiffusion
Field Value
Type | Description |
---|---|
DitherMode |
Remarks
The algorithm used is a modified version of Floyd-Steinberg, which propagates 7/8 of the error value.
None
No dithering will be applied.
Declaration
public const DitherMode None
Field Value
Type | Description |
---|---|
DitherMode |
value__
Declaration
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |