Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking to copy a section of a form to a GIF or BMP or??
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01074724
Message ID:
01074735
Views:
14
There are at least three API approaches to screen/form printing or copying to an image file:
1) GDI API
2) Metafile API
3) GDI+ API

The GDI API creates bitmap files only.
The Metafile API produces the shortest code, creates EMF files.

The GDI+ API offers the best functionality. To use it a GDI+ class library is required. VFP9 installation includes a GDI+ Foundation Class. Also there are several alternative GDI+ libraries around.

Several FoxPro code samples on my web site (membership required) show how to copy a form or a window to an image file.

Storing screen shot of a form to bitmap file -- uses GDI API calls to create *.bmp files
http://www.news2news.com/vfp/?example=187

Storing screen shot of a form to enhanced metafile -- uses Metafile API calls to create *.emf files
http://www.news2news.com/vfp/?example=402

GDI+: saving image of FoxPro form to graphics file (BMP, GIF, JPG, PNG, TIF) -- uses GDI+ API calls to create graphics files in several formats
http://www.news2news.com/vfp/?example=454
Previous
Reply
Map
View

Click here to load this message in the networking platform