Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bringing images into VFP
Message
 
To
21/02/2005 16:04:09
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00989013
Message ID:
00989068
Views:
39
Hi Allen,

Whatever functionality the _CLIPTEXT has, it is limited to the text format. API calls (GDI, Enhanced Metafile or GDI+) can manipulate with graphics data in the Clipboard.

Using API calls in Visual FoxPro code you may
- copy graphics file to the Clipboard
- copy image of FoxPro form to the Clipboard
- copy contents of the Clipboard to a graphics file

In my opinion, the GDI+ API is more suitable for this kind of tasks then two other APIs. There are several Visual FoxPro implementations of it around, including GDI+ FFC supplied with VFP9.

I have two code samples on my web site (members area):

GDI+: Storing content of the Clipboard to a bitmap file
http://www.news2news.com/vfp/?example=475

Storing content of the Clipboard to a bitmap file
http://www.news2news.com/vfp/?example=189

* * *
An addition to what Tore Bleken just posted. When you browse a web page, the browser stores many parts of this page in the cache on your computer. So the graphics file is somewhere on your computer even before you request the "Save Picture As" dialog.

The URLDownloadToFile and URLDownloadToCacheFile API calls can be used for downloading a graphics file directly, if you know the Url. Whenever the file exists in the cache on the local computer, the latter API call retrieves it from the cache rather than from the Internet.
Previous
Reply
Map
View

Click here to load this message in the networking platform