---
title: "ColorAdjustmentProvider..::.BrightnessContrast Method (array&lt;Boolean&gt;[]()[], Single, Single)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorAdjustmentProvider_BrightnessContrast_3_975e932c.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/)

# ColorAdjustmentProvider.BrightnessContrast Method (Boolean[], Single, Single)
 
Adjusts image brightness and contrast in single pass.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub BrightnessContrast ( _channels As Boolean(), _brightnessAmount As Single, _contrastAmount As Single _
)
```
 
```csharp
public void 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.

 - brightnessAmount
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Value in range [-1, 1] that specifies brightness modifier.

 - contrastAmount
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Value in range [-1, 1] that specifies contrast modifier.
 
## Remarks
  
You can also use [BrightnessContrast](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_BrightnessContrast.htm.md) class to apply this correction.
 
Both *brightnessAmount* and *contrastAmount* are normalized to 1. Depending on pixel format they are scaled to 255 or 65355 inside of the method.
   
## See Also

### Reference

- [ColorAdjustmentProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorAdjustmentProvider.htm.md)
- [BrightnessContrast Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ColorAdjustmentProvider_BrightnessContrast.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
