---
title: "ColorAdjustmentProvider..::.ChannelBalance Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorAdjustmentProvider_ChannelBalance_1_10d237e6.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.ChannelBalance Method 
 
Adjusts balance between color channels (by adding a constant to each channel).
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub ChannelBalance ( _levels As Single() _
)
```
 
```csharp
public void ChannelBalance(float[] levels
)
```
 
### Parameters
 
 - levels
     - Type:  [System.Single](http://msdn2.microsoft.com/en-us/3www918f) []
Each entry of array is a value varying in range [-1, 1].
 
## Remarks
  
You can also use [ChannelBalance](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_ChannelBalance.htm.md) class to apply this correction.
 
All values from *levels* parameter are normalized to 1. Depending on pixel format they are scaled to 255 or 65355 inside of the method.
 
## Examples
  
```
Dim channelBalance As New Aurigma.GraphicsMill.Transforms.ChannelBalance
'Picture has Format24bppRgb pixel format
'R: 0.2F  G: -0.1F  B: 0.05F
channelBalance.Levels = New Single(2) {0.2F, -0.1F, 0.05F}
channelBalance.ApplyTransform(bitmap)
```
 
```csharp
//Picture has Format24bppRgb pixel format
//R: 0.2F  G: -0.1F  B: 0.05F
bitmap.ColorAdjustment.ChannelBalance(new Single[3] {0.2F, -0.1F, 0.05F});
```
   
## See Also

### Reference

- [ColorAdjustmentProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorAdjustmentProvider.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
