From 7b52cc13af4e85f1ca2deb6b6c77de9c95ea0dcf Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 17 Oct 2008 06:10:33 +0000 Subject: First commit - moving from LuaForge to SourceForge --- html/en/drv/emf.html | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 html/en/drv/emf.html (limited to 'html/en/drv/emf.html') diff --git a/html/en/drv/emf.html b/html/en/drv/emf.html new file mode 100644 index 0000000..1f7b462 --- /dev/null +++ b/html/en/drv/emf.html @@ -0,0 +1,84 @@ + + + + + + +CD_EMF + + + + + +

CD_EMF - Enhanced Metafile Driver (cdemf.h)

+ +

This driver allows generating a Microsoft Windows Enhanced Metafile, the + format used by 32-bit Windows systems to store graphics primitives. Usually, + the filename has an extension "*.emf".

+

The driver works only in the Microsoft Windows platform, but you can use it + in other platforms without the risk of compilation error. If you attempt to + create a canvas in another platform, function + cdCreateCanvas will return NULL.

+ +

Use

+ +

The canvas is created by means of a call to function + + cdCreateCanvas(CD_EMF, Data), after which other CD + functions can be called as usual. Parameter Data + has the following format:

+ +
"filename widthxheight"     or in C "%s %dx%d"
+ +

It must include the filename and the canvas' dimensions. + The filename must be inside double quotes (") if it has spaces. + Width and height are provided in pixels + (note the lowercase "x" between them). Resolution (the number of pixels per + millimeter) is always the screen resolution.

+

Any amount of such canvases may exist simultaneously. Function + cdCreateCanvas opens the + file, and a call to function + + cdKillCanvas is required to + close the file properly.

+

To use this driver in Windows using GDI+ is necessary to call + + cdUseContextPlus(1) +before creating the canvas. If you intend to use cdCanvasPlay +to interpret the EMF, then do not use GDI+ to generate the metafile. GDI+ +extensively use internal transformations that will affect the +cdCanvasPlay interpretation. Also some interior style will not be +correctly interpreted.

+ +

Behavior of Functions

+ +

This driver is greatly platform-dependent. For further detail, see the + Behavior of Functions of the Microsoft Windows (GDI) + or Windows Using GDI+ platform base drivers. It has + been noticed that EMF, when saved in the Windows 95 environment, is not + totally compatible with EMF saved in the Windows NT environment.

+ +

Control Functions

+ +

Client Images 

+ +

Server Images

+ + + + + -- cgit v1.2.3