This documentation is for the old version. Go to the latest Graphics Mill docs

ColorAdjustmentProvider.Curves Method (Boolean[], PointF[])

Applies tone correction using specified curve (analogue to Adobe® Photoshop® Curves command).

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub Curves ( _
	channels As Boolean(), _
	points As PointF() _
)
C#
public void Curves(
	bool[] channels,
	PointF[] points
)

Parameters

channels

Type: System.Boolean []

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 []

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 class to apply this correction.

See Also

Reference