- About Graphics Mill
- What's New?
- Breaking Changes in Graphics Mill 12
- Breaking Changes in Graphics Mill 11
- Features
- Supported File Formats
- System Requirements
- Getting Started
- Working with Image Formats
- Transforming Images (Resize, Rotate, Crop)
- Working with Metadata
- Color Management and Color Reduction
- Drawing Text and Graphics
- Color Keying (Green Screen Removal)
- Channels and Pixel Data
- Color and Tone Correction
- Working with Photoshop (PSD) Files
- Image Filters
- Processing Large Images
- Basics of Image Processing
- Troubleshooting
- Class Library Reference
- Licensing
- End User License Agreement
- Copyright Notices
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