The easiest way to get the dimensions of a bitmap is to open the file, read in the first few bytes and parse them to retrieve the dimensions. This method is explained in detail in two newsletter articles. You don't need to understand how it works to use it, though. Just copy and paste the code below.

- Alyce Alyce Jan 7, 2006

    open bmp$ for input as #pic
    close #pic
    bmpwidth = asc(mid$(pic$,19,1)) + (asc(mid$(pic$,20,1)) * 256)
    bmpheight = asc(mid$(pic$,23,1)) + (asc(mid$(pic$,24,1)) * 256)