How to Perform XOR from Graphics2D in SVGGraphics2D
Graphics2D g2D = (Graphics2D) svgGraphics2D;
// Using white as the XOR color.
g2D.setXORMode(Color.white);
// Draw two overlapping rectangles.
Rectangle2D r = new Rectangle2D.Double(50, 50, 150, 100);
g2D.setPaint(Color.BLACK);
g2D.fill(r);
g2D.transform(AffineTransform.getTranslateInstance(25, 25));
g2D.fill(r);
sout-> XOR Mode is not supported by Graphics2D SVG Generator
Is there a simple convert, or can I check while drawing a Pixel if its already Black. I Need to perform Black and White Overlapping for Fonts, BufferedImages, ... too. So I cant just .setPaint().