Information générale
Catégorie:
Photos et traitement d'images
Versions des environnements
Network:
Windows 2000 Server
>Win XP picture file widows (Explorer, etc.) show .jpg, .bmp, and possibly other formats with file size AND pixel size and color bits in parentheses like this: "1.77KB (80x64x24)". Does anyone know if there is an API function (or any other method) that will return that pixel size information for a graphics file programmatically?
Ray
This is a major problem. I also need to know this to create Javascript with VFP to create correctly sized browser windows + images, and to put informative tooltips over images. (No use letting the browser decide - there are too many fiddly differences.)
My solution is a bad one. I have 30kb images for screen viewing and I use a VFP image control to get the dimensions so that I at least have the width x height ratio. I apply the ratio to my full sized (1-2Mb) image - I don't get its dimensions directly because this is very very slow with the VFP control.
I used to use picclp.ocx, but this is obsolete as it fails with PNG and TIFF images (as far as I can see).
John Burton
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement