summaryrefslogtreecommitdiff
path: root/html/en/func
diff options
context:
space:
mode:
Diffstat (limited to 'html/en/func')
-rw-r--r--html/en/func/color.html5
-rw-r--r--html/en/func/init.html26
-rw-r--r--html/en/func/marks.html3
-rw-r--r--html/en/func/other.html2
-rw-r--r--html/en/func/polygon.html30
-rw-r--r--html/en/func/region.html2
-rw-r--r--html/en/func/server.html3
-rw-r--r--html/en/func/vectortext.html4
-rw-r--r--html/en/func/wd.html2
9 files changed, 59 insertions, 18 deletions
diff --git a/html/en/func/color.html b/html/en/func/color.html
index 8efd8a4..fbd4b52 100644
--- a/html/en/func/color.html
+++ b/html/en/func/color.html
@@ -52,8 +52,9 @@ cd.DecodeColor(color: lightuserdata) -&gt; (r, g, b: number) [in Lua]</pre>
cd.EncodeAlpha(color: lightuserdata, alpha: number) -&gt; (color: lightuserdata) [in Lua]</pre>
<p>Returns the given color coded with the alpha information. ATENTION: At the
- moment only the <a href="../drv/gdiplus.html">Win32 with GDI+</a>, the
- <a href="../drv/xrender.html">XRender</a> and the <a href="../drv/irgb.html">IMAGERGB</a>
+ moment only the <a href="../drv/cairo.html">Cairo</a>,
+ <a href="../drv/gdiplus.html">GDI+</a>, <a href="../drv/xrender.html">XRender</a>
+ and <a href="../drv/irgb.html">IMAGERGB</a>
drivers support alpha components in color coding. The
internal representation of the component is inverted, because the default value
must be 0 and opaque for backward compatibility, so you should use the <strong>cdDecodeAlpha</strong>
diff --git a/html/en/func/init.html b/html/en/func/init.html
index 9cdee9e..32a1ab6 100644
--- a/html/en/func/init.html
+++ b/html/en/func/init.html
@@ -41,7 +41,9 @@ cd.CreateCanvas(ctx: number, data: string or userdata) -&gt; (canvas: cdCanvas)
<ul>
<li><a href="../drv/clipbd.html"><b>CD_CLIPBOARD</b></a> = Clipboard (<b>cdclipbd.h</b>).</li>
- <li><a href="../drv/printer.html"><b>CD_PRINTER</b></a> = Printer (<b>cdprint.h</b>).</li>
+ <li><a href="../drv/printer.html"><b>CD_PRINTER</b></a> = Printer (<b>cdprint.h</b>).<br>
+ <a href="../drv/picture.html"><strong>CD_PICTURE</strong></a> = Picture in
+ memory (<strong>cdpicture.h</strong>).</li>
</ul>
<p><b>Image-Based Drivers</b>&nbsp; </p>
<ul>
@@ -51,22 +53,28 @@ cd.CreateCanvas(ctx: number, data: string or userdata) -&gt; (canvas: cdCanvas)
Drawing (<b>cdirgb.h</b>).</li>
<li><a href="../drv/dbuf.html"><b>CD_DBUFFER</b></a> = Offscreen Drawing
(<b>cddbuf.h</b>).</li>
+ <li><b><a href="../drv/dbufrgb.html">CD_DBUFFERRGB</a></b> = Client Offscreen Drawing
+ (<b>cddbuf.h</b>).</li>
</ul>
<p><b>File-Based Drivers</b>&nbsp; </p>
<ul>
- <li><a href="../drv/cgm.html"><b>CD_CGM</b></a> = Computer Graphics
+ <li><a href="../drv/pdf.html"><b>CD_PDF</b></a> = Adobe Portable Document Format (<b>cdpdf.h</b>).</li>
+ <li><a href="../drv/ps.html"><b>CD_PS</b></a> = PostScript File (<b>cdps.h</b>).</li>
+ <li><a href="../drv/svg.html"><b>CD_SVG</b></a> = Scalable Vector Graphics (<b>cdsvg.h</b>).</li>
+ <li><a href="../drv/mf.html"><b>CD_METAFILE</b></a> = Internal CD Metafile (<b>cdmf.h</b>).</li>
+ <li><a href="../drv/debug.html"><b>CD_DEBUG</b></a> = Internal CD Debug Log (<b>cddebug.h</b>).<br>
+ </li>
+ <li><a href="../drv/cgm.html"><b>CD_CGM</b></a> = Computer Graphics
Metafile ISO (<b>cdcgm.h</b>).</li>
<li><a href="../drv/dgn.html"><b>CD_DGN</b></a> = MicroStation Design
File (<b>cddgn.h</b>).</li>
<li><a href="../drv/dxf.html"><b>CD_DXF</b></a> = AutoCad Drawing
- Interchange File (<b>cddxf.h</b>).</li>
+ Interchange File (<b>cddxf.h</b>).<br>
+ </li>
<li><a href="../drv/emf.html"><b>CD_EMF</b></a> = Microsoft Windows
Enhanced Metafile (<b>cdemf.h</b>). Works only in MS Windows systems.</li>
- <li><a href="../drv/mf.html"><b>CD_METAFILE</b></a> = Metafile Canvas
- Draw (<b>cdmf.h</b>).</li>
- <li><a href="../drv/ps.html"><b>CD_PS</b></a> = PostScript File (<b>cdps.h</b>).</li>
<li><a href="../drv/wmf.html"><b>CD_WMF</b></a> = Microsoft Windows
- Metafile (<b>cdwmf.h</b>).</li>
+ Metafile (<b>cdwmf.h</b>). Works only in MS Windows systems.</li>
</ul>
<pre class="function"><span class="mainFunction">cdCanvas*&nbsp;<a name="cdCreateCanvasf">cdCreateCanvasf(cdContext *ctx, const char* format, ...)</a>; [in C]
@@ -115,8 +123,8 @@ cd.UseContextPlus(use: boolean) -&gt; (old_use: boolean) [in Lua]</pre>
cd.InitContextPlus() [in Lua]</pre>
<p>Initializes the context driver to use another context replacing the standard drivers.
This functions is only available when a library containing a &quot;ContextPlus&quot;
-context driver is used. See the <a href="../drv/gdiplus.html">GDI+</a> base
-driver and the <a href="../drv/xrender.html">XRender</a> base driver.</p>
+context driver is used. See the <a href="../drv/cairo.html">Cairo</a>,&nbsp; <a href="../drv/gdiplus.html">GDI+</a>
+and <a href="../drv/xrender.html">XRender</a> base drivers.</p>
<p>In Lua, when using require&quot;cdluacontextplus&quot; this function will be
automatically called.</p>
diff --git a/html/en/func/marks.html b/html/en/func/marks.html
index b68db35..e467c10 100644
--- a/html/en/func/marks.html
+++ b/html/en/func/marks.html
@@ -25,7 +25,8 @@ canvas:Pixel(x, y: number, color: lightuserdata) [in Lua]
canvas:wPixel(x, y: number, color: lightuserdata) (WC) [in Lua]</pre>
<p>Configures the pixel <b>(x,y)</b> with the color defined by <b>color</b>. It is the smallest element of the canvas. It depends only
- on global attributes of the canvas.</p>
+ on global attributes of the canvas. It can be very slow on some drivers.
+ Sometimes it is implemented as a rectangle with size 1x1.</p>
<pre class="function"><span class="mainFunction">void <a name="cdMark">cdCanvasMark</a>(cdCanvas* canvas, int x, int y); [in C]</span>
void wdCanvasMark(cdCanvas* canvas, double x, double y); (WC) [in C]
diff --git a/html/en/func/other.html b/html/en/func/other.html
index b493ae5..d334508 100644
--- a/html/en/func/other.html
+++ b/html/en/func/other.html
@@ -48,7 +48,7 @@ cd._VERSION
cd._VERSION_DATE
cd._VERSION_NUMBER</pre>
- <p>Usefull definitions. They have the same value returned by <b>cdVersion</b>*
+ <p>Useful definitions. They have the same value returned by <b>cdVersion</b>*
functions, except that they do not include the build number.</p>
<hr>
diff --git a/html/en/func/polygon.html b/html/en/func/polygon.html
index 4e18664..4ab5834 100644
--- a/html/en/func/polygon.html
+++ b/html/en/func/polygon.html
@@ -6,6 +6,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Polygons</title>
<link rel="stylesheet" type="text/css" href="../../style.css">
+<style type="text/css">
+.style1 {
+ font-family: Courier;
+}
+</style>
</head>
<body>
@@ -82,6 +87,31 @@ canvas:End() [in Lua]</pre>
<p>Ends the polygon's definition and draws it.</p>
+<p>&nbsp;</p>
+&quot;<span class="style1"><strong>PATH</strong></span>&quot;:&nbsp;allows to create
+ a complex path using CD primitives and then fill, stroke or clip using the
+ new path. Must be used with the following parameters:<ul>
+ <li>&quot;BEGIN&quot; - creates a new empty path, must be the first call</li>
+ <li>cdCanvasPixel, cdCanvasLine, cdCanvasArc - add elements to the path
+ instead of drawing to the canvas</li>
+ <li>&quot;FILL&quot; - closes the path, and fills it with the current fill attributes,
+ then the path is discarded</li>
+ <li>&quot;STROKE&quot; - strokes the path with the current line attributes, then the
+ path is discarded</li>
+ <li>&quot;CLOSESTROKE&quot; - closes the path, and strokes it with the current line
+ attributes, then the path is discarded</li>
+ <li>&quot;FILLSTROKE&quot; - closes the path, and fills it with the current fill
+ attributes, strokes the path with the current line attributes, then the path
+ is discarded</li>
+ <li>&quot;CLIP&quot; - closes the path, and use it as a clipping area to be
+ intersected with the current clipping area, then the path is discarded</li>
+ <li>&quot;NULL&quot; - discards the path and ends the process without any output.</li>
+ <li>ARC - If there is a current point an additional straight line is drawn
+ from the current point to the starting point of the arc. The endpoint of the
+ arc becomes the new current point. </li>
+ </ul>
+
+
</body>
</html>
diff --git a/html/en/func/region.html b/html/en/func/region.html
index 1581180..59874b8 100644
--- a/html/en/func/region.html
+++ b/html/en/func/region.html
@@ -67,7 +67,7 @@ canvas:wOffsetRegion(dx, dy: number) (WC) [in Lua]</pre>
<p>Moves the current region by the given offset. In X-Windows, if the region
moves to outside the canvas border, the part moved outside will be lost, the
- region will need to be reconstruted.</p>
+ region will need to be reconstructed.</p>
<pre class="function"><span class="mainFunction">void&nbsp;cdCanvasGetRegionBox(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax); [in C]</span>
void wdCanvasGetRegionBox(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax); (WC) [in C]
diff --git a/html/en/func/server.html b/html/en/func/server.html
index 6663de5..2a9142e 100644
--- a/html/en/func/server.html
+++ b/html/en/func/server.html
@@ -21,7 +21,8 @@
<p>It is called &quot;server&quot; images because the data is stored in a system private
format, that the application (or the client) does not have access.</p>
<p>To create a server image there must be an active canvas of a driver with
- server image support.</p>
+ server image support. Only the base drivers Win32, GDI+, X-Windows, XRender
+ and Cairo, support server images.</p>
<hr>
<pre class="function"><span class="mainFunction">cdImage* <a name="cdCreateImage">cdCanvasCreateImage</a>(cdCanvas* canvas, int w, int h); [in C]</span>
diff --git a/html/en/func/vectortext.html b/html/en/func/vectortext.html
index 84ca128..ec66aa2 100644
--- a/html/en/func/vectortext.html
+++ b/html/en/func/vectortext.html
@@ -14,8 +14,8 @@
left to right.</p>
<p align="center"><font size="4">Vector Text Parameters</font><br>
<img src="../../img/vector_text.gif" align="middle" border="2" width="101" height="91"></p>
- <p>All vector text drawing in all drivers are simulated using other CD
- primitives.</p>
+ <p>All vector text drawing in all drivers are simulated with other CD
+ primitives using polygons only.</p>
<hr>
<pre class="function"><span class="mainFunction">void <a name="cdVectorText">cdCanvasVectorText</a>(cdCanvas* canvas, int x, int y, const char* text); [in C]</span>
void wdCanvasVectorText(cdCanvas* canvas, double x, double y, const char* text); (WC) [in C]
diff --git a/html/en/func/wd.html b/html/en/func/wd.html
index 938d19d..02fda2e 100644
--- a/html/en/func/wd.html
+++ b/html/en/func/wd.html
@@ -24,7 +24,7 @@
if the canvas has a small size the picture quality will be poor. To increase
picture quality create a canvas with a larger size, if possible.</p>
<p>All World Coordinate drawing in all drivers are simulated using other CD
- primitives.</p>
+ primitives and do NOT depend or use the Transformation matrix.</p>
<hr>
<pre class="function"><span class="mainFunction">void <a name="wdWindow">wdCanvasWindow</a>(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C]</span>