Hi,
you should have a look at Christian Graus' series of articles about bitmap manipulation in C#. This shows everything that you need to know:
Image Processing for Dummies with C# and GDI+ Part 1 - Per Pixel Filters[
^]
or for a very simple way to set a pixel in a pictureBox:
Bitmap bmp = (Bitmap)pictureBox1.Image;
bmp.SetPixel(5, 5, Color.White);
pictureBox1.Image = (Image)bmp;
Please note that
GetPixel
and
SetPixel
is very slow. You should have a look at Christian's article and see how he solves this issue using unsafe code.