c++ program to covert an array into 8-bit BMP file

J

jai

I want a c++ program to convert an array of pixel values into a 8-bit
BMP file.i want the detail of how to write a common color palette for
creating a 8-bit BMP file.
 
G

Guest

jai said:
I want a c++ program to convert an array of pixel values into a 8-bit
BMP file.i want the detail of how to write a common color palette for
creating a 8-bit BMP file.

Why not use a librarry, like allegro ( allegro.cc / alleg.sf.net ) it is
very portable across sytems. It have a save_bitmap function. Or read
it's source code.
 
H

hall

Rafał Maj Raf256 said:
Why not use a librarry, like allegro ( allegro.cc / alleg.sf.net ) it is
very portable across sytems. It have a save_bitmap function. Or read
it's source code.

Or simply code it yourself. It is not really that hard. BMP file format
specification? Well, google is your friend; "BMP file format" should
give you at least a couple of good descriptions.

HTH
hall
 

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

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,163
Latest member
Sasha15427
Top