Bitmap files

Discussion in 'General Software' started by thomas234, Dec 10, 2008.

  1. thomas234

    thomas234 Big Geek

    Likes Received:
    0
    Trophy Points:
    16
    Hi!

    I've written a program which converts a 24-bit bitmap into ASCII text. I'm doing it in C#, but trying not to use the Image or Bitmap class. I've opened the bitmap to an array of bytes, and I know that offset 18-22 is the width of the bitmap (or height, can't remember which). The only problem is, I can only get it to work for one byte, which limits the size of the image to 255x255!

    If I try and image of 500x500, in byte (offset 18) I get 244, and in byte (offset 19) I get 1.

    ?? How do these go together to make 500??

    Thanks for any help!

    Thomas
     

Share This Page