bitmap (or other) reader source code

D

Doug

I am looking for source code for a bitmap reader routine.
There are a few on the internet, but these are all several
years old and do not work on newer bitmap files.
At least they don't work on the bitmaps produced by
MS Paint program (yes, I tried both monochrome and 8bit 265 colors)

Ultimately, I want to have access to simple graphics from within a C
program.
It wouldn't have to be bitmap.

Please advise...

Thanks,
Doug
 
J

Jeff Rodriguez

Doug said:
I am looking for source code for a bitmap reader routine.
There are a few on the internet, but these are all several
years old and do not work on newer bitmap files.
At least they don't work on the bitmaps produced by
MS Paint program (yes, I tried both monochrome and 8bit 265 colors)

Ultimately, I want to have access to simple graphics from within a C
program.
It wouldn't have to be bitmap.

Please advise...

Thanks,
Doug
Check out the GD Graphics Library: http://www.boutell.com/gd/
 
A

Arthur J. O'Dwyer

I am looking for source code for a bitmap reader routine.
There are a few on the internet, but these are all several
years old and do not work on newer bitmap files.
At least they don't work on the bitmaps produced by
MS Paint program (yes, I tried both monochrome and 8bit 265 colors)

Ultimately, I want to have access to simple graphics from within a C
program.
It wouldn't have to be bitmap.

Please advise...

In future, comp.programming might be a better place to look for
specific applications, even if they are supposed to be written
in C. In this case, you might get some useful answers, simply
because bitmaps are easy to parse in a few straightforward lines
of C code. But you'd certainly lose if you came back asking for
JPEG code in C, or FFTs, or regexes, or whatever.
That said, I never pass up a chance to plug
http://www.contrib.andrew.cmu.edu/~ajo/free-software/ImageFmtc.h
which contains routines to read and write BMP files in 8, 24,
and 32 bits, with and without compression. So your run-of-the-mill
MS Paint bitmaps should work with it. And it's smaller than GD.
[But not nearly as full-featured, of course. ;] Freeware.

Please follow-up to comp.programming, where this belongs IMHO.

-Arthur
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,077
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top