Results 1 to 4 of 4
  1. #1
    Drizzt92 is offline Member
    Join Date
    Oct 2014
    Posts
    2
    Rep Power
    0

    Question take background main color

    hi,
    i want to take windows 8 backround main color to send it to arduino board and RGB led represent the color that i send. The conection with arduino is not a problem but i dont know what i have to do to read windows background color.
    thanks for help

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: take background main color

    I have no idea what that means, "windows 8 background main color". What specifically are you referring to?

    Note that questions that are operating system specific tend to have no easy solution when using a platform independent programming environment such as Java. So any question starting with "I need the Windows xxx" tend to be something you don't really want in a Java application.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    Drizzt92 is offline Member
    Join Date
    Oct 2014
    Posts
    2
    Rep Power
    0

    Default Re: take background main color

    for example: if i have blue background image i want to recognize the blue of the background and send it. I know that is dificult using java. ¿What should the best way to solve it?

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: take background main color

    I am not qualified to say what the best way is, a way that works is more than enough.

    Possibly using the Robot class you might take a screenshot and then sample a pixel from that?

    Robot (Java Platform SE 7 )
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Console background color
    By marsbar in forum New To Java
    Replies: 5
    Last Post: 04-01-2014, 12:47 PM
  2. New to Java, background color help
    By Estvan in forum New To Java
    Replies: 4
    Last Post: 10-22-2012, 04:03 AM
  3. button background color
    By new2java2009 in forum AWT / Swing
    Replies: 1
    Last Post: 02-11-2012, 05:26 AM
  4. How to change background color
    By Jeffrey4u in forum Sun Java Wireless Toolkit
    Replies: 0
    Last Post: 10-22-2011, 08:32 AM
  5. window background color?
    By javan00b in forum New To Java
    Replies: 3
    Last Post: 01-29-2008, 10:43 AM

Tags for this Thread

Posting Permissions

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