Curve.Interpolate3 Method (Curve, Curve, Curve, Double, Curve)

Interpolates between maxCurve and normCurve if alpha >= 0, otherwise between minCurve and normCurve.

If alpha is 1, the resulting curve is identical to maxCurve. If alpha is -1, the resulting curve is identical to minCurve. If alpha is 0, the resulting curve is equal to normCurve.

The result is stored in a new or existing curve.

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

Lumia.Imaging.Adjustments.Curve.Interpolate3 = function(maxCurve, normCurve, minCurve, alpha, resultCurve);


Type: Lumia.Imaging.Adjustments.Curve
The maxCurve.
Type: Lumia.Imaging.Adjustments.Curve
The normCurve.
Type: Lumia.Imaging.Adjustments.Curve
The minCurve.
Type: System.Double
The alpha parameter that determines how the curves are interpolated.
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) = maxCurve(x) * alpha + normCurve(x) * (1 - alpha), if alpha >= 0, result(x) = minCurve(x) * (-alpha) + normCurve(x) * (1 + alpha), if alpha < 0.

Lumia Imaging SDK

Supported in: 3.0, 2.0