Platform SDK: DirectX |
The DirectDraw7.CreatePalette method creates a DirectDrawPalette object for this DirectDraw object.
object.CreatePalette( _ flags As CONST_DDPCAPSFLAGS, _ pe() As PALETTEENTRY) As DirectDrawPalette
If the method succeeds, it returns a DirectDrawPalette object.
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
DDERR_INVALIDOBJECT |
DDERR_INVALIDPARAMS |
DDERR_NOCOOPERATIVELEVELSET |
DDERR_OUTOFMEMORY |
DDERR_UNSUPPORTED |