EGPEFormatToEDDGPEPixelFormat (Windows Embedded CE 6.0)
1/6/2010
This conversion array can be used to convert an EGPEFormat to an EDDGPEPixelFormat.
Syntax
const EDDGPEPixelFormat
EGPEFormatToEDDGPEPixelFormat[] = {
ddgpePixelFormat_1bpp,
ddgpePixelFormat_2bpp,
ddgpePixelFormat_4bpp,
ddgpePixelFormat_8bpp,
ddgpePixelFormat_565,
ddgpePixelFormat_8880,
ddgpePixelFormat_8888,
ddgpePixelFormat_UnknownFormat,
ddgpePixelFormat_UnknownFormat,
ddgpePixelFormat_UnknownFormat
};
Remarks
The conversion between formats is a best-guess conversion, resulting in the default EDDGPEPixelFormat corresponding to an EGPEFormat. In some cases, this will not result in the value you want. For instance, if your surface is of type ddgpePixelFormat_5551, it will convert correctly to gpe16Bpp, using EDDGPEPixelFormatToEGPEFormat. However, this will convert back to ddgpePixelFormat_565 using EGPEFormatToEDDGPEPixelFormat.
Requirements
Header | ddgpe.h |
Library | Ddgpe.lib |
Windows Embedded CE | Windows Embedded CE 6.0 and later |