summaryrefslogtreecommitdiff
path: root/html/en/drv/image.html
diff options
context:
space:
mode:
authorscuri <scuri>2008-10-17 06:10:33 +0000
committerscuri <scuri>2008-10-17 06:10:33 +0000
commit7b52cc13af4e85f1ca2deb6b6c77de9c95ea0dcf (patch)
treed0857278bde2eff784227c57dcaf930346ceb7ac /html/en/drv/image.html
First commit - moving from LuaForge to SourceForge
Diffstat (limited to 'html/en/drv/image.html')
-rw-r--r--html/en/drv/image.html57
1 files changed, 57 insertions, 0 deletions
diff --git a/html/en/drv/image.html b/html/en/drv/image.html
new file mode 100644
index 0000000..f19b3b3
--- /dev/null
+++ b/html/en/drv/image.html
@@ -0,0 +1,57 @@
+<!doctype HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+
+<head>
+<meta http-equiv="Content-Language" content="en-us">
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<title>CD_IMAGE</title>
+<link rel="stylesheet" type="text/css" href="../../style.css">
+</head>
+
+<body>
+
+<h2>CD_IMAGE - Server Image Driver (cdimage.h)</h2>
+
+ <p>This driver provides access to a Server Image, a memory-based
+ high-performance image that corresponds to the attributes of the system's
+ devices. It is used for offscreen drawings.</p>
+
+<h3>Use</h3>
+
+ <p>The canvas is created by means of a call to function
+ <a href="../func/init.html#cdCreateCanvas">
+ <font face="Courier"><strong>cdCreateCanvas</strong></font></a><font face="Courier">(CD_IMAGE,
+ Data)</font>, after which other functions in the CD library can be called as
+ usual. The function creates a CD canvas based on an existing Server Image. The
+ <font face="Courier">Data</font> parameter must be a pointer to an image
+ created with function&nbsp;
+ <a href="../func/server.html#cdCreateImage">
+ <font face="Courier"><strong>cdCreateImage</strong></font></a>.</p>
+ <p>Any amount of such canvases may exist simultaneously. It is important to
+ note that a call to function
+ <a href="../func/init.html#cdKillCanvas">
+ <font face="Courier"><strong>cdKillCanvas</strong></font></a> is required to
+ properly <b>end</b> the driver. You can call function
+ <a href="../func/server.html#cdKillImage">
+ <font face="Courier"><strong>cdKillImage</strong></font></a> only after
+ calling <font face="Courier"><strong>cdKillCanvas</strong></font>.</p>
+ <p>For use with CDLUA, the Server Image passed as parameter must have been
+ created with function <strong><font face="Courier">cd.CreateImage</font></strong>
+ in Lua.</p>
+<p>To use this driver in Windows using GDI+ is necessary to call
+<font face="Courier"><strong>
+ cdUseContextPlus</strong></font><strong><font face="Courier">(1)</font></strong>
+before creating the canvas.</p>
+
+<h3>Behavior of Functions</h3>
+
+ <p>This driver is greatly platform-dependent. For further detail, see the <b>
+ Behavior of Functions</b> in each platform: <a href="win32.html">Microsoft
+ Windows (GDI)</a>, <a href="gdiplus.html">Windows Using GDI+</a>,
+ <a href="xwin.html">X-Windows (XLIB)</a>. However, it should be noted that
+ some functions behave differently from the basic functions of each platform.</p>
+
+
+</body>
+
+</html>