Platform SDK: DirectX |
The DirectDrawSurface7.SetPalette method attaches a palette object to (or detaches one from) a surface. The surface uses this palette for all subsequent operations. The palette change takes place immediately, without regard to refresh timing.
object.SetPalette(ddp As DirectDrawPalette)
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
If you pass Nothing as the ddp parameter, the palette is removed from the surface.