Guido Kämper wrote:
i've experimented a little bit with the batik libraries and it's really
great, how easy you can achive the first results :-)
My sourcecode below merges two images from JSVGCanvas svg1, svg2 to
svgResult. The images have the same structure, but different colors
and text. in the mixed image only the colors of the second image are
used. It looks like a mixture of two 256 color images in old Windows
3.11 times :-(
Does SVG use palette colors or why do i get those errors?
Batik does not use palette colors, everything is 24bit color with
an 8bit alpha channel. My best guess is that there is some conflict
between the two documents you are trying to merge, for example if
they are using CSS classes to set color/style properties and the
class names are replicated between the two documents you might have
problems like this.
Providing the content in question might help solve the problem,
or a standalone test case.
Did anybody solve this problem yet?
Is there any way to force SVGs to use direct color codes like
#FF45F3 instead of names?
Sure:
<rect fill="#FF45F3" .../> -or-
<rect style="fill:#FF45F3" .../>
Both work.
So far I suspect the problem is with your content not with Batik.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]