Gimp.Drawable.prototype.levels
function levels(channel: Gimp.HistogramChannel, low_input: Number(gdouble), high_input: Number(gdouble), clamp_input: Boolean, gamma: Number(gdouble), low_output: Number(gdouble), high_output: Number(gdouble), clamp_output: Boolean): Boolean {
// Gjs wrapper for gimp_drawable_levels()
}
Modifies intensity levels in the specified drawable.
This tool allows intensity levels in the specified drawable to be remapped according to a set of parameters. The low/high input levels specify an initial mapping from the source intensities. The gamma value determines how intensities between the low and high input intensities are interpolated. A gamma value of 1.0 results in a linear interpolation. Higher gamma values result in more high-level intensities. Lower gamma values result in more low-level intensities. The low/high output levels constrain the final intensity mapping--that is, no final intensity will be lower than the low output level and no final intensity will be higher than the high output level. This tool is only valid on RGB color and grayscale images.
Since 2.10
- channel
The channel to modify.
- low_input
Intensity of lowest input.
- high_input
Intensity of highest input.
- clamp_input
Clamp input values before applying output levels.
- gamma
Gamma adjustment factor.
- low_output
Intensity of lowest output.
- high_output
Intensity of highest output.
- clamp_output
Clamp final output values.
- Returns
TRUE on success.