context_set_distance_metric


Description:


[ Version ( since = "2.10" ) ]
public bool context_set_distance_metric (DistanceMetric metric)

Set the distance metric used in some computations.

Modifies the distance metric used in some computations, such as edit_gradient_fill. In particular, it does not change the metric used in generic distance computation on canvas, as in the Measure tool.

This setting affects the following procedures: edit_gradient_fill.

Parameters:

metric

The distance metric.

Returns:

TRUE on success.


Namespace: Gimp
Package: gimp-3.0