Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLEDragDrop GetData() in BMP/WAV format?
Message
De
23/05/2005 14:26:13
 
 
À
23/05/2005 13:34:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01016102
Message ID:
01016850
Vues:
48
Hi Herman,

> I don't think you can save the DIB format then display it in image viewer. You have to add the BITMAPFILEHEADER in front of the data, then you can save it into BMP file.
>
>Take a look at the second example here: Storing an image
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_7zfp.asp

You're right, you can not save the DIB data stream to a *.DIB file and expect to display it in a VFP image control or using MS Paint. I was a bit surprised by this as the VFP 9 documentation clearly states that the image control can display DIB images (VFP 9 help topic: "Graphics Support in Visual FoxPro"). I tried both saving the binary DIB stream to a file and referencing it via the .Picture property and by attempting to load the image directly via the new .PictureVal property. No luck.

Thank you for the MSDN link. I'm going to study it for a solution.

Regards,
Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform