Original Post
Howdy
Im using msvc++, win32 API.
I have used LoadImage() to load a bitmap into my program as a HBITMAP (meaning "handle to bitmap" right?)
The question is, how can I write this HBITMAP or BITMAP struct back to a *.bmp or *.dib file ? Do I have to convert it into BITMAPFILEHEADER, BITMAPINFOHEADER etc structs? (or are those classes?) If I have to do that, then how?
I couldnt find any SaveImage()-type functions, are there any built in the win32 API?
I have used:
ofstream blah("file", ios::out);
earlier for text files, but im not to familiar with the "FILE *file = something" style (thats c++ and c respectively right?) Anyways, so Id hope that it is possible to do it via the ofstream class.
Id appreciate it if someone could explain or point me to some tutorials
(Ive looked at the wotsit fileformats, but I need more programming info)
Thanks
JT
(There is no border around this image)
(There is no border around this image)
