class MyImageMatrix
{
public MyImageMatrix()
{
} public static Bitmap onChange(Bitmap bmp)
{
ImageAttributes ia = new ImageAttributes();
ia.SetGamma(2.2f);
Bitmap temp = new Bitmap(bmp.Width, bmp.Height); Graphics g = Graphics.FromImage(bmp); g.DrawImage(bmp, new Rectangle(new Point(0, 0), bmp.Size), 0, 0, bmp.Width, bmp.Height, GraphicsUnit.Pixel, ia);
g.Dispose();
return temp; }
}
{
public MyImageMatrix()
{
} public static Bitmap onChange(Bitmap bmp)
{
ImageAttributes ia = new ImageAttributes();
ia.SetGamma(2.2f);
Bitmap temp = new Bitmap(bmp.Width, bmp.Height); Graphics g = Graphics.FromImage(bmp); g.DrawImage(bmp, new Rectangle(new Point(0, 0), bmp.Size), 0, 0, bmp.Width, bmp.Height, GraphicsUnit.Pixel, ia);
g.Dispose();
return temp; }
}