summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html/en/drv/cairo.html19
-rw-r--r--html/en/drv/printer.html2
-rw-r--r--html/en/func/polygon.html2
-rw-r--r--html/en/history.html14
4 files changed, 25 insertions, 12 deletions
diff --git a/html/en/drv/cairo.html b/html/en/drv/cairo.html
index adb65ac..9632ed8 100644
--- a/html/en/drv/cairo.html
+++ b/html/en/drv/cairo.html
@@ -27,8 +27,8 @@
<b>Image</b>, <b>Printer</b> and <b>Double Buffer</b> were implemented.</p>
<p>The main motivation for the use of Cairo was transparency for all the
primitives. Beyond that we got other features like anti-aliasing, gradient
-filling, transformations and back-ends (support to rendering: PDF, PS, SVG and
-PNG surfaces).</p>
+filling, transformations and other back-ends (support to rendering: PDF, PS, SVG and
+IMAGERGB surfaces).</p>
<p>This driver still does not completely replace the X-Windows and GDI Windows
base drivers, because Cairo does not have support for bitwise XOR operations and
for complex clipping regions.</p>
@@ -38,9 +38,12 @@ for complex clipping regions.</p>
This function affects only the <font face="Courier"><strong>cdCreateCanvas</strong></font> function call, once created
the canvas will be always a Cairo canvas. In fact the function affects primary the definitions
<font face="Courier"><strong>CD_NATIVEWINDOW</strong></font>,
- <strong><span style="font-family: Courier">CD_IMAGE</span></strong> and <strong>
+ <strong><span style="font-family: Courier">CD_IMAGE</span></strong>,
+ <strong><span style="font-family: Courier">CD_PRINTER</span></strong> and <strong>
<span style="font-family: Courier">CD_DBUFFER</span></strong>, because they are
- function calls and not static defines.</p>
+ function calls and not static defines.
+ <strong><span style="font-family: Courier">CD_PRINTER</span></strong> can only
+ be used along with GDK base driver in UNIX.</p>
<p>Using Cairo it is allowed to create more that one canvas at the same time for the same Window. And they can co-exist
with a standard GDK, Win32 or X-Windows canvas.</p>
<p>To enable the use of Cairo based drivers you must call the initialization function <font face="Courier"><strong>
@@ -60,7 +63,8 @@ used.</p>
<p>Similar to <a href="ps.html">CD_PS</a>, uses the same creation parameters.
But margins are not supported and Postscript level can be 2 (parameter -2)
- or 3 (parameter -3).</p>
+ or 3 (parameter -3). The &quot;CMD&quot; attribute is not supported, and the new
+ attribute &quot;DSCCOMMENT&quot; accepts a string that is saved as a DSC comment.</p>
<h4>CD_CAIRO_PDF - PDF Driver</h4>
@@ -84,7 +88,10 @@ used.</p>
returns the line size in bytes, when data is specified during creation then
stride is always width*32. Even when there is not alpha channel, data is
stored in 32 bits per pixel. Image data is also organized in top-bottom
- orientation, it means the data pointer points to the top-left corner.</p>
+ orientation, it means the data pointer points to the top-left corner. And
+ the &quot;WRITE2PNG&quot; attribute that accepts a filename to save the image as a PNG
+ file (this does not depends of the
+ <a href="http://www.tecgraf.puc-rio.br/im">IM</a> library).</p>
<h3>Behavior of Functions</h3>
<h4>Control&nbsp; </h4>
diff --git a/html/en/drv/printer.html b/html/en/drv/printer.html
index 6b6ca19..f712821 100644
--- a/html/en/drv/printer.html
+++ b/html/en/drv/printer.html
@@ -55,7 +55,7 @@ before creating the canvas.</p>
<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
+ and <a href="cairo.html">Cairo</a> (over GDK). However, it should be noted that
some functions behave differently from the basic functions of each platform.</p>
<p>A printer created in Win32s has the same limitations as the
<a href="wmf.html">WMF driver</a>. In Windows 95 or NT, it has the same
diff --git a/html/en/func/polygon.html b/html/en/func/polygon.html
index c2acb9a..90890d4 100644
--- a/html/en/func/polygon.html
+++ b/html/en/func/polygon.html
@@ -86,7 +86,7 @@ canvas:End() [in Lua]</pre>
<p>Ends the polygon's definition and draws it.</p>
-<pre class="function"><span class="mainFunction">void <a name="cdEnd0">cdCanvasPathSet</a>(cdCanvas* canvas, int action); [in C]</span>
+<pre class="function"><span class="mainFunction">void <a name="cdPathSet">cdCanvasPathSet</a>(cdCanvas* canvas, int action); [in C]</span>
canvas:PathSet(action: number) [in Lua]</pre>
diff --git a/html/en/history.html b/html/en/history.html
index 11532df..293eb3b 100644
--- a/html/en/history.html
+++ b/html/en/history.html
@@ -18,6 +18,9 @@
color: #FF0000;
font-weight: bold;
}
+ .style1 {
+ color: #FF0000;
+}
</style>
</head>
@@ -26,17 +29,20 @@
<h2>History of Changes</h2>
<h3><a href="http://sourceforge.net/projects/canvasdraw/files/5.4/">Version 5.4</a> (XX/June/2010)</h3>
<ul>
- <li><span class="hist_new">New:</span> context plus driver Cairo.</li>
+ <li><span class="hist_new">New:</span> context plus driver
+ <a href="drv/cairo.html">Cairo</a>.</li>
<li><span class="hist_new">New:</span> &quot;CMD&quot;, &quot;OPACITY&quot; and &quot;HATCHBOXSIZE&quot;
attributes in the SVG driver.</li>
- <li><span class="hist_new">New:</span> CD_PATH <strong>cdCanvasBegin</strong>
+ <li><span class="hist_new">New:</span> <a href="func/polygon.html#cdBegin">CD_PATH</a> <strong>cdCanvasBegin</strong>
mode to create a path composed of several primitives that can be line draw,
- filled or used as clipping. New function <strong>cdCanvasPathSet</strong> to
+ filled or used as clipping. New function <strong>
+ <a href="func/polygon.html#cdPathSet">cdCanvasPathSet</a></strong> to
configure the action between sequences of <strong>cdCanvasVertex</strong>.</li>
<li><span class="hist_changed">Changed:</span>
CD_DXF now supports solid filled primitives for polygons and rectangles.</li>
<li><span class="hist_changed">Changed:</span>
- GDI+ base driver now supports floating point primitives. ATTENTION: check
+ GDI+ base driver now supports floating point primitives.
+ <span class="style1">ATTENTION</span>: check
for alignment and size problems in the application. Please report if
anything changed.</li>
<li dir="ltr">