• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

Palettes

Started by dinalt2006, 19 April 2010, 07:42:46

Previous topic - Next topic

dinalt2006

I need examples for manipulating palettes of image. I wanna to create standert palette and use it for current image...

Galfar

You can create new palette using NewPalette function in Imaging.pas (check out other palette functions there like CopyPalette, FindColor, FillCustomPalette, etc.).

After call to NewPalette you can modify palette entries easily, it's just array of RGBA values (Pal[10].R := 255).

Existing image can be mapped to palette using MapImageToPalette function.

SMF spam blocked by CleanTalk