By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,758 Members | 1,225 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,758 IT Pros & Developers. It's quick & easy.

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

P: n/a
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.

Mar 1 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
jai wrote:
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.

--
Wymiana starych układów... na nowe układy - prawie jak walka z korupcja.
Walka z wychowaniem seksualnym i erotyką - prawie jak walka z patologią.
PiS - prawie jak prawo i sprawiedliwość... Prawie. Prawie robi różnice.
Myśl. Głosuj rozsądnie. Nie na tanie hasła. // Rafał Maj Raf256
Mar 1 '06 #2

P: n/a
Rafał Maj Raf256 wrote:
jai wrote:
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.


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

--
Det är bara töntar som har en .sig

( - Remove capital X from email to reply - )
Mar 1 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.