setXORMode(Color xorColor)......help required!!!!
i was working with graphics when i came along with setXORMode method.......i got to know that it is used to overwrite the current object,e.g.if the background is black and i draw a line that moves with my cursor then that line will not going to appear on screen.....but if i use setXORMode method,the line will be seen.....but i want to know the working of setXORMode method and how the colour of the overlapping object is decided??? please help me in this regard,thank you in advance.....
Re: setXORMode(Color xorColor)......help required!!!!
Graphics (Java Platform SE 6)
Color c = new Color (oldcolor.red ^ newcolor.red, oldcolor.green ^ newcolor.green, oldcolor.blue ^ newcolor.blue);