GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 28-Aug-2007, 21:56
ahbi82 ahbi82 is offline
Member
 
Join Date: Jul 2006
Posts: 204
ahbi82 will become famous soon enough

Decoding BMP


I would like to ask if anyone has any reference or links or algorithms to decode BMP files (*.bmp).


I got information useful from wikipedia. I did getting the header, Palette and pixel data. But i don't know how to decode it into raw data using the Palette information and pixel data information.

I dun require the C code, as i am going to do it, i just need the decoding algorithm or maybe some information on it.

I went to google, but i dun get much info in the decoding part.


Thanks in advance!!!!!!

  #2  
Old 29-Aug-2007, 01:09
baccardi baccardi is offline
Junior Member
 
Join Date: Mar 2006
Posts: 48
baccardi is on a distinguished road

Re: Decoding BMP


http://www.brackeen.com/vga/bitmaps.html the data array starts from the end of file have this in your mind
  #3  
Old 30-Aug-2007, 11:57
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,309
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: Decoding BMP


Quote:
Originally Posted by ahbi82
I would like to ask if anyone has any reference or links or algorithms to decode BMP files (*.bmp).

What do you mean by "decode"?

Here's the problem as I see it:



Code:
+-----------------+ | Your | input --->| Program |---> output | Here | +-----------------+ some ??? kind of bmp file

The bmp file contains information about the width and height in pixels and some information that would tell how to render each pixel (Red,Green,Blue values).

What are your requirements for output?

Reading the information from wikipedia or wotsit (or wherever) can tell us what kinds of bmp formats there for various color depths. So: what do you want to do with that information?

Regards,

Dave


Footnote:

"A program specification is the definition of what a computer program is expected to do."
---http://en.wikipedia.org/wiki/Program_specification
 
 

Recent GIDBlogNot selected for officer school by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
decoding incomming data and screen refresh avmtptortri C Programming Language 5 19-Dec-2005 08:18
VC++ .NET Windows and interrupts / watchdogs question. bmwrob MS Visual C++ / MFC Forum 0 30-Jun-2004 21:06

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:58.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.