app: s/sprintf/g_snprintf/ in xcf_save_image()
[gimp.git] / libgimpcolor / gimpcmyk.h
blobcafb252ed1f2d0f930e4df2691eaeb1130b22789
1 /* LIBGIMP - The GIMP Library
2 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
4 * This library is free software: you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 3 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
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/>.
19 #if !defined (__GIMP_COLOR_H_INSIDE__) && !defined (GIMP_COLOR_COMPILATION)
20 #error "Only <libgimpcolor/gimpcolor.h> can be included directly."
21 #endif
23 #ifndef __GIMP_CMYK_H__
24 #define __GIMP_CMYK_H__
26 G_BEGIN_DECLS
29 /* For information look into the C source or the html documentation */
33 * GIMP_TYPE_CMYK
36 #define GIMP_TYPE_CMYK (gimp_cmyk_get_type ())
38 GType gimp_cmyk_get_type (void) G_GNUC_CONST;
40 void gimp_cmyk_set (GimpCMYK *cmyk,
41 gdouble cyan,
42 gdouble magenta,
43 gdouble yellow,
44 gdouble black);
45 void gimp_cmyk_set_uchar (GimpCMYK *cmyk,
46 guchar cyan,
47 guchar magenta,
48 guchar yellow,
49 guchar black);
50 void gimp_cmyk_get_uchar (const GimpCMYK *cmyk,
51 guchar *cyan,
52 guchar *magenta,
53 guchar *yellow,
54 guchar *black);
56 void gimp_cmyka_set (GimpCMYK *cmyka,
57 gdouble cyan,
58 gdouble magenta,
59 gdouble yellow,
60 gdouble black,
61 gdouble alpha);
62 void gimp_cmyka_set_uchar (GimpCMYK *cmyka,
63 guchar cyan,
64 guchar magenta,
65 guchar yellow,
66 guchar black,
67 guchar alpha);
68 void gimp_cmyka_get_uchar (const GimpCMYK *cmyka,
69 guchar *cyan,
70 guchar *magenta,
71 guchar *yellow,
72 guchar *black,
73 guchar *alpha);
76 G_END_DECLS
78 #endif /* __GIMP_CMYK_H__ */