Curve.Interpolate Method (Curve, Curve, Double, Curve)
Interpolates between two curves and stores the result in a new or existing curve.
Namespace: Lumia.Imaging.Adjustments
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version: 255.255.255.255
Syntax
public static Curve Interpolate(
Curve curve1,
Curve curve2,
double alpha,
Curve resultCurve
)
'Declaration
Public Shared Function Interpolate (
curve1 As Curve,
curve2 As Curve,
alpha As Double,
resultCurve As Curve
) As Curve
public:
static Curve^ Interpolate(
[InAttribute] Curve^ curve1,
[InAttribute] Curve^ curve2,
[InAttribute] double alpha,
[InAttribute] Curve^ resultCurve
)
Lumia.Imaging.Adjustments.Curve.Interpolate = function(curve1, curve2, alpha, resultCurve);
Parameters
- curve1
Type: Lumia.Imaging.Adjustments.Curve
The first operand curve.
- curve2
Type: Lumia.Imaging.Adjustments.Curve
The second operand curve.
- alpha
Type: System.Double
The alpha parameter that determines how the curves are interpolated. If alpha is 0 the resulting curve is equal to curve1. If alpha is 1 the resulting curve is equal to curve2.
- resultCurve
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) = curve1(x) * (1 - alpha) + curve2(x) * alpha.
Version Information
Lumia Imaging SDK
Supported in: 3.0, 2.0