Hi all,

I have problems getting the gradient of an object when parsing a SVG-File, e.g. this one here:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns:svg="http://www.w3.org/2000/svg"; xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";
        version="1.0">
        <title>SVGTest 003</title>
        <defs id="def0001">
                <linearGradient id="grad1">
<stop id="royalblue" style="stop-color:#4169E1;stop-opacity:1" offset="0" /> <stop id="papayawhip" style="stop-color:#FFEFD5;stop-opacity:1" offset="1" />
                </linearGradient>
        </defs>
        <rect width="500" height="200" x="10" y="250"
style="fill:url(#grad1);fill-opacity:1;fill-rule:evenodd;stroke:powderblue;stroke-width:5;" />
</svg>


The Parser gives me an SVGOMRectElement but I have no idea how to get the linear gradient of this rect. Can anyone please help me?

Best regards & thanks in advance,
Wolfram


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org

Reply via email to