>George,
>
>I am looking for a way, in VFP, to get the image resolution (horizontal x vertical size) of mostly jpg files, but maybe bmp or gif as well. I know there must be Windows API calls I can use. Our company has mostly Windows 2000 and Windows XP Pro desktops, some Windows 98, if that matters. If you can help, I'd need to know how to declare the function and how to call it, what parameters, etc.
>
>Thanks,
Dana,
Actually, this is something you can do in VFP without the API. Just instatiate a picture/image object and add the fully qualified file name as the source. The object has height and width properties you can reference.
Since I've just gotten a new machine (and haven't had time to install Fox yet), I hestiate to give you the exact code for fear of sending you in the wrong direction. While I know that with the image object this works with bmps and icos, but I only
think it will work with jpgs as well. IOW, I'm not 100% percent sure working off the top of my head.< g >
George
Ubi caritas et amor, deus ibi est