Microsoft Windows CE 3.0  

EGPEFormatToEDDGPEPixelFormat

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This section describes the EGPEFormatToEDDGPEPixelFormatconversion array.

const EDDGPEPixelFormat
EGPEFormatToEDDGPEPixelFormat[] = { ddgpePixelFormat_1bpp,
ddgpePixelFormat_2bpp, ddgpePixelFormat_4bpp,
ddgpePixelFormat_8bpp, ddgpePixelFormat_565, ddgpePixelFormat_8880,
ddgpePixelFormat_8888, ddgpePixelFormat_UnknownFormat,
ddgpePixelFormat_UnknownFormat, ddgpePixelFormat_UnknownFormat
};

An EGPEFormatcan be converted to an EDDGPEPixelFormatusing the EGPEFormatToEDDGPEPixelFormatconversion array.

The conversion between formats is a best-guess conversion, resulting in the default EDDGPEPixelFormatcorresponding to an EGPEFormat. In some cases, this will not result in the value you desire. For instance, if your surface is of type ddgpePixelFormat_5551, it will convert correctly to gpe16Bpp, using EDDGPEPixelFormatToEGPEFormat. But this will convert back to ddgpePixelFormat_565 using EGPEFormatToEDDGPEPixelFormat.



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.