Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
JPG & BMP Image Size
Message
De
12/06/2005 21:07:13
 
 
À
12/06/2005 21:03:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01022652
Message ID:
01022658
Vues:
13
>>>I never did it, but IIRC, it is more or less like this: Use a VFP Image control. Load the picture, by specifying the .Picture property, and then ask for its .Height and .Width properties.
>>
>>Thanks, Hilmar. That would probably work all right, but I don't think it's going to be practical for what I'm attempting to do, which is: parse and rewrite HTML code on the fly where I need to replace certain
<img>
tags with new images where the "width=nnn" and "height=nnn" parameters may be different than the original. So I need to be able--within a .prg---grab the width and height values and replace the text in the HTML file with the new image file location and proper size values.
>
>I don't understand, why not. After getting the image dimensions, you can insert that into the new HTML. If I understand correctly, you want the real size, and avoid having a redimensioned picture.
>
>On the other hand, I believe that if you omit "width=nnn", etc., the browser will automatically render the picture in its real size - no redimensioning.

That's a very good point; I think you're right, so maybe I'm making a mountain out of a mole hill. I'll try your code as well. Thanks again.
Ray Roper
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform