Color and Tone Correction

Graphics Mill provides a number of algorithms to correct the bitmap colors and tone range. Topics in this section demonstrate how to use these algorithms.

All tone and color adjusting operations in Graphics Mill can be applied in two ways:

  • Using the ColorAdjustmentProvider class associated with the Bitmap. The following code snippet illustrates this approach using the Brightness(Single) method which is described in the Brightness and Contrast topic:
    C#
    bitmap.ColorAdjustment.Brightness(0.2f);
    
  • Using an appropriate transform class from the Aurigma.GraphicsMill.Transforms namespace. The code example below demonstrates this approach using the similar Brightness transform, which is also described in the Brightness and Contrast topic:
    C#
    using (var bitmap = new Bitmap(@"Images\in.jpg"))
    using (var brightness = new Brightness())
    {
        brightness.Auto = false;
        brightness.Amount = 0.2f;
    
        using (var newbitmap = brightness.Apply(bitmap))
            newbitmap.Save(@"Images\Output\out.jpg");
    }
    

Below you can find an overview of tone and color correction techniques implemented in Graphics Mill as well as code examples for both techniques.

In This Section

Brightness and Contrast
Advanced Tone Correction
Color Adjustment