You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Tonny Kohar <to...@gmail.com> on 2008/02/06 05:28:46 UTC

Re: Merging Paths

Hi.

On Jan 29, 2008 12:05 AM, jeffupt <je...@gmail.com> wrote:
>
> Is it possible to merge paths with batik?

Yes it is possible to merge path:
- using DOM API, just take the d value of the path and append it into
the d value or your intended path
- using Java geometry you can do more fun stuff like boolean operation
(union, subtract, etc), for Java geom you need to get the equivalent
of svg path into java GeneralPath and could use java Area class. To
get java GeneralPath/ExtendedGeneralPath, you could get it from the
Batik GVT

> ie. create one path that fills the
> same area as 2 original paths, with the stroke being along only the outer
> edge of the paths.

Not sure about this one, whether svg spec allow this (stroke being
only the outer edge)

Cheers
Tonny Kohar
-- 
Sketsa SVG Editor
imagine, design, create ...
http://www.kiyut.com

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