Need Help With GetPixel

This is a discussion on Need Help With GetPixel within the Windows Programming forums, part of the Platform Specific Boards category; how would i say GetPixel to all the screen and not just the hWnd Window thats taken with GetDC(); because ...

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

    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, 03:57 PM
  5. GetPixel return value
    By Garfield in forum Windows Programming
    Replies: 7
    Last Post: 11-14-2001, 12:18 AM

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