<!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 style="text-align: left">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 <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>, <a href="gdk.html">GDK</a>. However, it should be noted that some functions behave differently from the basic functions of each platform.</p> </body> </html>