Curve.Interpolate Method (CurveMinMaxPair, Double, Curve)

Interpolates between the min and the max curve.

Namespace: Lumia.Imaging.Adjustments
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version:

Lumia.Imaging.Adjustments.Curve.Interpolate = function(curveMinMaxPair, alpha, resultCurve);


Type: Lumia.Imaging.Adjustments.CurveMinMaxPair
The min-max curve pair.
Type: System.Double
The alpha parameter that determines how the curves are interpolated. If alpha is 0 the resulting curve is equal to the minCurve. If alpha is 1 the resulting curve is equal to maxCurve.
Type: Lumia.Imaging.Adjustments.Curve
Optional. If a curve is passed, the content is overwritten with the result of the operation, keeping the previously set interpolation mode. If null is passed, a new curve is created with the default interpolation mode.

Return Value

Type: Curve
The resulting curve, where result(x) = minCurve(x) * (1 - alpha) + maxCurve(x) * alpha.

Lumia Imaging SDK

Supported in: 3.0, 2.0