How does the XOR drawing mode work? What are the properties of XOR drawing?
How does the XOR drawing mode work? What are the properties of XOR drawing? setXORMode(Color c1) sets the paint mode of this graphics context to alternate between a graphics context's current color and the new specified color.
The state information that a graphics object encapsulates includes the following properties:
- The Component object on which to draw. - A translation origin for rendering and clipping coordinates. - The current clip. - The current color. - The current font. - The current logical pixel operation function (XOR or Paint). - The current XOR alternation color (see setXORMode(java.awt.Color)).
|