Editing, creating, and saving files
I want to make a bitmap editor for my game. How do you create, edit, and save files .bmp files? Thanks for the help.
Edited by - C++ Freak on 1/11/00 4:21:57 PM
Visit http://members.xoom.com/ivanickgames
you can check out www.wotsit.com for the bmp file format. then u just write it as a regular file in C. of course, depending on the complexity of your editor.. you have ur work cut out for you. there are plenty of helper functions out there for loading and maybe even saving bmps.
the basic structure of a bitmap is:
BITMAPFILEHEADER
BITMAPINFOHEADER
PALETTEENTRY[256] <- only in 8 bit pictures
filedata
look it up in the platform sdk docs
BITMAPFILEHEADER
BITMAPINFOHEADER
PALETTEENTRY[256] <- only in 8 bit pictures
filedata
look it up in the platform sdk docs
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement