Thread: bmp file header?

  1. #1
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638

    bmp file header?

    meow.

    i made a bitmap prog. it was written from the rfc specifications. when i looked at a saved bitmap generated from a paint prog with a hex editor i saw 16 octets that were not in the rfc. 797? forget which rfc. at the begining of the file. it had BM in the first so i assumed that stood for the .bmp file identifyer. i did search many times the rfcs and did not find any file header for the bmp files. meow.

    -kk

    Below is a representation of a bitmap file (each square is one
    octet):

    ----------------------------------------------------------
    | 1 | 2 | 3 | 4 | 5 |
    | width | width | width | width | length |
    ----------------------------------------------------------

    ----------------------------------------------------------
    | 6 | 7 | 8 | 9 | 10 |
    | length | length | length |x-increment|y-increment|
    ----------------------------------------------------------

    ----------------------------------------------------------
    | 11 | 12 | 13 | 14 | 15
    | data | data | data | data | data...
    ----------------------------------------------------------

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    Thank You i gota lota reading to do.

    i copied the first 16 octets to the saved file then the rfc stuff format. that i did. that i can do. i was just wondering what the other octets were for after the "BM" and what the header was. what each of the unknown octets were for. meow. some progs let you convert the format just by use "save as" to the new format. about.com had some good stuf for bitmaps info as well. i like reading the vector and raster graphics. will read again thank you.

    -kk


    edit

    i was suprized that there was nothing in the rfcs about that header. if there was i did not find it.
    Last edited by kryptkat; 04-29-2005 at 12:05 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  2. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  3. Problem reading BMP
    By Mortissus in forum C Programming
    Replies: 4
    Last Post: 02-02-2006, 06:32 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. Replies: 6
    Last Post: 04-02-2002, 05:46 AM