1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>GimpCMYK</title>
6
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
7
<link rel="start" href="index.html" title="GIMP Color Library Reference Manual">
8
<link rel="up" href="libgimpcolor.html" title="Part I. GIMP Color Library">
8
<link rel="up" href="libgimpcolor.html" title="Part I. GIMP Color Library">
9
9
<link rel="prev" href="libgimpcolor-GimpHSV.html" title="GimpHSV">
10
10
<link rel="next" href="libgimpcolor-GimpColorSpace.html" title="GimpColorSpace">
11
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="libgimpcolor.html" title="Part I. GIMP Color Library">
13
<link rel="part" href="libgimpcolor.html" title="Part I. GIMP Color Library">
14
14
<link rel="index" href="libgimpcolor-index.html" title="Index">
15
15
<link rel="index" href="libgimpcolor-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
16
16
<link rel="index" href="libgimpcolor-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
25
25
<th width="100%" align="center">GIMP Color Library Reference Manual</th>
26
26
<td><a accesskey="n" href="libgimpcolor-GimpColorSpace.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
28
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2585136" class="shortcut">Top</a>
30
<a href="#id2584350" class="shortcut">Description</a></nobr></td></tr>
28
<tr><td colspan="5" class="shortcuts"><nobr><a href="#libgimpcolor-GimpCMYK.synopsis" class="shortcut">Top</a>
30
<a href="#libgimpcolor-GimpCMYK.description" class="shortcut">Description</a></nobr></td></tr>
32
32
<div class="refentry" lang="en">
33
33
<a name="libgimpcolor-GimpCMYK"></a><div class="titlepage"></div>
34
34
<div class="refnamediv"><table width="100%"><tr>
37
<a name="id2585136"></a><span class="refentrytitle">GimpCMYK</span>
39
<p>GimpCMYK — Definitions and Functions relating to CMYK colors.</p>
36
<h2><span class="refentrytitle"><a name="libgimpcolor-GimpCMYK.top_of_page"></a>GimpCMYK</span></h2>
37
<p>GimpCMYK — Definitions and Functions relating to CMYK colors.</p>
41
39
<td valign="top" align="right"></td>
42
40
</tr></table></div>
43
41
<div class="refsynopsisdiv">
42
<a name="libgimpcolor-GimpCMYK.synopsis"></a><h2>Synopsis</h2>
45
43
<pre class="synopsis">
49
<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a>;
50
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set">gimp_cmyk_set</a> (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
52
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
55
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
58
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
61
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
63
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set-uchar">gimp_cmyk_set_uchar</a> (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
65
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
68
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
71
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
74
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
76
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-get-uchar">gimp_cmyk_get_uchar</a> (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
78
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
81
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
84
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
87
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
89
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set">gimp_cmyka_set</a> (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
91
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
94
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
97
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
100
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
103
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
105
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set-uchar">gimp_cmyka_set_uchar</a> (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
107
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
110
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
113
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
116
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
119
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
121
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-get-uchar">gimp_cmyka_get_uchar</a> (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
123
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
126
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
127
>guchar</a> *magenta,
129
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
132
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
135
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
137
#define <a class="link" href="libgimpcolor-GimpCMYK.html#GIMP-TYPE-CMYK:CAPS">GIMP_TYPE_CMYK</a>
44
<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a>;
45
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set" title="gimp_cmyk_set ()">gimp_cmyk_set</a> (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
50
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set-uchar" title="gimp_cmyk_set_uchar ()">gimp_cmyk_set_uchar</a> (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
55
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-get-uchar" title="gimp_cmyk_get_uchar ()">gimp_cmyk_get_uchar</a> (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
60
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set" title="gimp_cmyka_set ()">gimp_cmyka_set</a> (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyka,
66
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set-uchar" title="gimp_cmyka_set_uchar ()">gimp_cmyka_set_uchar</a> (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyka,
72
void <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-get-uchar" title="gimp_cmyka_get_uchar ()">gimp_cmyka_get_uchar</a> (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyka,
78
#define <a class="link" href="libgimpcolor-GimpCMYK.html#GIMP-TYPE-CMYK:CAPS" title="GIMP_TYPE_CMYK">GIMP_TYPE_CMYK</a>
141
81
<div class="refsect1" lang="en">
142
<a name="id2584350"></a><h2>Description</h2>
82
<a name="libgimpcolor-GimpCMYK.description"></a><h2>Description</h2>
144
84
Definitions and Functions relating to CMYK colors.
147
87
<div class="refsect1" lang="en">
148
<a name="id2606139"></a><h2>Details</h2>
88
<a name="libgimpcolor-GimpCMYK.details"></a><h2>Details</h2>
149
89
<div class="refsect2" lang="en">
150
<a name="id2606150"></a><h3>
151
<a name="GimpCMYK"></a>GimpCMYK</h3>
152
<a class="indexterm" name="id2606162"></a><pre class="programlisting">typedef struct {
90
<a name="GimpCMYK"></a><h3>GimpCMYK</h3>
91
<pre class="programlisting">typedef struct {
153
92
gdouble c, m, y, k, a;
161
100
<div class="refsect2" lang="en">
162
<a name="id2606178"></a><h3>
163
<a name="gimp-cmyk-set"></a>gimp_cmyk_set ()</h3>
164
<a class="indexterm" name="id2606190"></a><pre class="programlisting">void gimp_cmyk_set (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
166
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
169
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
170
>gdouble</a> magenta,
172
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
175
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
176
>gdouble</a> black);</pre>
101
<a name="gimp-cmyk-set"></a><h3>gimp_cmyk_set ()</h3>
102
<pre class="programlisting">void gimp_cmyk_set (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
106
gdouble black);</pre>
178
Very basic initialiser for the internal <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel
108
Very basic initialiser for the internal <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel
179
109
values are doubles in the range 0 to 1.</p>
184
114
<col align="left" valign="top">
187
<td><p><span class="term"><em class="parameter"><code>cmyk</code></em> :</span></p></td>
188
<td> A <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYK value.
117
<td><p><span class="term"><em class="parameter"><code>cmyk</code></em> :</span></p></td>
118
<td> A <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYK value.
192
<td><p><span class="term"><em class="parameter"><code>cyan</code></em> :</span></p></td>
122
<td><p><span class="term"><em class="parameter"><code>cyan</code></em> :</span></p></td>
193
123
<td> The Cyan channel of the CMYK value
197
<td><p><span class="term"><em class="parameter"><code>magenta</code></em> :</span></p></td>
127
<td><p><span class="term"><em class="parameter"><code>magenta</code></em> :</span></p></td>
198
128
<td> The Magenta channel
202
<td><p><span class="term"><em class="parameter"><code>yellow</code></em> :</span></p></td>
132
<td><p><span class="term"><em class="parameter"><code>yellow</code></em> :</span></p></td>
203
133
<td> The Yellow channel
207
<td><p><span class="term"><em class="parameter"><code>black</code></em> :</span></p></td>
137
<td><p><span class="term"><em class="parameter"><code>black</code></em> :</span></p></td>
208
138
<td> The blacK channel
215
145
<div class="refsect2" lang="en">
216
<a name="id2606339"></a><h3>
217
<a name="gimp-cmyk-set-uchar"></a>gimp_cmyk_set_uchar ()</h3>
218
<a class="indexterm" name="id2606352"></a><pre class="programlisting">void gimp_cmyk_set_uchar (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
220
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
223
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
226
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
229
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
230
>guchar</a> black);</pre>
146
<a name="gimp-cmyk-set-uchar"></a><h3>gimp_cmyk_set_uchar ()</h3>
147
<pre class="programlisting">void gimp_cmyk_set_uchar (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
232
The same as <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set"><code class="function">gimp_cmyk_set()</code></a>, except that channel values are
153
The same as <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set" title="gimp_cmyk_set ()"><code class="function">gimp_cmyk_set()</code></a>, except that channel values are
233
154
unsigned chars in the range 0 to 255.</p>
238
159
<col align="left" valign="top">
241
<td><p><span class="term"><em class="parameter"><code>cmyk</code></em> :</span></p></td>
242
<td> A <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYK value.
162
<td><p><span class="term"><em class="parameter"><code>cmyk</code></em> :</span></p></td>
163
<td> A <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYK value.
246
<td><p><span class="term"><em class="parameter"><code>cyan</code></em> :</span></p></td>
167
<td><p><span class="term"><em class="parameter"><code>cyan</code></em> :</span></p></td>
247
168
<td> The Cyan channel of the CMYK value
251
<td><p><span class="term"><em class="parameter"><code>magenta</code></em> :</span></p></td>
172
<td><p><span class="term"><em class="parameter"><code>magenta</code></em> :</span></p></td>
252
173
<td> The Magenta channel
256
<td><p><span class="term"><em class="parameter"><code>yellow</code></em> :</span></p></td>
177
<td><p><span class="term"><em class="parameter"><code>yellow</code></em> :</span></p></td>
257
178
<td> The Yellow channel
261
<td><p><span class="term"><em class="parameter"><code>black</code></em> :</span></p></td>
182
<td><p><span class="term"><em class="parameter"><code>black</code></em> :</span></p></td>
262
183
<td> The blacK channel
269
190
<div class="refsect2" lang="en">
270
<a name="id2574010"></a><h3>
271
<a name="gimp-cmyk-get-uchar"></a>gimp_cmyk_get_uchar ()</h3>
272
<a class="indexterm" name="id2574023"></a><pre class="programlisting">void gimp_cmyk_get_uchar (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
274
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
277
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
278
>guchar</a> *magenta,
280
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
283
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
284
>guchar</a> *black);</pre>
191
<a name="gimp-cmyk-get-uchar"></a><h3>gimp_cmyk_get_uchar ()</h3>
192
<pre class="programlisting">void gimp_cmyk_get_uchar (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyk,
196
guchar *black);</pre>
286
Retrieve individual channel values from a <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel
198
Retrieve individual channel values from a <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel
287
199
values are pointers to unsigned chars in the range 0 to 255.</p>
292
204
<col align="left" valign="top">
295
<td><p><span class="term"><em class="parameter"><code>cmyk</code></em> :</span></p></td>
296
<td> A <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYK value.
207
<td><p><span class="term"><em class="parameter"><code>cmyk</code></em> :</span></p></td>
208
<td> A <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYK value.
300
<td><p><span class="term"><em class="parameter"><code>cyan</code></em> :</span></p></td>
212
<td><p><span class="term"><em class="parameter"><code>cyan</code></em> :</span></p></td>
301
213
<td> The Cyan channel of the CMYK value
305
<td><p><span class="term"><em class="parameter"><code>magenta</code></em> :</span></p></td>
217
<td><p><span class="term"><em class="parameter"><code>magenta</code></em> :</span></p></td>
306
218
<td> The Magenta channel
310
<td><p><span class="term"><em class="parameter"><code>yellow</code></em> :</span></p></td>
222
<td><p><span class="term"><em class="parameter"><code>yellow</code></em> :</span></p></td>
311
223
<td> The Yellow channel
315
<td><p><span class="term"><em class="parameter"><code>black</code></em> :</span></p></td>
227
<td><p><span class="term"><em class="parameter"><code>black</code></em> :</span></p></td>
316
228
<td> The blacK channel
323
235
<div class="refsect2" lang="en">
324
<a name="id2574172"></a><h3>
325
<a name="gimp-cmyka-set"></a>gimp_cmyka_set ()</h3>
326
<a class="indexterm" name="id2576974"></a><pre class="programlisting">void gimp_cmyka_set (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
328
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
331
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
332
>gdouble</a> magenta,
334
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
337
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
340
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"
341
>gdouble</a> alpha);</pre>
236
<a name="gimp-cmyka-set"></a><h3>gimp_cmyka_set ()</h3>
237
<pre class="programlisting">void gimp_cmyka_set (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyka,
242
gdouble alpha);</pre>
343
Initialiser for the internal <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel values are
244
Initialiser for the internal <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel values are
344
245
doubles in the range 0 to 1.</p>
349
250
<col align="left" valign="top">
352
<td><p><span class="term"><em class="parameter"><code>cmyka</code></em> :</span></p></td>
353
<td> A <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYKA value.
253
<td><p><span class="term"><em class="parameter"><code>cmyka</code></em> :</span></p></td>
254
<td> A <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYKA value.
357
<td><p><span class="term"><em class="parameter"><code>cyan</code></em> :</span></p></td>
258
<td><p><span class="term"><em class="parameter"><code>cyan</code></em> :</span></p></td>
358
259
<td> The Cyan channel of the CMYK value
362
<td><p><span class="term"><em class="parameter"><code>magenta</code></em> :</span></p></td>
263
<td><p><span class="term"><em class="parameter"><code>magenta</code></em> :</span></p></td>
363
264
<td> The Magenta channel
367
<td><p><span class="term"><em class="parameter"><code>yellow</code></em> :</span></p></td>
268
<td><p><span class="term"><em class="parameter"><code>yellow</code></em> :</span></p></td>
368
269
<td> The Yellow channel
372
<td><p><span class="term"><em class="parameter"><code>black</code></em> :</span></p></td>
273
<td><p><span class="term"><em class="parameter"><code>black</code></em> :</span></p></td>
373
274
<td> The blacK channel
377
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
278
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
378
279
<td> The Alpha channel
385
286
<div class="refsect2" lang="en">
386
<a name="id2577145"></a><h3>
387
<a name="gimp-cmyka-set-uchar"></a>gimp_cmyka_set_uchar ()</h3>
388
<a class="indexterm" name="id2577156"></a><pre class="programlisting">void gimp_cmyka_set_uchar (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
390
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
393
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
396
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
399
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
402
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
403
>guchar</a> alpha);</pre>
287
<a name="gimp-cmyka-set-uchar"></a><h3>gimp_cmyka_set_uchar ()</h3>
288
<pre class="programlisting">void gimp_cmyka_set_uchar (<a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyka,
405
The same as <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set"><code class="function">gimp_cmyka_set()</code></a>, except that channel values are
295
The same as <a class="link" href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set" title="gimp_cmyka_set ()"><code class="function">gimp_cmyka_set()</code></a>, except that channel values are
406
296
unsigned chars in the range 0 to 255.</p>
411
301
<col align="left" valign="top">
414
<td><p><span class="term"><em class="parameter"><code>cmyka</code></em> :</span></p></td>
415
<td> A <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYKA value.
304
<td><p><span class="term"><em class="parameter"><code>cmyka</code></em> :</span></p></td>
305
<td> A <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYKA value.
419
<td><p><span class="term"><em class="parameter"><code>cyan</code></em> :</span></p></td>
309
<td><p><span class="term"><em class="parameter"><code>cyan</code></em> :</span></p></td>
420
310
<td> The Cyan channel of the CMYK value
424
<td><p><span class="term"><em class="parameter"><code>magenta</code></em> :</span></p></td>
314
<td><p><span class="term"><em class="parameter"><code>magenta</code></em> :</span></p></td>
425
315
<td> The Magenta channel
429
<td><p><span class="term"><em class="parameter"><code>yellow</code></em> :</span></p></td>
319
<td><p><span class="term"><em class="parameter"><code>yellow</code></em> :</span></p></td>
430
320
<td> The Yellow channel
434
<td><p><span class="term"><em class="parameter"><code>black</code></em> :</span></p></td>
324
<td><p><span class="term"><em class="parameter"><code>black</code></em> :</span></p></td>
435
325
<td> The blacK channel
439
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
329
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
440
330
<td> The Alpha channel
447
337
<div class="refsect2" lang="en">
448
<a name="id2577329"></a><h3>
449
<a name="gimp-cmyka-get-uchar"></a>gimp_cmyka_get_uchar ()</h3>
450
<a class="indexterm" name="id2577341"></a><pre class="programlisting">void gimp_cmyka_get_uchar (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
452
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
455
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
456
>guchar</a> *magenta,
458
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
461
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
464
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
465
>guchar</a> *alpha);</pre>
338
<a name="gimp-cmyka-get-uchar"></a><h3>gimp_cmyka_get_uchar ()</h3>
339
<pre class="programlisting">void gimp_cmyka_get_uchar (const <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK">GimpCMYK</a> *cmyka,
344
guchar *alpha);</pre>
467
Retrieve individual channel values from a <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure.
346
Retrieve individual channel values from a <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure.
468
347
Channel values are pointers to unsigned chars in the range 0 to 255.</p>
473
352
<col align="left" valign="top">
476
<td><p><span class="term"><em class="parameter"><code>cmyka</code></em> :</span></p></td>
477
<td> A <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYKA value.
355
<td><p><span class="term"><em class="parameter"><code>cmyka</code></em> :</span></p></td>
356
<td> A <a class="link" href="libgimpcolor-GimpCMYK.html#GimpCMYK" title="GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYKA value.
481
<td><p><span class="term"><em class="parameter"><code>cyan</code></em> :</span></p></td>
360
<td><p><span class="term"><em class="parameter"><code>cyan</code></em> :</span></p></td>
482
361
<td> The Cyan channel of the CMYK value
486
<td><p><span class="term"><em class="parameter"><code>magenta</code></em> :</span></p></td>
365
<td><p><span class="term"><em class="parameter"><code>magenta</code></em> :</span></p></td>
487
366
<td> The Magenta channel
491
<td><p><span class="term"><em class="parameter"><code>yellow</code></em> :</span></p></td>
370
<td><p><span class="term"><em class="parameter"><code>yellow</code></em> :</span></p></td>
492
371
<td> The Yellow channel
496
<td><p><span class="term"><em class="parameter"><code>black</code></em> :</span></p></td>
375
<td><p><span class="term"><em class="parameter"><code>black</code></em> :</span></p></td>
497
376
<td> The blacK channel
501
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
380
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
502
381
<td> The Alpha channel