Auto Contrast

View as Markdown

BitmapColor Adjustment

Adjusts contract automatically.

Code Snippet

using (var bitmap = new Bitmap("Chicago.jpg"))
{
    bitmap.ColorAdjustment.AutoContrast();

    bitmap.Save("AutoContrast.jpg");
}

Input

Chicago.jpg

Chicago.jpg

Output

AutoContrast.jpg

AutoContrast.jpg

Used APIs