Platform SDK: DirectX

PALETTEENTRY

The PALETTEENTRY type specifies the color and usage of an entry in a logical color palette.

Type PALETTEENTRY
    blue As Byte
    flags As Byte
    green As Byte
    red As Byte
End Type

Members

blue
Specifies a blue intensity value for the palette entry.
flags
Specifies how the palette entry is to be used. The flags member can be set to Nothing or one of the following values:
Value Meaning
PC_EXPLICIT The low-order word of the logical palette entry designates a hardware palette index. This flag allows the application to show the contents of the display device palette.
PC_NOCOLLAPSE The color should be placed in an unused entry in the system palette, instead of being matched to an existing color in the system palette. If there are no unused entries in the system palette, the color is matched normally. Once this color is in the system palette, colors in other logical palettes can be matched to this color.
PC_RESERVED The logical palette entry be used for palette animation. This flag prevents other windows from matching colors to the palette entry since the color frequently changes. If an unused system-palette entry is available, the color is placed in that entry. Otherwise, the color is not available for animation.

green
Green intensity value for the palette entry.
red
Red intensity value for the palette entry.