allright im working with an image lib, and to save as an image i need to specify the HBITMAP (did that) and a HPALETTE, and i found out to do that i use CreatePalette but im not really sure what a palette really is (think its a color table and i have seen palettes i think but they were bitmap images of various colors...) so ya i just need Palettes explained cause i cant figure out exactly what i need to do from msdn...
Well a palette is basicly a color table for 16 and 256 color images witch consists
of 3 entries per color of RGB values in good old DOS days i used to use a palette
quite heavily I'm not sure but each RGB value is either 6 or 8 bits (on PCX it's 8)
A palette is a collection of RGB colors (RGB is 24 bits created from three 8 bit variables one for each of the 3 colors Red Green and Blue). a palette is sort of an array of these colors. Using palette can speed up drawing pictures and can reduce image size. because instead of having reference each color individually your computer can look up the appropriate color by specifying the location of that color in the palette array. While technically you can use a palette of any size you want they are typically powers of 2. EG: 2, 4, 8, 16, 32, 64, 128 and 256. (It’s rare to see a palette of over 256 colors because a 256 color palette is a perfect BYTE (char in C/C++)) (256 color mode basically means your video card is using a 256 color palette to draw to your screen) palettes can be fun to work with and can be used to create phenomenal patterns on your screen if you know your math.
I used to love palette efects ;) i had made some fades , shifts , static