DDGPE::DetectPixelFormat (Windows Embedded CE 6.0)
1/6/2010
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 |
Windows Embedded CE | Windows Embedded CE 6.0 and later |
See Also
Reference
Concepts
DDGPE Class
DDGPE Class Definition