Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLEDragDrop GetData() in BMP/WAV format?
Message
From
23/05/2005 14:26:13
 
 
To
23/05/2005 13:34:14
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01016102
Message ID:
01016850
Views:
47
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform