[C#]
using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/andreas-dress-Iw12lY3koDk-unsplash.jpg"))) {
Effects.Brightness(bm, 20);
bm.Save(Server.MapPath("IG8_Effects_Brightness1.jpg"));
}
using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/andreas-dress-Iw12lY3koDk-unsplash.jpg"))) {
Effects.Brightness(bm, -20);
bm.Save(Server.MapPath("IG8_Effects_Brightness2.jpg"));
}
using (Bitmap bm = (Bitmap)Bitmap.FromFile(Server.MapPath("rez/andreas-dress-Iw12lY3koDk-unsplash.jpg"))) {
Effects.Brightness(bm, 60);
bm.Save(Server.MapPath("IG8_Effects_Brightness3.jpg"));
}
Here we apply a brightness effect with different amounts of
brightness. Ouput files are shown below.
andreas-dress-Iw12lY3koDk-unsplash.jpg
IG8_Effects_Brightness1.jpg
IG8_Effects_Brightness2.jpg
IG8_Effects_Brightness3.jpg
|