Vcl.Imaging.GIFImg.TGIFColorMap.ExportPalette

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExportPalette: HPalette;

C++

HPALETTE __fastcall ExportPalette();

Properties

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

Description

Creates a Windows palette from the color map.

Use ExportPalette to create a Windows palette from the Data color map.

If the number of colors in the color map stored in the Count property is nonzero, ExportPalette returns a handle to the generated Windows palette. If Count is zero, ExportPalette returns a null handle, without attempting to generate the Windows palette.

See Also