DirectX SDK |
The DirectDraw7.LoadPaletteFromBitmap method creates a DirectDrawPalette object, based on the palette of the specified bitmap for this DirectDraw object.
object.LoadPaletteFromBitmap( _ bName As String) 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 |