Sign in Join
FPDoc Onlineexperiment

TSharedCustomBitmap.ReleasePalette function

Member of TSharedCustomBitmapprotectedIn unit Graphics

Returns the Handle of the released Palette.

Declaration

pascal
function ReleasePalette: HPALETTE

Description

ReleasePalette is a HPALETTE function used to release the internal palette handle for the shared bitmap. The return value contains the existing palette handle on entry.

Sets the value in the internal palette handle to 0 to indicate that the palette handle is no longer in use or is invalid.

Use FreePalette to remove the palette handle in widgetset classes.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.