gimpcolorspace.h 1.86 KB
Newer Older
1 2
/* LIBGIMP - The GIMP Library
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
Marc Lehmann's avatar
Marc Lehmann committed
3
 *
4
 * This library is free software: you can redistribute it and/or
5 6
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
7
 * version 3 of the License, or (at your option) any later version.
8 9 10 11
 *
 * 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
12
 * Library General Public License for more details.
Marc Lehmann's avatar
Marc Lehmann committed
13
 *
14
 * You should have received a copy of the GNU Lesser General Public
15
 * License along with this library.  If not, see
16
 * <https://www.gnu.org/licenses/>.
Marc Lehmann's avatar
Marc Lehmann committed
17 18
 */

19 20 21 22
#if !defined (__GIMP_COLOR_H_INSIDE__) && !defined (GIMP_COLOR_COMPILATION)
#error "Only <libgimpcolor/gimpcolor.h> can be included directly."
#endif

23 24
#ifndef __GIMP_COLOR_SPACE_H__
#define __GIMP_COLOR_SPACE_H__
Marc Lehmann's avatar
Marc Lehmann committed
25

26
G_BEGIN_DECLS
27 28 29 30

/* For information look into the C source or the html documentation */


Marc Lehmann's avatar
Marc Lehmann committed
31 32
/*  Color conversion routines  */

33

34 35
/*  GimpRGB function  */

36
void   gimp_rgb_to_hsv          (const GimpRGB  *rgb,
Sven Neumann's avatar
Sven Neumann committed
37
                                 GimpHSV        *hsv);
38
void   gimp_rgb_to_hsl          (const GimpRGB  *rgb,
Sven Neumann's avatar
Sven Neumann committed
39
                                 GimpHSL        *hsl);
40
void   gimp_rgb_to_cmyk         (const GimpRGB  *rgb,
41
                                 gdouble         pullout,
42 43 44
                                 GimpCMYK       *cmyk);

void   gimp_hsv_to_rgb          (const GimpHSV  *hsv,
Sven Neumann's avatar
Sven Neumann committed
45
                                 GimpRGB        *rgb);
46
void   gimp_hsl_to_rgb          (const GimpHSL  *hsl,
Sven Neumann's avatar
Sven Neumann committed
47
                                 GimpRGB        *rgb);
48 49 50
void   gimp_cmyk_to_rgb         (const GimpCMYK *cmyk,
                                 GimpRGB        *rgb);

51
G_END_DECLS
52

53
#endif  /* __GIMP_COLOR_SPACE_H__ */