• 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.

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name:
Email:

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

SMF spam blocked by CleanTalk