Reading screen colors..

This is a discussion on Reading screen colors.. within the C Programming forums, part of the General Programming Boards category; Is there a way to read the colors shown on the screen? I mean, in a certain x and y ...

  1. #1
    C/C++ Learner & Lover
    Join Date
    Aug 2008
    Location
    Argentina
    Posts
    193

    Reading screen colors..

    Is there a way to read the colors shown on the screen? I mean, in a certain x and y from the hole screen, check it's colour

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    GetPixel()

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Wait. What OS?

  4. #4
    C/C++ Learner & Lover
    Join Date
    Aug 2008
    Location
    Argentina
    Posts
    193
    Linux, ubuntu, which library includes that function?

  5. #5
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Check this out. Though I don't have any hands on experience needing to do this in linux.

  6. #6
    C/C++ Learner & Lover
    Join Date
    Aug 2008
    Location
    Argentina
    Posts
    193
    That's the gtk library for python, I'll look on the c one..
    If you can check my code later

  7. #7
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Oh yeah! I keep getting the reminders. Ironically enough I only log into the boards when I am at school, and at home is where I have your code. I am writing a note to myself in my PDA now so that I don't forget, ok

  8. #8
    C/C++ Learner & Lover
    Join Date
    Aug 2008
    Location
    Argentina
    Posts
    193
    I can't find any other libraries for this, any ideas?

  9. #9
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Doesn't ncurses have functions like that?

  10. #10
    C/C++ Learner & Lover
    Join Date
    Aug 2008
    Location
    Argentina
    Posts
    193
    Don't think so, I mean reading pixels outside the window, like clicking anywhere in the screen.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. console screen (Windows)
    By hakan in forum C++ Programming
    Replies: 1
    Last Post: 03-12-2008, 07:35 AM
  2. Render text
    By Livijn in forum C++ Programming
    Replies: 6
    Last Post: 07-06-2007, 04:32 PM
  3. Capturing Screen w/GDI (8 BPP)
    By nfantone in forum C++ Programming
    Replies: 11
    Last Post: 05-05-2007, 04:44 PM
  4. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 03:41 AM
  5. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 01:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21