I am trying to generate an 8-bit, grayscale image from a window. The hardware on the machine I am using will allow a 24 bit image, and it seems to be defaulting to that when the bitmap is created. ie, the bitsperpixel field in the bitmap info structure equals 24. How can I force the program to generate an 8-bitperpixel bmp file?