Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Way to save images on clipboard to file and vis-versa
Message
De
09/11/2001 11:29:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00578601
Message ID:
00579696
Vues:
22
Vlad,

Thanks for your ideas. They make sense. I was hoping someone had already implemented this solution. If we come up with a solution, I will post it here for everyone to use.

Thanks again!
Malcolm


>Hi!
>
>Take a look to MSDN: type in "Clipboard", select "clipboard [Win32]" and read topics there - just Windows API functions. From what I understood, you need to use OpenClipboard(), CloseClipboard() and GetClipboardData() API functions and proper format of data in clipboard. To convert image in memory to file and vise versa - find "Bitmaps" topic for Platform SDK: Windows GDI. There is a reference to "Using Bitmaps" and then "Storing an Image" page. There is a C++ sample for writing bitmap into the file (though I afraid it will be hard to convert to VFP, but probably possible). Thats all that I found, maybe somebody else jump in and propose more simple solution.
>
>>Anyone have suggestions on how we might be able to detect the presence of image data on the Windows clipboard and save this image data to a file? We would also like a way to load the contents of an image file to the clipboard where the image could be pasted into other applications. There are probably issues about image formats (ico, bmp, gif, jpg) that I should be worried about. Any thoughts on this 'worry' would be appreciated as well.
>>
>>Thanks!
>>Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform