Skip to main content
GameDev.net gamedev.net
🔒 Locked

Help w/ Saving Bitmaps

Started by pimstead Aug 17, 2001 at 2:25 AM 0 replies 350+ views
Original Post
pimstead
pimstead
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.