Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
JPEG and file size
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00225051
Message ID:
00225880
Vues:
11
Tim,

There are several ways to get the image into the memo field.

1. Use APPEND MEMO memofield FROM 'image.jpg' OVERWRITE
2. Use the lcImage = FileToStr('image.jpg.').
REPLACE MEMO WITH lcImage

I have used MEMO fields since the early 90's to support images in my school software under DOS using ESPIA. However, the FileToStr() and StrToFile() methods are extremely fast and are easy to use. Plus you can parse the data to see if it is an image file or get info about the image as well. However, there are other ways to get image info such as oImage = LOADPICTURE('image.jpg') and then you can use the oImage.Width and oImage.Height properties which are in TWIPS to get the actual pixel dimension for the image.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform