threshold


Description:

[ Version ( deprecated = true , deprecated_since = "3.2" , since = "2.10" ) ]
public bool threshold (HistogramChannel channel, double low_threshold, double high_threshold)

Warning: threshold is deprecated since 3.2.

Threshold the specified drawable.

Note:

Use filter "gimp:threshold" instead.

This procedures generates a threshold map of the specified drawable. All pixels between the values of 'low_threshold' and 'high_threshold', on the scale of 'channel' are replaced with white, and all other pixels with black.

Parameters:

this

The drawable.

channel

The channel to base the threshold on.

low_threshold

The low threshold value.

high_threshold

The high threshold value.

Returns:

TRUE on success.