Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / BMP file structure ..question for IanM

Author
Message
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 9th Mar 2004 12:41
Hi, I was once more looking at your code in SaveBitmap function from 'missing 2D commands'. I am triing to write my own code in C++ and I would be thankful if someone can describe me structure of bitmap (bmp) image file. Your code is clear but I cant figure ewerithing out by just looking at it... thanks a lot.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Mar 2004 14:24
Here is the header code, with appropriate comments :



The data itself is in reverse-line sequence, with each line padded to a 4 byte boundary.

This format is basically an abbreviated format 3 bitmap - No encoding, no compression, 24 bit mode only.

For fairly comprehensive breakdowns of the bitmap formats (and others) you can go to http://www.wotsit.org/

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 9th Mar 2004 15:16
Thanks a lot for quick reply, I get myself to it as soon as can

...btw, wery good site with lots of diferent formats ..thx

also, I see that you use Bloodshed Dev-C++ ..I was tring to run TrueVision3D and Irrlicht engines on it but was not succesful even if I folowed official tutorials ...have you some experience with it? and which version of Dev-C++ are you using?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Mar 2004 19:22
For PC development, I use Visual Studio, but I do use GCC compilers at work a lot. The only reason I've been using Dev-C++ lately (the latest version) is to get a working version of the Interface library built for it.

As for those libraries, I have no experience with them at all.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 10th Mar 2004 10:24
OK thanks once more IanM

Login to post a reply

Server time is: 2025-05-28 04:53:33
Your offset time is: 2025-05-28 04:53:33