---
title: "BrightnessContrast Constructor (array&lt;Boolean&gt;[]()[], Single, Single)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_BrightnessContrast_ctor_3_4be20b7a.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# BrightnessContrast Constructor (Boolean[], Single, Single)
 
Creates new [BrightnessContrast](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_BrightnessContrast.htm.md) class instance. Here you can specify what channels to process with this transform and brigthness/contrast modifiers.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub New ( _channels As Boolean(), _brightnessAmount As Single, _contrastAmount As Single _
)
```
 
```csharp
public BrightnessContrast(bool[] channels,float brightnessAmount,float contrastAmount
)
```
 
### Parameters
 
 - channels
     - Type:  [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50) []
Array of flags specifying what channels to apply effect at. If array item is **true**, transform will be applied at channel with appropriate index. Otherwise this channel is skipped. You can change to this array later through the property [Channels](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_PerChannelBitmapTransform_Channels.htm.md).

 - brightnessAmount
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Brightness modifier value varying in range [-1, 1]. You can change this value later through property [BrightnessAmount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_BrightnessContrast_BrightnessAmount.htm.md).

 - contrastAmount
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Contrast modifier value varying in range [-1, 1]. Minimum value (-1) will produce absolutely gray image, neutral value (0) does no effect, maximum value (1) makes the image extremely posterized. You can change this value later through property [ContrastAmount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_BrightnessContrast_ContrastAmount.htm.md).
   
## See Also

### Reference

- [BrightnessContrast Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_BrightnessContrast.htm.md)
- [BrightnessContrast Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_BrightnessContrast_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
