Java 如何在SVG路径元素中应用复合操作?
我想在SVG中实现复合操作,其中使用Path元素生成不同的图形形状。我的SVG包含分层结构(如堆栈)。这是我的SVGJava 如何在SVG路径元素中应用复合操作?,java,html,svg,composite,Java,Html,Svg,Composite,我想在SVG中实现复合操作,其中使用Path元素生成不同的图形形状。我的SVG包含分层结构(如堆栈)。这是我的SVG <svg xmlns="http://www.w3.org/2000/svg" style="left: 0px; top: 0px; width: 1812px; height: 995px; position: absolute;"> <g alignment-baseline="middle" fill-opacity="1" text-anchor="m
<svg xmlns="http://www.w3.org/2000/svg" style="left: 0px; top: 0px; width: 1812px; height: 995px; position: absolute;">
<g alignment-baseline="middle" fill-opacity="1" text-anchor="middle">
<g fill-opacity="1" transform="scale(5) rotate(0)">
<path fill="rgba(0, 0, 0, 1)" stroke="rgba(0, 0, 0, 1)" stroke-width="0.0621761"
d="M 0 59.9999
L 59.9999 59.9999
L 59.9999 0
L 0 0
L 0 59.9999 Z" />
<path fill="rgba(217, 217, 52, 1)" stroke="rgba(217, 217, 52, 1)" stroke-width="0.0621761"
d="M 0 59.9999
L 59.9999 59.9999
L 59.9999 0
L 0 0
L 0 59.9999 Z" />
<path fill="rgba(227, 227, 227, 1)" stroke="rgba(227, 227, 227, 1)" stroke-width="0.0621761"
d="M 23.1 41.0363
C 23.1 40.1526 22.3837 39.4363 21.5 39.4363
C 20.6163 39.4363 19.9 40.1526 19.9 41.0363
C 19.9 41.92 20.6163 42.6363 21.5 42.6363
C 22.3837 42.6363 23.1 41.92 23.1 41.0363
M 41.4481 41.0363
C 41.4481 40.1526 40.7318 39.4363 39.8481 39.4363
C 38.9644 39.4363 38.2481 40.1526 38.2481 41.0363
C 38.2481 41.92 38.9644 42.6363 39.8481 42.6363
C 40.7318 42.6363 41.4481 41.92 41.4481 41.0363 Z" />
</g>
</g>
</g>
我想应用复合运算,这样我就可以得到低于输出的结果
我在搜索帮助时发现一个代码,它不适用于复合操作
简单合成
这其实很简单。您只需要使用
。如果使用
原语,您可以读取每个层,然后将它们合成到您的核心内容中
应该对每个层应用哪些合成操作?