
.bmp, .gif, .jpg dimensions
You have to know the file format: raster picture formats store the size of
the picture somewhere in the headers. I know that for bmp files, there is a
14-byte file header, then a Long telling the size of the next header (always
40 AFAIK), then two Longs for the width and height in pixels.
You can check out all sorts of file formats at www.wotsit.org
Jim Deutch
MS Dev MVP
Quote:
>How can I get the dimensions of a picture file from VB? for example, Paint
>will tell me that a certain bitmap is 400x500. I want to get the same
>information.
>Thanks