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.aspYou'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