I have a BMP bitmap loaded into memory. How can I tell if it is a monochrome, grayscale, index color or rgb color format? I thought I might be able to use bmBitsPixel, but a grayscale and an index color file are both 8bit/pixel. Can anyone point me in the right direction?