• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 
25 November 2024, 05:04:41


Post reply

Other options

Shortcuts: ALT+S save/post or ALT+P preview

Topic summary

Posted by Galfar
 - 20 April 2010, 15:29:17
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.
Posted by dinalt2006
 - 19 April 2010, 07:42:46
I need examples for manipulating palettes of image. I wanna to create standert palette and use it for current image...
SMF spam blocked by CleanTalk