Setting pixel color of BMP/JPG file in C#.
- by Jamie
Hi guys,
I'm trying to set a color of given pixel of the image.
Here is the code snippet
Bitmap myBitmap = new Bitmap(@"c:\file.bmp");
for (int Xcount = 0; Xcount < myBitmap.Width; Xcount++)
{
for (int Ycount = 0; Ycount < myBitmap.Height; Ycount++)
{
…