Vcl.Imaging.GIFImg.TColorReduction

提供: RAD Studio API Documentation
移動先: 案内検索

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 };

プロパティ

種類 可視性 ソース ユニット
enum public
Vcl.Imaging.GIFImg.pas
Vcl.Imaging.GIFImg.hpp
Vcl.Imaging.GIFImg Vcl.Imaging.GIFImg

説明

利用可能な減色方法を示します。

TColorReduction 型の変数は、画像のパレットの最適化や減色を行うときに使用する減色方法を指定します。

たとえば、ReduceColors ルーチンを使用して TBitmap の色数を減らすことができます。

以下の表では、TColorReduction 型の変数が取り得る値を示します。


意味

rmNone

減色を行いません。

rmWindows20

Windows の 20 色システム パレットに減色します。

rmWindows256

Windows の 256 色ハーフトーン パレットに減色します。これが使えるのは 256 色表示モードの場合のみです。

rmWindowsGray

Windows の 4 色グレースケールに減色します。

rmMonochrome

白黒のモノクロ パレットに減色します。

rmGrayScale

均一 256 階調グレースケール パレットに減色します。

rmNetscape

Netscape の 216 色パレットに減色します。

rmQuantize

最適化した 2^n 色パレットに減色します。

rmQuantizeWindows

最適化した 256 色 Windows パレットに減色します。

rmPalette

カスタム パレットに減色します。



関連項目