---
title: "ColorAdjustmentProvider..::.BrightnessContrast Method (Single, Single)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorAdjustmentProvider_BrightnessContrast_2_427c5821.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 (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 ( _brightnessAmount As Single, _contrastAmount As Single _
)
```
 
```csharp
public void BrightnessContrast(float brightnessAmount,float contrastAmount
)
```
 
### Parameters
 
 - 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.
 
## Examples
  
```
bitmap.ColorAdjustment.BrightnessContrast(0.2F, -0.1F)
```
 
```csharp
bitmap.ColorAdjustment.BrightnessContrast(0.2F, -0.1F);
```
   
## 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)
