IDirectDrawSurface7::GetPixelFormat method

Retrieves the color and pixel format of this surface.

Syntax


HRESULT GetPixelFormat(
  [out]  LPDDPIXELFORMAT lpDDPixelFormat
);

Parameters

lpDDPixelFormat [out]

A pointer to a DDPIXELFORMAT structure that receives a detailed description of the current pixel and color space format of this surface.

Return value

If the method succeeds, the return value is DD_OK.

If it fails, the method can return one of the following error values:

  • DDERR_INVALIDOBJECT
  • DDERR_INVALIDPARAMS
  • DDERR_INVALIDSURFACETYPE

Remarks

You must use LoadLibrary to explicitly link to Ddraw.dll and then use GetProcAddress to access the GetPixelFormat method.

Requirements

Header

Ddraw.h

Library

Ddraw.dll

See also

IDirectDrawSurface7

 

 

Community Additions

ADD
Show:
© 2014 Microsoft