Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get image size without loading it
Message
 
À
04/10/2013 07:21:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01584779
Message ID:
01584782
Vues:
67
>>Here what I found:
>>(It is VB but its easy to convert :-))
>>
>>dim myImg, fs
>>Set fs= CreateObject("Scripting.FileSystemObject")
>>if not fs.fileExists(img) then exit sub
>>set myImg = loadpicture(img)
>>iWidth = round(myImg.width / 26.4583)
>>iheight = round(myImg.height / 26.4583)
>>set myImg = nothing
>>
>
>It's the LoadPicture() that's slow, so not different from what I'm doing already.

I have found something that get picture size, but it was only for PNGs :-(
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform