get_sample


Description:

[ Version ( since = "3.2" ) ]
public double get_sample (double x)

Gets the ordinate y value corresponding to the passed x abscissa value, in a [enum@Gimp.

CurveType.FREE] this.

Note that while the y coordinate will be stored exactly, the x coordinate will be rounded to the closest curve sample on the abscissa. The more sample was set with [method@Gimp.Curve.set_n_samples], the more precise the rounding will be.

Parameters:

this

the Curve.

x

an abscissa on a `[0.0, 1.0]` range.