---
title: "ColorAdjustmentProvider..::.Curves Method (array&lt;Boolean&gt;[]()[], array&lt;PointF&gt;[]()[])"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorAdjustmentProvider_Curves_2_858f5f6d.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.Curves Method (Boolean[], PointF[])
 
Applies tone correction using specified curve (analogue to Adobe® Photoshop® Curves command).
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Curves ( _channels As Boolean(), _points As PointF() _
)
```
 
```csharp
public void Curves(bool[] channels,PointF[] points
)
```
 
### 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.

 - points
     - Type:  [System.Drawing.PointF](http://msdn2.microsoft.com/en-us/ckys1c1e) []
Array of points used to build the curve.
 
## Remarks
  
Coordinates are normalized on 1. You specify values in range [0, 1] and they are stretched either to [0, 255] or [0, 65535] depending on pixel format (whether it is extended or not). Note, you still can specify values that are out of [0, 1] range, and algorithm automatically truncates the curve. If all points will be strictly inside of this range, algorithm will add points at:
 
- x equal to 0 and y equal to Y-coordinate of the leftmost point.
- x equal to 1 and y equal to Y-coordinate of the rightmost point.

You can also use [Curves](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Curves.htm.md) class to apply this correction.
   
## See Also

### Reference

- [ColorAdjustmentProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorAdjustmentProvider.htm.md)
- [Curves Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ColorAdjustmentProvider_Curves.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
