Enum Class Dither

java.lang.Object
java.lang.Enum<Dither>
org.freedesktop.cairo.Dither
All Implemented Interfaces:
Serializable, Comparable<Dither>, Constable

public enum Dither extends Enum<Dither>
Dither is an intentionally applied form of noise used to randomize quantization error, preventing large-scale patterns such as color banding in images (e.g. for gradients). Ordered dithering applies a precomputed threshold matrix to spread the errors smoothly.

Dither is modeled on pixman dithering algorithm choice. As of Pixman 0.40, FAST corresponds to a 8x8 ordered bayer noise and GOOD and BEST use an ordered 64x64 precomputed blue noise.

Since:
1.18