Gimp.Drawable.levels

@accepts(Gimp.Drawable, Gimp.HistogramChannel, float, float, bool, float, float, float, bool)
@returns(bool)
def levels(self, channel, low_input, high_input, clamp_input, gamma, low_output, high_output, clamp_output):
    # Python 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

self

The drawable.

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