How to set a pixel in a bitmap to white color?
<p>This does not work:</p>

<pre><code>Color col;
objBitmap = new Bitmap(Resource1.im);
col = Color.FromName("White");
// Perform an operation on the Color value here.
objBitmap.SetPixel(x, y, col);
</code></pre>

<p>When I load the image to a picture box control, it is still black (the pixel that should be white).</p>

<p>EDIT:</p>

<p>This is how I load the bitmap to a picture box control after editing it:</p>

<pre><code>objBitmap.Save(Resource1.im.ToString());

this.pictureBox2.Image = ResizeBitmap(Resource1.im, 100, 100);

objBitmap.Dispose();
</code></pre>
