IDirectDrawPalette interface (ddraw.h)

Applications use the methods of the IDirectDrawPalette interface to create DirectDrawPalette objects and work with system-level variables. This section is a reference to the methods of this interface.

Inheritance

The IDirectDrawPalette interface inherits from the IUnknown interface. IDirectDrawPalette also has these types of members:

Methods

The IDirectDrawPalette interface has these methods.

 
IDirectDrawPalette::GetCaps

Retrieves the capabilities of the palette object.
IDirectDrawPalette::GetEntries

Retrieves palette values from a DirectDrawPalette object.
IDirectDrawPalette::Initialize

Initializes the DirectDrawPalette object.
IDirectDrawPalette::SetEntries

Changes entries in a DirectDrawPalette object immediately.

Remarks

The methods of the IDirectDrawPalette interface can be organized into the following groups:

Group Methods
Allocating memory Initialize
Palette capabilities GetCaps
Palette entries GetEntries and SetEntries
 

You can use the LPDIRECTDRAWPALETTE data type to declare a variable that contains a pointer to an IDirectDrawPalette interface. The Ddraw.h header file declares the data type with the following code:


typedef struct IDirectDrawPalette    FAR *LPDIRECTDRAWPALETTE;

Requirements

Requirement Value
Target Platform Windows
Header ddraw.h