Gimp.context_set_sample_criterion

function context_set_sample_criterion(sample_criterion: Gimp.SelectCriterion): Boolean {
    // Gjs wrapper for gimp_context_set_sample_criterion()
}
  

Set the sample criterion setting.

Modifies the sample criterion setting. If an operation depends on the colors of the pixels present in a drawable, like when doing a seed fill, this setting controls how color similarity is determined. SELECT_CRITERION_COMPOSITE is the default value.

This setting affects the following procedures: Gimp.Image.prototype.select_color, Gimp.Image.prototype.select_contiguous_color, Gimp.Drawable.prototype.edit_bucket_fill.

Since 2.8

sample_criterion

The sample criterion setting.

Returns

TRUE on success.