TPNGImage help

PNG Delphi

Components > TPNGObject > Properties > Palette


Returns/Sets palette using HPalette structure.

variable
Palette: HPalette;

Description

This property is intended to integrate windows internal palette handle with the component. This only works with COLOR_PALETTE modes (see TChunkIHDR ColorType property).
It returns a HPalette structure with the image color palette and when set replaces the current image palette.