summaryrefslogtreecommitdiff
path: root/html/en/screenshots.html
blob: 1d1968afb1f483578cfc1fa810ead3ea699eb484 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>Screenshots</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="stylesheet" type="text/css" href="../style.css">
<style type="text/css">
.style4 {
	border-style: solid;
	border-width: 1px;
}
.style5 {
	text-align: left;
}
</style>
</head>
<body>

<h2 align="center" style="text-align:center">Screenshots</h2>
<p class="style5">All the screenshots here were generated with the same
<a href="screenshots_src_c.html">C source code</a>. The same example is 
available in <a href="screenshots_src_lua.html">Lua source code</a>. The code contains only the 
primitives and attributes, the canvas initialization is simply:</p>
<pre>cdCanvas* canvas = <strong>cdCreateCanvas</strong>(ctx, data);

<a href="screenshots_src_c.html">SimpleDraw</a>(canvas);

/* Destroys the canvas and releases internal memory, 
   important for file based drivers to close the file. */
<strong>cdKillCanvas</strong>(canvas);
</pre>
<h4><a href="drv/native.html">CD_NATIVEWINDOW</a> or <a href="drv/iup.html">
CD_IUP</a></h4>
<pre>Ihandle* cnv = <strong>IupCanvas</strong>(NULL);
<strong>cdInitContextPlus</strong>();
...
if (contextplus) <strong>cdUseContextPlus</strong>(1);
canvas = <strong>cdCreateCanvas</strong>(CD_IUP, cnv);
if (contextplus) <strong>cdUseContextPlus</strong>(0);</pre>


<table align="center">
	<tr>
		<th><a href="drv/win32.html">Win32</a></th>
		<th><a href="drv/gdiplus.html">GDI+</a></th>
	</tr>
	<tr>
		<td>
		<a href="../screenshots/cd_nativewindow_win32.png">
		<img src="../screenshots/small/cd_nativewindow_win32_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_win32.png" width="400" height="293" class="style4" ></a></td>
		<td>
		<a href="../screenshots/cd_nativewindow_gdiplus.png">
		<img src="../screenshots/small/cd_nativewindow_gdiplus_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_gdiplus.png" width="400" height="293" class="style4" ></a></td>
	</tr>
	<tr>
		<th><a href="drv/xwin.html">X11</a></th>
		<th><a href="drv/xrender.html">XRender</a></th>
	</tr>
	<tr>
		<td>
		<a href="../screenshots/cd_nativewindow_x11.png">
		<img src="../screenshots/small/cd_nativewindow_x11_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_x11.png" width="400" height="264" class="style4" ></a></td>
		<td><img src="../screenshots/cd_nativewindow_xrender.png"></td>
	</tr>
	<tr>
		<th><a href="drv/gdiplus.html">GDK</a></th>
		<th><a href="drv/xrender.html">Cairo</a></th>
	</tr>
	<tr>
		<td>
		<a href="../screenshots/cd_nativewindow_gdk.png">
		<img src="../screenshots/small/cd_nativewindow_gdk_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_gdk.png" width="400" height="263" class="style4" ></a></td>
		<td>
		<a href="../screenshots/cd_nativewindow_cairo.png">
		<img src="../screenshots/small/cd_nativewindow_cairo_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_cairo.png" width="400" height="263" class="style4" ></a></td>
	</tr>
</table>

<h4><a href="drv/irgb.html">CD_IMAGERGB</a></h4>
<pre>canvas = <strong>cdCreateCanvas</strong>(CD_IMAGERGB, &quot;1280x938&quot;);</pre>

<table align="center">
	<tr>
		<td>
		<a href="../screenshots/cd_imagergb.png">
		<img src="../screenshots/small/cd_imagergb_small.png" xthumbnail-orig-image="../screenshots/cd_imagergb.png" width="400" height="293" class="style4" ></a></td>
	</tr>
</table>

<h4><a href="drv/pdf.html">CD_PDF</a></h4>
<pre>canvas = <strong>cdCreateCanvas</strong>(CD_PDF, &quot;cd_pdf.pdf -w270.933 -h198.543 -s120&quot;);</pre>
<table align="center">
	<tr>
		<td>
		<a href="../screenshots/cd_pdf_acrobatreader.png">
		<img src="../screenshots/small/cd_pdf_acrobatreader_small.png" xthumbnail-orig-image="../screenshots/cd_pdf_acrobatreader.png" width="400" height="293" class="style4" ></a></td>
	</tr>
	<tr>
		<td><a href="../screenshots/cd_pdf.pdf">cd_pdf.pdf</a></td>
	</tr>
</table>

<h4><a href="drv/ps.html">CD_PS</a></h4>
<pre>canvas = <strong>cdCreateCanvas</strong>(CD_PS, &quot;cd_ps.ps -l0 -r0 -t0 -b0 -w270.933 -h198.543 -s120&quot;);
canvas = <strong>cdCreateCanvas</strong>(CD_PS, &quot;cd_ps.eps -e -w270.933 -h198.543 -s120&quot;);</pre>
<table align="center">
	<tr>
		<td>
		<a href="../screenshots/cd_ps_ghostscript.png">
		<img src="../screenshots/small/cd_ps_ghostscript_small.png" xthumbnail-orig-image="../screenshots/cd_ps_ghostscript.png" width="400" height="293" class="style4" ></a></td>
	</tr>
	<tr>
		<td><a href="../screenshots/cd_ps.ps">cd_ps.ps</a></td>
	</tr>
	<tr>
		<td><a href="../screenshots/cd_ps.eps">cd_ps.eps</a></td>
	</tr>
</table>

<h4><a href="drv/svg.html">CD_SVG</a></h4>
<pre>canvas = <strong>cdCreateCanvas</strong>(CD_SVG, &quot;cd_svg.svg 270.933x198.543 4.72441&quot;);</pre>
<table align="center">
	<tr>
		<td>
		<a href="../screenshots/cd_svg_firefox.png">
		<img src="../screenshots/small/cd_svg_firefox_small.png" xthumbnail-orig-image="../screenshots/cd_svg_firefox.png" width="400" height="291" class="style4" ></a></td>
	</tr>
	<tr>
		<td><a href="../screenshots/cd_svg.svg">cd_svg.svg</a></td>
	</tr>
</table>

<h4><a href="drv/emf.html">CD_EMF</a></h4>
<pre>canvas = <strong>cdCreateCanvas</strong>(CD_EMF, &quot;cd_emf.emf 1280x938&quot;);</pre>
<table align="center">
	<tr>
		<th>Win32</th>
		<th>GDI+</th>
	</tr>
	<tr>
		<td>
		
		<a href="../screenshots/cd_emf_win32_powerpoint.png">
		
		<img src="../screenshots/small/cd_emf_win32_powerpoint_small.png" xthumbnail-orig-image="../screenshots/cd_emf_win32_powerpoint.png" width="400" height="297" class="style4" ></a></td>
		<td>
		
		<a href="../screenshots/cd_emf_gdiplus_powerpoint.png">
		
		<img src="../screenshots/small/cd_emf_gdiplus_powerpoint_small.png" xthumbnail-orig-image="../screenshots/cd_emf_gdiplus_powerpoint.png" width="400" height="295" class="style4" ></a></td>
	</tr>
	<tr>
		<td><a href="../screenshots/cd_emf_win32.emf">cd_emf_win32.emf</a></td>
		<td><a href="../screenshots/cd_emf_gdiplus.emf">cd_emf_gdiplus.emf</a></td>
	</tr>
</table>

<h4>Other Metafiles</h4>
<blockquote>
<p><a href="drv/mf.html">CD_METAFILE</a> -
<a href="../screenshots/cd_metafile.mf">cd_metafile.mf</a></p>
<pre>canvas = <strong>cdCreateCanvas</strong>(CD_METAFILE, &quot;cd_wmf.mf 270.933x198.543 4.72441&quot;);</pre>
<p><a href="drv/debug.html">CD_DEBUG</a> - <a href="../screenshots/cd_debug.txt">
cd_debug.txt</a></p>
<pre>canvas = <strong>cdCreateCanvas</strong>(CD_DEBUG, &quot;cd_debug.txt 270.933x198.543 4.72441&quot;);</pre>
<p><a href="drv/wmf.html">CD_WMF</a> - <a href="../screenshots/cd_wmf.wmf">
cd_wmf.wmf</a></p>
<pre>canvas = <strong>cdCreateCanvas</strong>(CD_WMF, &quot;cd_wmf.wmf 1280x938&quot;);</pre>
<p><a href="drv/cgm.html">CD_CGM</a> - <a href="../screenshots/cd_cgm.cgm">
cd_cgm.cgm</a></p>
<pre>canvas = <strong>cdCreateCanvas</strong>(CD_CGM, &quot;cd_cgm.cgm 270.933x198.543 4.72441&quot;);</pre>
<p><a href="drv/cgm.html">CD_CGM</a> - <a href="../screenshots/cd_cgm_t.cgm">
cd_cgm_t.cgm</a>&nbsp; (text mode)</p>
<pre>canvas = <strong>cdCreateCanvas</strong>(CD_CGM, &quot;cd_cgm_t.cgm -t 270.933x198.543 4.72441&quot;);</pre>
<p><a href="drv/dgn.html">CD_DGN</a> - <a href="../screenshots/cd_dgn.dgn">
cd_dgn.dgn</a></p>
<pre>canvas = <strong>cdCreateCanvas</strong>(CD_DGN, &quot;cd_dgn.dgn 270.933x198.543 4.72441&quot;);</pre>
<p><a href="drv/dxf.html">CD_DXF</a> - <a href="../screenshots/cd_dxf.dxf">
cd_dxf.dxf</a></p>
<pre>canvas = <strong>cdCreateCanvas</strong>(CD_DXF, &quot;cd_dxf.dxf 270.933x198.543 4.72441&quot;);</pre>
</blockquote>


</body>

</html>