Picking Color from window

This is a discussion on Picking Color from window within the C++ Programming forums, part of the General Programming Boards category; Hello, I am making this small paint program in C++ using Win32 API and GDI. So far I am able ...

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    11

    Picking Color from window

    Hello, I am making this small paint program in C++ using Win32 API and GDI. So far I am able to use GDI to paint on window.
    I want to allow user to pick color from window, just like 'Pick Color' tool in MS Paint. Is there anyway to do this?

  2. #2
    Registered User
    Join Date
    Mar 2010
    Posts
    11
    YAYYYY! GetPixel function worked like a charm.
    Mods can lock this topic. lol

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 07:14 AM
  2. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  3. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 10:06 AM
  4. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  5. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM

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