Curve.Clamp Method (Curve, Int32, Int32, Curve)
Clamps the y-values of the curve to the interval (min, max).
Namespace: Lumia.Imaging.Adjustments
Assembly: Lumia.Imaging (in Lumia.Imaging.dll) Version: 255.255.255.255
Syntax
public static Curve Clamp(
Curve curve,
int min,
int max,
Curve resultCurve
)
'Declaration
Public Shared Function Clamp (
curve As Curve,
min As Integer,
max As Integer,
resultCurve As Curve
) As Curve
public:
static Curve^ Clamp(
[InAttribute] Curve^ curve,
[InAttribute] int min,
[InAttribute] int max,
[InAttribute] Curve^ resultCurve
)
Lumia.Imaging.Adjustments.Curve.Clamp = function(curve, min, max, resultCurve);
Parameters
- curve
Type: Lumia.Imaging.Adjustments.Curve
The curve to reflect.
- min
Type: System.Int32
The min y-value
- max
Type: System.Int32
The max y-value
- 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 min <= result(x) <= max
Version Information
Lumia Imaging SDK
Supported in: 3.0, 2.0