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

I'm not really sure if I'm right about that :) It's just that all the Image Viewer (that I know of) is not supported to display the DIB format. However according to MSDN, we can just do BitBlt() the DIB data into the DC directly (haven't try this myself). So, maybe there is an Image Viewer that capable to do that. Well, I don't know


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

You're welcome. Let me know if you need some help :-)
Regards
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform