To lighten the image, you can apply a white mist on it:
Bitmap bmp = new Bitmap(@"Image.png"); Rectangle r = new Rectangle(0, 0, bmp.Width, bmp.Height); alpha = 128 using (Graphics g = Graphics.FromImage(bmp)) { using (Brush cloud_brush = new SolidBrush(Color.FromArgb(alpha, Color.White))) { g.FillRectangle(cloud_brush, r); } } bmp.Save(@"Light.png");
The alpha value can range from 0 to 255. 0 means that the effect is completely transparent, which leads to the original image. 255 means that the effect is completely opaque, resulting in a solid white rectangle. Here the effect is shown at 128.

To darken an image, you can apply black haze on it:
Bitmap bmp = new Bitmap(@"Image.png"); Rectangle r = new Rectangle(0, 0, bmp.Width, bmp.Height); alpha = 128 using (Graphics g = Graphics.FromImage(bmp)) { using (Brush cloud_brush = new SolidBrush(Color.FromArgb(alpha, Color.Black))) { g.FillRectangle(cloud_brush, r); } } bmp.Save(@"Dark.png");
The alpha value can range from 0 to 255. 0 means that the effect is completely transparent, which leads to the original image. 255 means that the effect is completely opaque, resulting in a solid black rectangle. Here the effect is shown at 128.

source share