The Palette Storage Format (PSF) -------------------------------- ...or at least what I could disect of it. This simple format stores multiple palettes of different types. STRING x 4 - 'PSF' + ASCII 26 (EOF) WORD - File format version as a binary coded decimal. LONG - Pointer to the first color table. Color table form: STRING x 4 - 'BEGF' Specifies the beginning of the form. LONG - Pointer to the pointer to the next color table (at the end of this color table). BYTE - Type of palette: 1 - RGB, 2-bits. Each component (red, green, and blue) has 4 intensity levels giving a maximum of 64 colors. 2 - RGB, 18-bits. Each component (red, green, and blue) has 64 intensity levels giving a maximum of 256K colors. 3 - RGB, 24-bits. Each component (red, green, and blue) has 256 intensity levels giving a maximum of 16M colors. 4 - RGB 48-bits. This is the same as the 24-bit type except it is designed for faster loading as each component is aligned on a word (double byte) boundary. 5 - RGB, 48-bits. Each component (red, green, and blue) has 384 intensity levels giving a maximum of 4B colors. This palette type is usually used by photo professionals. * There are other palette types that PSF supports, but I could not find any information on them anywhere on the internet. WORD - Number of palette entries with a maximum of 1024. Packed array of palette entries according to the palette type. The most important colors should be placed in the palette first, as they are more likely to end up in the system palette on platforms such as Windows 95. STRING x 4 - 'ENDF' Signifies the end of the form. LONG - Pointer to the next color table, or zero if none. Questions, comments, suggestions, giant fuzzy rodents, little green men, and radioactive cheeseburgers goto: Randy Mcdowell, mcdowellrandy@hotmail.com.