Aurigma Graphics Mill 5.5 for .NET
BrightnessContrast Class
This class enables you to correct brightness and contrast of the image.
Namespace:
Aurigma.GraphicsMill.Transforms
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Visual Basic
Public NotInheritable Class BrightnessContrast _ Inherits PerChannelBitmapTransform
C#
public sealed class BrightnessContrast : PerChannelBitmapTransform
Remarks
This class provides simple brightness and contrast adjustment functionality. Being extremely easy-to-use for end user, it is used by professional retouchers very seldom (because as usual it leads to losses of details in highlights and/or shadows).
It provides two parameters - brightness modifier (BrightnessAmount property) and contrast modifier (ContrastAmount property).
If you want to modify only brightness or contrast, you can use Brightness or Contrast transform. It will work slightly faster.
Examples
Visual Basic
Dim brightnessContrast As New Aurigma.GraphicsMill.Transforms.BrightnessContrast brightnessContrast.BrightnessAmount = 0.2F brightnessContrast.ContrastAmount = -0.1F brightnessContrast.ApplyTransform(bitmap)
C#
Aurigma.GraphicsMill.Transforms.BrightnessContrast brightnessContrast =
new Aurigma.GraphicsMill.Transforms.BrightnessContrast();
brightnessContrast.BrightnessAmount = 0.2f;
brightnessContrast.ContrastAmount = -0.1f;
brightnessContrast.ApplyTransform(bitmap);
Inheritance Hierarchy
System..::.Object
L
Aurigma.GraphicsMill..::.SyncHandler
L
Aurigma.GraphicsMill..::.UnitConverterHandler
L
Aurigma.GraphicsMill.Transforms..::.BitmapTransform
L
Aurigma.GraphicsMill.Transforms..::.MaskedBitmapTransform
L
Aurigma.GraphicsMill.Transforms..::.PerChannelBitmapTransform
L
Aurigma.GraphicsMill.Transforms..::.BrightnessContrast
Thread Safety
Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.
Supported Pixel Formats
| Member Name | Description |
|---|---|
| Format8bppGrayScale | 8 bits per pixel. Grayscale. 8 bits are used for luminosity level. |
| Format16bppGrayScale | 16 bits per pixel. Grayscale. All 16 bits are used for luminosity level (extended pixel format). |
| Format16bppAGrayScale | 16 bits per pixel. Grayscale with alpha channel. 8 bits are used for alpha channel and other 8 bits are used for luminosity level. |
| Format32bppAGrayScale | 32 bits per pixel. Grayscale with alpha channel. 16 bits are used for alpha channel and other 16 bits are used for luminosity level (extended pixel format). |
| Format24bppRgb | 24 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. |
| Format32bppRgb | 32 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. The rest 8 bits are unused. |
| Format32bppArgb | 32 bits per pixel. RGB with alpha channel. 8 bits each are used for the alpha, red, green, and blue components. |
| Format48bppRgb | 48 bits per pixel. RGB. 16 bits each are used for the red, green, and blue components (extended pixel format). |
| Format64bppArgb | 64 bits per pixel. RGB with alpha channel. 16 bits each are used for the alpha, red, green, and blue components (extended pixel format). |
| Format32bppCmyk | 32 bits per pixel. CMYK. 8 bits each are used for the cyan, magenta, yellow, and black components. |
| Format64bppCmyk | 64 bits per pixel. CMYK. 16 bits each are used for the cyan, magenta, yellow, and black components (extended pixel format). |
| Format80bppAcmyk | 80 bits per pixel. CMYK with alpha channel. 16 bits each are used for the alpha, cyan, magenta, yellow, and black components (extended pixel format). |