Results 1 to 2 of 2

Thread: Bitmaps

  1. #1

    Thread Starter
    Member AirScape17's Avatar
    Join Date
    Aug 2002
    Location
    England
    Posts
    34

    Bitmaps

    Given:

    Code:
    For y = 1 to 99
        For x = 1 to 629
            BitmapOffset = ?
    Next x, y
    What would be the formula for getting the bitmaps file offset?
    My brain is fryed, I've been tryin to figure this out all afternoon!

    BTW, a lil info on 24-bit bitmaps for the uninformed:
    Data segment offset is about 54 (1 as base)
    They scan left to right, then in this case +1
    Then bottem to top.

    Any help would be much appreciated.
    Thanks!

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    offset = (y*width) + x


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width