Thread: Need Help With GetPixel

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    319

    Need Help With GetPixel

    how would i say GetPixel to all the screen and not just the hWnd Window thats taken with
    GetDC();
    because i need to scan all the screen for a certain colour , like a icon ect
    then do a condtion if the colour match's
    can someone help me with this?

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    Code:
    HDC hdc = GetDC(HWND_DESKTOP); //equivalent to GetDC(NULL)
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GetPixel and getting a screenshot.
    By pur in forum Windows Programming
    Replies: 19
    Last Post: 03-27-2009, 02:29 AM
  2. GetPixel and CreateDC help. (winapi)
    By OpiateDelusion in forum Windows Programming
    Replies: 6
    Last Post: 08-19-2007, 08:15 AM
  3. GetPixel()
    By thedoofus in forum C Programming
    Replies: 1
    Last Post: 04-30-2006, 08:40 PM
  4. GetPixel with DISPLAY
    By phil_drew in forum Windows Programming
    Replies: 2
    Last Post: 04-01-2003, 04:57 PM
  5. GetPixel return value
    By Garfield in forum Windows Programming
    Replies: 7
    Last Post: 11-14-2001, 01:18 AM