.bmp, .gif, .jpg dimensions 
Author Message
 .bmp, .gif, .jpg dimensions

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


Fri, 22 Mar 2002 03:00:00 GMT  
 .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



Sat, 23 Mar 2002 03:00:00 GMT  
 .bmp, .gif, .jpg dimensions
Thank You!


Sun, 24 Mar 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Dimensions of GIF and JPG from files

2. Dimensions of GIF and JPG from files

3. ? How to get dimensions of gif or jpg

4. Dimensions on gif / jpg

5. .GIF .JPG .BMP, etc

6. Storing *.bmp,*.gif,*.jpg files into SQL Server 6.5 datatbase

7. Internet Database BMP -> GIF/JPG Conversion

8. suggestions to change BMP to JPG or GIF

9. bmp 2 jpg or gif

10. Word Image to bmp or jpg or gif

11. BMP to JPG or GIF

12. BMP to JPG or GIF

 

 
Powered by phpBB® Forum Software