Bug 762443 - Levels tool Output Level sliders works incorrectly

Add "clamp-input" (which clamps the input values to [0..1])
and "clamp-output" (which clips the final result to [0..1]),
properties, parameters and GUI to:

- GimpLevelsConfig
- GimpOperationLevels
- The levels tool dialog
- The gimp_drawable_levels() PDB API

The old deprecated gimp_levels() PDB API now sets both clamping
options to TRUE which restores the 2.8 behavior.

Also reorder some stuff in GimpLevelsConfig and elsewhere so the
levels parameters are always in the same order.
This commit is contained in:
Michael Natterer
2018-01-02 18:42:21 +01:00
parent 221e18ab09
commit dce93c7d7e
10 changed files with 176 additions and 62 deletions

View File

@ -41,13 +41,17 @@ struct _GimpLevelsConfig
GimpHistogramChannel channel;
gdouble gamma[5];
gdouble low_input[5];
gdouble high_input[5];
gboolean clamp_input;
gdouble gamma[5];
gdouble low_output[5];
gdouble high_output[5];
gboolean clamp_output;
};
struct _GimpLevelsConfigClass