Vcl.Graphics.CopyPalette
Delphi
function CopyPalette(Palette: HPALETTE): HPALETTE;
C++
extern DELPHI_PACKAGE HPALETTE __fastcall CopyPalette(HPALETTE Palette);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | Vcl.Graphics |
Description
Creates a new palette object that matches an existing palette.
Call CopyPalette to create a new Windows palette object that exactly matches an existing palette. If the Palette parameter does not refer to a valid Windows palette, or if a problem occurs while copying the palette, CopyPalette returns 0.