Vcl.Imaging.GIFImg.TColorReduction

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TColorReduction = (
rmNone,			// Do not perform color reduction
rmWindows20,		// Reduce to the Windows 20 color system palette
rmWindows256,		// Reduce to the Windows 256 color halftone palette (Only works in 256 color display mode)
rmWindowsGray,		// Reduce to the Windows 4 grayscale colors
rmMonochrome,		// Reduce to a black/white monochrome palette
rmGrayScale,		// Reduce to a uniform 256 shade grayscale palette
rmNetscape,		        // Reduce to the Netscape 216 color palette
rmQuantize,		        // Reduce to optimal 2^n color palette
rmQuantizeWindows,		// Reduce to optimal 256 color windows palette
rmPalette                   // Reduce to custom palette
);

C++

enum DECLSPEC_DENUM TColorReduction : unsigned char { rmNone, rmWindows20, rmWindows256, rmWindowsGray, rmMonochrome, rmGrayScale, rmNetscape, rmQuantize, rmQuantizeWindows, rmPalette };

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 color reduction methods.

A variable of type TColorReduction specifies the color reduction method 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 TColorReduction.


Value Meaning

rmNone

Do not perform any color reduction.

rmWindows20

Reduce to the Windows 20 color system palette.

rmWindows256

Reduce to the Windows 256 color halftone palette. This only works in 256 color display mode.

rmWindowsGray

Reduce to the Windows 4 grayscale colors.

rmMonochrome

Reduce to a black/white monochrome palette.

rmGrayScale

Reduce to a uniform 256 shade grayscale palette.

rmNetscape

Reduce to the Netscape 216 color palette.

rmQuantize

Reduce to an optimal 2^n color palette.

rmQuantizeWindows

Reduce to an optimal 256 color windows palette.

rmPalette

Reduce to a custom palette.



See Also