css4j / echosvg

SVG implementation in the Java™ Language, fork of Apache Batik, supporting level 4 selectors and colors.
Apache License 2.0
39 stars 2 forks source link

GraphicsNode and opacity #93

Closed ggblatz closed 9 months ago

ggblatz commented 9 months ago

Hi, I use node.paint(g) method to display aGraphicsNode, but if g has a composite set, it seems to be ignored. However, node has a setComposite() method, so

node.setComposite(g.getComposite());
node.paint(g);

works. Are these two steps intentional? Thanks.

carlosame commented 9 months ago

Are these two steps intentional?

I did not write that code, but yes the composite is supposed to be explicitly set at the GraphicsNode.

Moving this to a discussion as it is not an issue.