View Full Version : Reading Bmps in C
12-25-2002, 12:38 AM
I am going to try to make a program that converts a bitmap into a format suitable for the gba.
My big problem is how to read a .bmp file into my C program. I am not sure how they are formatted and how I would go about reading them in since i think they are binary, and not text.
12-25-2002, 09:45 AM
You can find details regarding bitmaps and reading bmp files in c here: http://www.brackeen.com/home/vga/bitmaps.html
10-07-2009, 10:15 AM
thou i see this post its 7 years old, i think i am trying to make same thing as Josh Campbell.
i am trying to make a c program that reads .bmp files and then create them in a format i can use for my DS application .
for start i am having problems even at the reading the bitmap . thou i think i only need to read the rgb from the bitmap and put that in a file , and then use it for DS , because i will be using only 1 type of bmps and with certain size .
do you have anything that could put me on the right track ?
10-07-2009, 04:26 PM
I have no experience with the DS, and I stopped working with the GBA shortly before the DS came out.
Some resources that might be helpful:
gbadev (http://www.gbadev.org) - I've heard that the DS is very similar to the GBA, so maybe some of the graphics tools they have will prove useful. Also have forums devoted to the DS.
FreeImage (http://freeimage.sourceforge.net/) - I've used it before. Makes loading/saving image files really easy. Supports a bunch of formats, too.
10-07-2009, 06:23 PM
I guess you can add this to your resources:
the library can be linked with any program you write and provide reading/writing and manipulation of different formats.
There also have bindings for other languages in case you need.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.