title: Getting pixel color in C++
body: <p>I would like to get the RGB values of a pixel at different x, y coordinates on the screen.
  How would I go about this in C++? </p>
  
  <p>I'm trying to create my own gaussian blur effect. </p>
  
  <p>This would be in Windows 7.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>What libraries need to be included for this to run? </p>
  
  <p>What I have going:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std ;
  
  int main(){
  
      HDC dc = GetDC(NULL);
      COLORREF color = GetPixel(dc, 0, 0);
      ReleaseDC(NULL, dc);
  
      cout &lt;&lt; color; 
  
  }
  </code></pre>