Personal Paint's Color Palette in C
Hi,
I have saved a picture as C source in PPaint, but I don't know how to set the palette.
I wanted to use the SetRGB4 function, but the saved palette is in form of separate colors in format, for example, 0x0100, 0x0210, and so on. How do I convert the colors to r,g,b, required by SetRGB4 or maybe there is easier way to do it, please?
Regards
|