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)).
Explain how to load an image from the net into my applet
How to load an image from the net into my applet...
Explain how to load an image from a file in a java application
How to load an image from a file in a java application - ImageIcon icon = createImageIcon('images/xyz.gif', 'text string');...
Difference between a Window and a Frame
Difference between a Window and a Frame - A frame is a resizable, movable window with title bar and close button. Usually it contains Panels...
Post your comment