Microsoft DirectX 9.0

IDirectDrawSurface::GetPixelFormat

The GetPixelFormat method returns the color and pixel format of the surface.

Syntax

HRESULT GetPixelFormat(
  LPDDPIXELFORMAT lpDDPixelFormat
  );

Parameters

lpDDPixelFormat

Points to the DDPIXELFORMAT structure which will be filled in with a detailed description of the current pixel and color space format of the surface.

Return Values

Value Description
DD_OK The method succeeded.
DDERR_INVALIDOBJECT DirectDraw received a pointer that was an invalid DirectDraw object.
DDERR_INVALIDPARAMS One or more of the input parameters is invalid.

See Also