GDI has a method call GetObject which can be used to get information about a GDI object. On Windows CE you can use GetObject to get the pixel format for any bitmap by passing in a DIBSECTION instead of a BITMAP . Here's an example: DIBSECTION ds; HDC Read More...