summaryrefslogtreecommitdiff
path: root/html/en/screenshots.html
diff options
context:
space:
mode:
authorscuri <scuri>2010-06-17 19:32:24 +0000
committerscuri <scuri>2010-06-17 19:32:24 +0000
commitdebc9599032c7036006ec124f4ef8f44b8935568 (patch)
tree0e210330658dc789212f1292f23bf6079f66fb81 /html/en/screenshots.html
parent622702f609550390898cd31956bf784212f46a6e (diff)
*** empty log message ***
Diffstat (limited to 'html/en/screenshots.html')
-rw-r--r--html/en/screenshots.html66
1 files changed, 48 insertions, 18 deletions
diff --git a/html/en/screenshots.html b/html/en/screenshots.html
index 38616c1..d8b3c28 100644
--- a/html/en/screenshots.html
+++ b/html/en/screenshots.html
@@ -10,14 +10,33 @@
border-style: solid;
border-width: 1px;
}
+.style5 {
+ text-align: left;
+}
</style>
</head>
<body>
<h2 align="center" style="text-align:center">Screenshots</h2>
-
-
-<h4><a href="drv/native.html">CD_NATIVEWINDOW</a></h4>
+<p class="style5">All the screenshots here were generated with the same
+<a href="screenshots_src_c.html">C source code</a>. The code contains only the
+primitives and attributes, the canvas initialization is simply:</p>
+<pre>cdCanvas* canvas = <strong>canvas = 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">
@@ -28,10 +47,10 @@
<tr>
<td>
<a href="../screenshots/cd_nativewindow_win32.png">
- <img src="../screenshots/cd_nativewindow_win32_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_win32.png" width="400" height="293" class="style4" ></a></td>
+ <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/cd_nativewindow_gdiplus_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_gdiplus.png" width="400" height="293" class="style4" ></a></td>
+ <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>
@@ -40,7 +59,7 @@
<tr>
<td>
<a href="../screenshots/cd_nativewindow_x11.png">
- <img src="../screenshots/cd_nativewindow_x11_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_x11.png" width="400" height="264" class="style4" ></a></td>
+ <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>
@@ -50,30 +69,31 @@
<tr>
<td>
<a href="../screenshots/cd_nativewindow_gdk.png">
- <img src="../screenshots/cd_nativewindow_gdk_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_gdk.png" width="400" height="263" class="style4" ></a></td>
+ <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/cd_nativewindow_cairo_small.png" xthumbnail-orig-image="../screenshots/cd_nativewindow_cairo.png" width="400" height="263" class="style4" ></a></td>
+ <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/cd_imagergb_small.png" xthumbnail-orig-image="../screenshots/cd_imagergb.png" width="400" height="293" class="style4" ></a></td>
+ <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/cd_pdf_acrobatreader_small.png" xthumbnail-orig-image="../screenshots/cd_pdf_acrobatreader.png" width="400" height="293" class="style4" ></a></td>
+ <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>
@@ -81,12 +101,13 @@
</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/cd_ps_ghostscript_small.png" xthumbnail-orig-image="../screenshots/cd_ps_ghostscript.png" width="400" height="293" class="style4" ></a></td>
+ <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>
@@ -97,12 +118,12 @@
</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/cd_svg_firefox_small.png" xthumbnail-orig-image="../screenshots/cd_svg_firefox.png" width="400" height="291" class="style4" ></a></td>
+ <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>
@@ -110,7 +131,7 @@
</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>
@@ -121,12 +142,12 @@
<a href="../screenshots/cd_emf_win32_powerpoint.png">
- <img src="../screenshots/cd_emf_win32_powerpoint_small.png" xthumbnail-orig-image="../screenshots/cd_emf_win32_powerpoint.png" width="400" height="297" class="style4" ></a></td>
+ <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/cd_emf_gdiplus_powerpoint_small.png" xthumbnail-orig-image="../screenshots/cd_emf_gdiplus_powerpoint.png" width="400" height="295" class="style4" ></a></td>
+ <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>
@@ -138,16 +159,25 @@
<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>