context_set_sample_threshold


Description:


[ Version ( since = "2.8" ) ]
public bool context_set_sample_threshold (double sample_threshold)

Set the sample threshold setting.

Modifies the sample threshold setting. If an operation depends on the colors of the pixels present in a drawable, like when doing a seed fill, this setting controls what is \"sufficiently close\" to be considered a similar color. If the sample threshold has not been set explicitly, the default threshold set in gimprc will be used.

This setting affects the following procedures: select_color, select_contiguous_color, edit_bucket_fill.

Parameters:

sample_threshold

The sample threshold setting.

Returns:

TRUE on success.


Namespace: Gimp
Package: gimp-3.0