Vcl.Imaging.GIFImg.TDitherMode
Delphi
TDitherMode = (
dmNearest, // Nearest color matching w/o error correction
dmFloydSteinberg, // Floyd Steinberg Error Diffusion dithering
dmStucki, // Stucki Error Diffusion dithering
dmSierra, // Sierra Error Diffusion dithering
dmJaJuNI, // Jarvis, Judice & Ninke Error Diffusion dithering
dmSteveArche, // Stevenson & Arche Error Diffusion dithering
dmBurkes // Burkes Error Diffusion dithering
);
C++
enum DECLSPEC_DENUM TDitherMode : unsigned char { dmNearest, dmFloydSteinberg, dmStucki, dmSierra, dmJaJuNI, dmSteveArche, dmBurkes };
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
enum | public | Vcl.Imaging.GIFImg.pas Vcl.Imaging.GIFImg.hpp |
Vcl.Imaging.GIFImg | Vcl.Imaging.GIFImg |
Description
Specifies the available dithering algorithms.
A variable of type TDitherMode specifies the dithering algorithm to use when optimizing or reducing the palette of an image.
For example, the ReduceColors routine can be used to reduce the colors of a TBitmap.
The following table lists the possible values of a variable of type TDitherMode.
Value | Meaning |
---|---|
dmNearest |
Use the nearest color matching algorithm, without error correction. |
dmFloydSteinberg |
Use the Floyd-Steinberg error diffusion dithering algorithm. |
dmStucki |
Use the Stucki error diffusion dithering algorithm. |
dmSierra |
Use the Sierra error diffusion dithering algorithm. |
dmJaJuNI |
Use the Jarvis, Judice, and Ninke error diffusion dithering algorithm. |
dmSteveArche |
Use the Stevenson and Arche error diffusion dithering algorithm. |
dmBurkes |
Use the Burkes error diffusion dithering algorithm. |