Results 1 to 2 of 2
  1. #1
    Cosmos is offline Member
    Join Date
    Jul 2011
    Location
    New Delhi,India
    Posts
    56
    Rep Power
    0

    Exclamation 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.....

  2. #2
    eRaaaa is offline Senior Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    787
    Rep Power
    5

    Default 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);

Similar Threads

  1. [COLOR="Navy"]execute .bat file in mysql [/COLOR]
    By msankar.ravi in forum Networking
    Replies: 0
    Last Post: 02-24-2010, 04:27 AM
  2. Help required!!!!
    By sat27 in forum Threads and Synchronization
    Replies: 2
    Last Post: 12-05-2009, 11:29 PM
  3. help required
    By anny051 in forum New To Java
    Replies: 2
    Last Post: 07-31-2009, 04:05 AM
  4. what is required for EJB
    By mmc18 in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 07-15-2008, 06:16 PM
  5. Blx.tld required
    By anki1234 in forum JavaServer Pages (JSP) and JSTL
    Replies: 5
    Last Post: 01-24-2008, 04:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •