Vcl.Imaging.GIFImg.ReduceColors

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReduceColors(Bitmap: TBitmap; ColorReduction: TColorReduction; DitherMode: TDitherMode; ReductionBits: integer; CustomPalette: hPalette): TBitmap;

C++

extern DELPHI_PACKAGE Vcl::Graphics::TBitmap* __fastcall ReduceColors(Vcl::Graphics::TBitmap* Bitmap, TColorReduction ColorReduction, TDitherMode DitherMode, int ReductionBits, HPALETTE CustomPalette);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Imaging.GIFImg.pas
Vcl.Imaging.GIFImg.hpp
Vcl.Imaging.GIFImg Vcl.Imaging.GIFImg

Description

Maps colors in a TBitmap to their nearest representation in a palette.

Call ReduceColors to map colors in a TBitmap to their nearest representation in a palette using the methods specified by the ColorReduction and DitherMode parameters. ReduceColors returns the modified TBitmap.

The ReductionBits parameter specifies the desired number of colors (bits per pixel) when the reduction method is rmQuantize. The CustomPalette parameter specifies the palette when the rmPalette reduction method is used.

See Also