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.
98 lines
5.6 KiB
C
98 lines
5.6 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
|
|
*
|
|
* gimpdrawablecolor_pdb.h
|
|
*
|
|
* This library is free software: you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see
|
|
* <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/* NOTE: This file is auto-generated by pdbgen.pl */
|
|
|
|
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
|
|
#error "Only <libgimp/gimp.h> can be included directly."
|
|
#endif
|
|
|
|
#ifndef __GIMP_DRAWABLE_COLOR_PDB_H__
|
|
#define __GIMP_DRAWABLE_COLOR_PDB_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
gboolean gimp_drawable_brightness_contrast (gint32 drawable_ID,
|
|
gdouble brightness,
|
|
gdouble contrast);
|
|
gboolean gimp_drawable_color_balance (gint32 drawable_ID,
|
|
GimpTransferMode transfer_mode,
|
|
gboolean preserve_lum,
|
|
gdouble cyan_red,
|
|
gdouble magenta_green,
|
|
gdouble yellow_blue);
|
|
gboolean gimp_drawable_colorize_hsl (gint32 drawable_ID,
|
|
gdouble hue,
|
|
gdouble saturation,
|
|
gdouble lightness);
|
|
gboolean gimp_drawable_curves_explicit (gint32 drawable_ID,
|
|
GimpHistogramChannel channel,
|
|
gint num_values,
|
|
const gdouble *values);
|
|
gboolean gimp_drawable_curves_spline (gint32 drawable_ID,
|
|
GimpHistogramChannel channel,
|
|
gint num_points,
|
|
const gdouble *points);
|
|
gboolean gimp_drawable_desaturate (gint32 drawable_ID,
|
|
GimpDesaturateMode desaturate_mode);
|
|
gboolean gimp_drawable_equalize (gint32 drawable_ID,
|
|
gboolean mask_only);
|
|
gboolean gimp_drawable_histogram (gint32 drawable_ID,
|
|
GimpHistogramChannel channel,
|
|
gdouble start_range,
|
|
gdouble end_range,
|
|
gdouble *mean,
|
|
gdouble *std_dev,
|
|
gdouble *median,
|
|
gdouble *pixels,
|
|
gdouble *count,
|
|
gdouble *percentile);
|
|
gboolean gimp_drawable_hue_saturation (gint32 drawable_ID,
|
|
GimpHueRange hue_range,
|
|
gdouble hue_offset,
|
|
gdouble lightness,
|
|
gdouble saturation,
|
|
gdouble overlap);
|
|
gboolean gimp_drawable_invert (gint32 drawable_ID,
|
|
gboolean linear);
|
|
gboolean gimp_drawable_levels (gint32 drawable_ID,
|
|
GimpHistogramChannel channel,
|
|
gdouble low_input,
|
|
gdouble high_input,
|
|
gboolean clamp_input,
|
|
gdouble gamma,
|
|
gdouble low_output,
|
|
gdouble high_output,
|
|
gboolean clamp_output);
|
|
gboolean gimp_drawable_levels_stretch (gint32 drawable_ID);
|
|
gboolean gimp_drawable_posterize (gint32 drawable_ID,
|
|
gint levels);
|
|
gboolean gimp_drawable_threshold (gint32 drawable_ID,
|
|
GimpHistogramChannel channel,
|
|
gdouble low_threshold,
|
|
gdouble high_threshold);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GIMP_DRAWABLE_COLOR_PDB_H__ */
|