title: Changing colors of pixels in forum application C#
body: <p>I am creating a extremely basic image editor, and trying to set a value for a color (R,G,B) numerically. For example, here is an fragment of my code:</p>
  
  <pre><code>for (int row = 0; row &lt; thePicture.Width; row = row + 1)
  {
      for (int col = 0; col &lt; thePicture.Height; col = col + 1)
      {
          Color pixel = thePicture.GetPixel(row, col);
  
          pixel = Color.FromArgb(5 + pixel.R, 5 + pixel.G, 5 + pixel.B);
          //+5 is making the image darker... I think
          if (pixel.R &gt; 255)//This is used to prevent the program from crashing
          {
              pixel.R = //is this possible? or another way? I am intending
          }             //Make this 255                    
          thePicture.SetPixel(row, col, pixel);
      }
  }
  </code></pre>
  
  <p>Take mind that it's in windows forum.
  Nothhing too advanced please, very basic understanding of C#. Thanks</p>