Transforming a path/points within a path (SVGOMPathElement)

Joscha Feth <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <CAJNLcX1yR980SnxSEVW+TNQmav4o6WqG-Xsg8g=Gmr+UOBxsyw@mail.gmail.com>
Hello,

can anyone give me a hint on how to resize an SVGOMPathElement, e.g. the
"d" part of an SVG "path" element.
But not by wrapping it in a transform operation, but actually transforming
the points, e.g.:
<path id="add"
d="M28,14c-7.732,0-14,6.268-14,14s6.268,14,14,14C35.732,42,42,35.732,42,28S35.732,14,28,14z
M35,30.002h-5v5H26
        v-5h-5V26h5v-5H30v5h5V30.002z"/>

to

<path
   d="M 625,-125 C 279.82143,-125 -2e-6,154.82143 -2e-6,500 -2e-6,845.17857
279.82143,1125 625,1125 c 345.17857,0 625,-279.82143 625,-625 0,-345.17857
-279.82143,-625 -625,-625 z M 937.49999,589.375 H 714.28571 V 812.58928 H
535.71428 V 589.375 H 312.5 V 410.71428 H 535.71428 V 187.5 H 714.28571 V
410.71428 H 937.49999 V 589.375 z"
   id="add" />

(scaled from x to 1000pt, keeping the ratio)

Is this possible with batik? I tried

        SVGRect rect = path.getBBox();
        rect.setHeight(1000);
        rect.setWidth(1000);

but the rect seems to be readonly for paths?!

Cheers,
Joscha
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.