curves_spline


Description:

[ Version ( deprecated = true , deprecated_since = "3.2" , since = "2.10" ) ]
public bool curves_spline (HistogramChannel channel, double[] points)

Warning: curves_spline is deprecated since 3.2.

Modifies the intensity curve(s) for specified drawable.

Note:

Use filter "gimp:curves" instead.

Modifies the intensity mapping for one channel in the specified this. The channel can be either an intensity component, or the value.

The points parameter is an array of doubles in the range `[0, 1]` which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Since every point has 2 coordinates, the size of points ( points.length) must be a multiple of 2, equal or bigger than 4 (i.e. a minimum of 2 points).

Use [method@Gimp.Drawable.curves_explicit] to explicitly modify intensity levels.

Parameters:

this

The drawable.

channel

The channel to modify.

points

The spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }.

num_coordinates

The number of coordinates (2 per points) in the control point array.

Returns:

TRUE on success.