summaryrefslogtreecommitdiff
path: root/html/en/drv/image.html
blob: f19b3b37ac421c50988cdf6af4c923133c9a67ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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>