summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscuri <scuri>2010-03-03 19:19:48 +0000
committerscuri <scuri>2010-03-03 19:19:48 +0000
commitdbc86aa6b66919c2e3c4032a09eca019a6d3afdf (patch)
tree4392370f837323cc2bb1d43c1348f22c32217192
parente78601f7c788d1206aa60a57a169bb6d02b748bd (diff)
*** empty log message ***
-rw-r--r--html/en/drv/pdf.html2
-rw-r--r--html/en/drv/svg.html2
-rw-r--r--html/en/history.html4
-rw-r--r--src/svg/cdsvg.c3
4 files changed, 6 insertions, 5 deletions
diff --git a/html/en/drv/pdf.html b/html/en/drv/pdf.html
index 379d43c..4fba6b8 100644
--- a/html/en/drv/pdf.html
+++ b/html/en/drv/pdf.html
@@ -196,7 +196,7 @@ the vertex where there is a hole in a
string (&quot;%g %d %d&quot; = angle x y).</li>
</ul>
<ul>
- <li>&quot;<b><font face="Courier">OPAQUE</font></b>&quot;:&nbsp; allows the usage of a global
+ <li>&quot;<b><font face="Courier">OPACITY</font></b>&quot;:&nbsp; allows the usage of a global
opacity value. The value passed must be a string containing an integer
(&quot;%d&quot;) [0=full transparent, 255=full opaque]. Use NULL to reset to the
default. Default: 255.</li>
diff --git a/html/en/drv/svg.html b/html/en/drv/svg.html
index 5bfb1f8..10a0952 100644
--- a/html/en/drv/svg.html
+++ b/html/en/drv/svg.html
@@ -94,7 +94,7 @@
to the file generated by the CD library. (set only)</li>
</ul>
<ul>
- <li>&quot;<b><font face="Courier">OPAQUE</font></b>&quot;:&nbsp; allows the usage of a global
+ <li>&quot;<b><font face="Courier">OPACITY</font></b>&quot;:&nbsp; allows the usage of a global
opacity value. The value passed must be a string containing an integer
(&quot;%d&quot;) [0=full transparent, 255=full opaque]. Use NULL to reset to the
default. Default: 255.</li>
diff --git a/html/en/history.html b/html/en/history.html
index 1d65938..2eadf72 100644
--- a/html/en/history.html
+++ b/html/en/history.html
@@ -21,7 +21,7 @@
<h2>History of Changes</h2>
<h3>CVS (26/Feb/2010)</h3>
<ul>
- <li><span style="color: #0000FF">New:</span> CMD, OPAQUE and HATCHBOXSIZE
+ <li><span style="color: #0000FF">New:</span> &quot;CMD&quot;, &quot;OPACITY&quot; and &quot;HATCHBOXSIZE&quot;
attributes in the SVG driver.</li>
<li><span style="color: #FF0000">Fixed:</span> PDF driver documentation,
<strong>CanvasBackOpacity</strong> and <strong>CanvasBackground</strong> are
@@ -209,7 +209,7 @@
</ul>
<h3>Version 5.0 (26/Nov/2007)</h3>
<ul>
- <li><span style="color: #0000FF">New:</span> attributes &quot;OPAQUE&quot;, &quot;PATTERN&quot;
+ <li><span style="color: #0000FF">New:</span> attributes &quot;OPACITY&quot;, &quot;PATTERN&quot;
and &quot;PDF&quot;&nbsp;in the CD_PDF driver.</li>
<li><span style="color: #0000FF">New:</span> XRender base driver.</li>
<li><span style="color: #008000">Changed:</span> PDF Lite library updated to
diff --git a/src/svg/cdsvg.c b/src/svg/cdsvg.c
index 11f5bb3..90e70d9 100644
--- a/src/svg/cdsvg.c
+++ b/src/svg/cdsvg.c
@@ -878,7 +878,7 @@ static void cdpixel(cdCtxCanvas *ctxcanvas, int x, int y, long int color)
unsigned char r, g, b;
cdDecodeColor(color, &r, &g, &b);
- fprintf(ctxcanvas->file, "<circle cx=\"%d\" cy=\"%d\" r=\"0.1\" style=\"fill:rgb(%d,%d,%d); stroke:none; opacity:%g\" />\n",
+ fprintf(ctxcanvas->file, "<circle cx=\"%d\" cy=\"%d\" r=\"0.5\" style=\"fill:rgb(%d,%d,%d); stroke:none; opacity:%g\" />\n",
x, y, r, g, b, ctxcanvas->opacity);
}
@@ -1017,6 +1017,7 @@ static void cdcreatecanvas(cdCanvas *canvas, void *data)
cdRegisterAttribute(canvas, &cmd_attrib);
cdRegisterAttribute(canvas, &hatchboxsize_attrib);
+ cdRegisterAttribute(canvas, &opacity_attrib);
fprintf(ctxcanvas->file, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
fprintf(ctxcanvas->file, "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"%dpt\" height=\"%dpt\" viewBox=\"0 0 %d %d\" version=\"1.1\">\n", canvas->w, canvas->h, canvas->w, canvas->h);