# 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

```
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: CurveThe resulting curve, where min <= result(x) <= max

Show: