Partager via


DDGPE::DetectPixelFormat (Compact 2013)

3/26/2014

This method translates DDPIXELFORMATinto EGPEFormat and EDDGPEPixelFormat. The default implementation does not take dwCaps into account. If the translation is dependent on DDSCAPSspecified in dwCaps, your driver must override this method.

Syntax

virtual SCODE DetectPixelFormat(
  DWORD dwCaps, 
  DDPIXELFORMAT* pDDPF, 
  EGPEFormat* pFormat, 
  EDDGPEPixelFormat* pPixelFormat 
);

Parameters

  • dwCaps
    One or more DDSCAPS_XXX.
  • pDDPF
    DDPIXELFORMAT that must be translated.
  • pFormat
    Pointer to EGPEFormat, which is set based on the format translation.
  • pPixelFormat
    Pointer to EDDGPEPixelFormat, which is set based on the format translation.

Return Value

The return value is S_OK, if the function is successful. Otherwise, an error code is returned.

Requirements

Header

ddgpe.h

Library

Ddgpe.lib

See Also

Reference

DDGPE Class
EDDGPEPixelFormat
DDGPE Class Definition

Other Resources

DDPIXELFORMAT
DDSCAPS