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:
  • 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:
    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))

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