DirectX SDK |
The DirectDrawSurface7.GetPixelFormat method retrieves the color and pixel format of the surface.
object.GetPixelFormat(pf As DDPIXELFORMAT)
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_INVALIDSURFACETYPE |