Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Way to save images on clipboard to file and vis-versa
Message
From
08/11/2001 07:23:27
 
 
To
07/11/2001 13:00:15
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00578601
Message ID:
00578963
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
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
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform