title: GetPixel method is not found
body: <p>I have a simple program, and ive included System.Drawing and I do not have an ability to use the GetPixel() method. It says its not found. What could be the reason for this?</p>
  
  <pre><code>using System.Drawing;
  
  namespace isolatepixels
  {
      class Program
      {
          static void Main(string[] args)
          {
  
              System.Drawing.Image image1 = System.Drawing.Image.FromFile(@"C:\1.jpg");
  
              int x, y;
  
              // Loop through the images pixels to reset color. 
              for (x = 0; x &lt; image1.Width; x++)
              {
                  for (y = 0; y &lt; image1.Height; y++)
                  {
                      Color pixelColor = image1.GetPixel(x, y);
                      Color newColor = Color.FromArgb(pixelColor.R, 0, 0);
                      image1.SetPixel(x, y, newColor);
                  }
              }
  
  
  
          }
      }
  }
  </code></pre>