get_n_points


Description:

[ Version ( since = "3.2" ) ]
public int get_n_points ()

Gets the number of points in a [enum@Gimp.

CurveType.SMOOTH] curve. Note that it will always be 0 for a [enum@Gimp.CurveType.FREE] curve.

This can later be used e.g. in [method@Gimp.Curve.get_point] as points are numbered from 0 (included) to the returned number (excluded).

Note that the Curve API is not thread-safe. So be careful that the information on the number of points is still valid when you use it (you may have added or removed points in particular).

Parameters:

this

the Curve.

Returns:

the number of points in a smooth curve.