enum

CrImage::Util::DitheringAlgorithm

Inherits Enum / Comparable / Value / Object

Dithering algorithms for color quantization.

Different algorithms produce different visual characteristics:

  • FloydSteinberg : Most common, good balance of quality and speed
  • Atkinson : Lighter, more artistic appearance (75% error diffusion)
  • Sierra : High quality with wider error distribution
  • Burkes : Similar to Sierra but slightly faster
  • Stucki : Highest quality, widest error distribution
  • Ordered : Fastest, uses Bayer matrix, creates regular patterns

Constants

FloydSteinberg = 0
Atkinson = 1
Sierra = 2
Burkes = 3
Stucki = 4
Ordered = 5

Instance methods

atkinson?

Returns true if this enum value equals Atkinson

Source
burkes?

Returns true if this enum value equals Burkes

Source
floyd_steinberg?

Returns true if this enum value equals FloydSteinberg

Source
ordered?

Returns true if this enum value equals Ordered

Source
sierra?

Returns true if this enum value equals Sierra

Source
stucki?

Returns true if this enum value equals Stucki

Source