<!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>
		<a href="../screenshots/cd_nativewindow_xrender.png">
		<img src="../screenshots/small/cd_nativewindow_xrender_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_xrender.png" width="400" height="262" class="style4" ></a></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>
		<th>As Seen in Acrobat Reader
		</th>
	</tr>
	<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>
		<th>As Seen in Ghostscript/GSView
		</th>
	</tr>
	<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>
		<th>As Seen in Firefox
		</th>
	</tr>
	<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 colspan="2">As Seen in Powerpoint
		</th>
	</tr>
	<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>