I need to know how to code bmp to create images automatically in a C++ code.
(Looking for References, or examples)
Does anybody know the .bmp structure?How can I make C++ or C# create images?
Bitmaps have information headers which comes before the actual data. If the bitmap has 8 bit graphic data, then the palette is stored between the headers and the bitmap data. The info on the headers is here:
http://msdn2.microsoft.com/en-us/library...
There are actually 3 BITMAPINFOHEADER structures (BITMAPINFOHEADER, BITMAPV4HEADER, and BITMAPV5HEADER) but you can just use the standard BITMAPINFOHEADER. All graphics programs should support all 3 header types.
cosmos
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment