Results 1 to 2 of 2

Thread: JPG's

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Winchester, UK
    Posts
    18

    Question JPG's

    Hi,

    Does anyone know a way of determining the pixle resolution of a JPG file from VB?

    I can do this by opening the JPG into VB and testing for the Height and Width, but the JPG's I'm using are massive (around 4000 x 3000 pixles) and so it takes ages to load each of them (i've got hundreds to do!)

    Is there a header to JPG's which contains this info???

    Any help appreciated. Thanks
    ---------------
    Jez Hollinshead
    ---------------

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    You could load the image into an IPictureDisp to get the info.
    I posted some code a little while back for this
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

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