Original Post
I''m trying to save a bitmap to a file and I can''t get it working correctly. I''m writting from either one or several DirectX surfaces to create the bitmap image. The resulting image is the correct width and height even color depth however the picture that shows up is garbage.
The file I''m trying to create is a 32bit color bitmap so I''m not using a palette array. To make the file I first intialize and output a BITMAPFILEHEADER structure then intialize and output a BITMAPINFOHEADER. After this I output the bitmap data from the lower left of the image to the upper right scan line by scan line to the file.
I''m not sure why there is a problem and I think I am intialize the info structures correctly.
Any help would be appreciated.