Questions tagged [xor-drawing]

4 questions
5
votes
2 answers

How to draw a "not" colored text?

I'm looking for a way to draw text with inverted colors. For shapes, we have TPenMode that can be set to pmNot, but we can't do this for text. How can I do this instead?
Javid
  • 2,755
  • 2
  • 33
  • 60
4
votes
1 answer

Java Graphics disable xor mode

I know that g.setXORMode(Color c) enables XOR mode drawing. But how to disable this mode after setXORMode call?
2xMax
  • 1,639
  • 6
  • 21
  • 41
1
vote
2 answers

XOR Drawing in C#

I am a trying to learn C# .Net. I had written small (hobby) Analog Clock application in VB sometime ago(edit: VB6, to be precise), and I thought I will rewrite in C#.NET, as part of my learning process. In the VB application, I drew the hands of the…
Nivas
  • 18,126
  • 4
  • 62
  • 76
0
votes
1 answer

XOR Mode is not supported by Graphics2D SVG Generator

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,…