MapImageToPalette Function
Imaging

Maps image to existing palette producing image in ifIndex8 format.

Pascal
function MapImageToPalette(var Image: TImageData; 
                           Pal: PPalette32; 
                           Entries: LongInt): Boolean;
File

Imaging (at line 187)

Description

Pal must be allocated to at least Entries * SizeOf(TColor32Rec) bytes. As resulting image is in 8bit indexed format Entries must be lower or equal to 256.

Related Information
You are here: Symbol Reference > Functions > MapImageToPalette Function