1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4
5
<title>GimpCMYK</title>
5
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
6
7
<link rel="start" href="index.html" title="GIMP Color Library Reference Manual">
7
8
<link rel="up" href="libgimpcolor.html" title="Part I. GIMP Color Library">
8
9
<link rel="prev" href="libgimpcolor-GimpHSV.html" title="GimpHSV">
9
10
<link rel="next" href="libgimpcolor-GimpColorSpace.html" title="GimpColorSpace">
10
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
11
12
<link rel="stylesheet" href="style.css" type="text/css">
12
13
<link rel="part" href="libgimpcolor.html" title="Part I. GIMP Color Library">
14
<link rel="index" href="libgimpcolor-index.html" title="Index">
15
<link rel="index" href="libgimpcolor-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
16
<link rel="index" href="libgimpcolor-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
17
<link rel="index" href="libgimpcolor-index-deprecated.html" title="Index of deprecated symbols">
14
19
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
20
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
22
<td><a accesskey="p" href="libgimpcolor-GimpHSV.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
23
<td><a accesskey="u" href="libgimpcolor.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18
24
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
25
<th width="100%" align="center">GIMP Color Library Reference Manual</th>
20
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="#id2590891" class="shortcut">Top</a>
30
<a href="#id2565501" class="shortcut">Description</a></nobr></td></tr>
22
32
<div class="refentry" lang="en">
23
33
<a name="libgimpcolor-GimpCMYK"></a><div class="titlepage"></div>
24
34
<div class="refnamediv"><table width="100%"><tr>
26
<h2><span class="refentrytitle">GimpCMYK</span></h2>
37
<a name="id2590891"></a><span class="refentrytitle">GimpCMYK</span>
27
39
<p>GimpCMYK — Definitions and Functions relating to CMYK colors.</p>
29
41
<td valign="top" align="right"></td>
37
<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a>;
38
void <a href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set">gimp_cmyk_set</a> (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
43
void <a href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set-uchar">gimp_cmyk_set_uchar</a> (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
48
void <a href="libgimpcolor-GimpCMYK.html#gimp-cmyk-get-uchar">gimp_cmyk_get_uchar</a> (const <a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
53
void <a href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set">gimp_cmyka_set</a> (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
59
void <a href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set-uchar">gimp_cmyka_set_uchar</a> (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
65
void <a href="libgimpcolor-GimpCMYK.html#gimp-cmyka-get-uchar">gimp_cmyka_get_uchar</a> (const <a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
49
<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a>;
50
void <a href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set">gimp_cmyk_set</a> (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
55
void <a href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set-uchar">gimp_cmyk_set_uchar</a> (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
60
void <a href="libgimpcolor-GimpCMYK.html#gimp-cmyk-get-uchar">gimp_cmyk_get_uchar</a> (const <a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
65
void <a href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set">gimp_cmyka_set</a> (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
71
void <a href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set-uchar">gimp_cmyka_set_uchar</a> (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
77
void <a href="libgimpcolor-GimpCMYK.html#gimp-cmyka-get-uchar">gimp_cmyka_get_uchar</a> (const <a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
83
#define <a href="libgimpcolor-GimpCMYK.html#GIMP-TYPE-CMYK:CAPS">GIMP_TYPE_CMYK</a>
73
87
<div class="refsect1" lang="en">
74
<a name="id2543762"></a><h2>Description</h2>
88
<a name="id2565501"></a><h2>Description</h2>
76
90
Definitions and Functions relating to CMYK colors.
79
93
<div class="refsect1" lang="en">
80
<a name="id2543774"></a><h2>Details</h2>
94
<a name="id2565517"></a><h2>Details</h2>
81
95
<div class="refsect2" lang="en">
82
<a name="id2543780"></a><h3>
96
<a name="id2565041"></a><h3>
83
97
<a name="GimpCMYK"></a>GimpCMYK</h3>
84
<a class="indexterm" name="id2543790"></a><pre class="programlisting">typedef struct {
98
<a class="indexterm" name="id2565053"></a><pre class="programlisting">typedef struct {
85
99
gdouble c, m, y, k, a;
93
107
<div class="refsect2" lang="en">
94
<a name="id2529731"></a><h3>
108
<a name="id2565069"></a><h3>
95
109
<a name="gimp-cmyk-set"></a>gimp_cmyk_set ()</h3>
96
<a class="indexterm" name="id2529742"></a><pre class="programlisting">void gimp_cmyk_set (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
100
gdouble black);</pre>
110
<a class="indexterm" name="id2565082"></a><pre class="programlisting">void gimp_cmyk_set (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
114
gdouble black);</pre>
102
116
Very basic initialiser for the internal <a href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel
103
117
values are doubles in the range 0 to 1.</p>
108
122
<col align="left" valign="top">
112
<span class="term"><em class="parameter"><code>cmyk</code></em> :</span></td>
125
<td><span class="term"><em class="parameter"><code>cmyk</code></em> :</span></td>
113
126
<td> A <a href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYK value.
118
<span class="term"><em class="parameter"><code>cyan</code></em> :</span></td>
130
<td><span class="term"><em class="parameter"><code>cyan</code></em> :</span></td>
119
131
<td> The Cyan channel of the CMYK value
124
<span class="term"><em class="parameter"><code>magenta</code></em> :</span></td>
135
<td><span class="term"><em class="parameter"><code>magenta</code></em> :</span></td>
125
136
<td> The Magenta channel
130
<span class="term"><em class="parameter"><code>yellow</code></em> :</span></td>
140
<td><span class="term"><em class="parameter"><code>yellow</code></em> :</span></td>
131
141
<td> The Yellow channel
136
<span class="term"><em class="parameter"><code>black</code></em> :</span></td>
145
<td><span class="term"><em class="parameter"><code>black</code></em> :</span></td>
137
146
<td> The blacK channel
144
153
<div class="refsect2" lang="en">
145
<a name="id2529889"></a><h3>
154
<a name="id2565231"></a><h3>
146
155
<a name="gimp-cmyk-set-uchar"></a>gimp_cmyk_set_uchar ()</h3>
147
<a class="indexterm" name="id2529899"></a><pre class="programlisting">void gimp_cmyk_set_uchar (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
156
<a class="indexterm" name="id2565243"></a><pre class="programlisting">void gimp_cmyk_set_uchar (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
153
162
The same as <a href="libgimpcolor-GimpCMYK.html#gimp-cmyk-set"><code class="function">gimp_cmyk_set()</code></a>, except that channel values are
154
163
unsigned chars in the range 0 to 255.</p>
159
168
<col align="left" valign="top">
163
<span class="term"><em class="parameter"><code>cmyk</code></em> :</span></td>
171
<td><span class="term"><em class="parameter"><code>cmyk</code></em> :</span></td>
164
172
<td> A <a href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYK value.
169
<span class="term"><em class="parameter"><code>cyan</code></em> :</span></td>
176
<td><span class="term"><em class="parameter"><code>cyan</code></em> :</span></td>
170
177
<td> The Cyan channel of the CMYK value
175
<span class="term"><em class="parameter"><code>magenta</code></em> :</span></td>
181
<td><span class="term"><em class="parameter"><code>magenta</code></em> :</span></td>
176
182
<td> The Magenta channel
181
<span class="term"><em class="parameter"><code>yellow</code></em> :</span></td>
186
<td><span class="term"><em class="parameter"><code>yellow</code></em> :</span></td>
182
187
<td> The Yellow channel
187
<span class="term"><em class="parameter"><code>black</code></em> :</span></td>
191
<td><span class="term"><em class="parameter"><code>black</code></em> :</span></td>
188
192
<td> The blacK channel
195
199
<div class="refsect2" lang="en">
196
<a name="id2525437"></a><h3>
200
<a name="id2564625"></a><h3>
197
201
<a name="gimp-cmyk-get-uchar"></a>gimp_cmyk_get_uchar ()</h3>
198
<a class="indexterm" name="id2525447"></a><pre class="programlisting">void gimp_cmyk_get_uchar (const <a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
202
guchar *black);</pre>
202
<a class="indexterm" name="id2564637"></a><pre class="programlisting">void gimp_cmyk_get_uchar (const <a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyk,
206
guchar *black);</pre>
204
208
Retrieve individual channel values from a <a href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel
205
209
values are pointers to unsigned chars in the range 0 to 255.</p>
210
214
<col align="left" valign="top">
214
<span class="term"><em class="parameter"><code>cmyk</code></em> :</span></td>
217
<td><span class="term"><em class="parameter"><code>cmyk</code></em> :</span></td>
215
218
<td> A <a href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYK value.
220
<span class="term"><em class="parameter"><code>cyan</code></em> :</span></td>
222
<td><span class="term"><em class="parameter"><code>cyan</code></em> :</span></td>
221
223
<td> The Cyan channel of the CMYK value
226
<span class="term"><em class="parameter"><code>magenta</code></em> :</span></td>
227
<td><span class="term"><em class="parameter"><code>magenta</code></em> :</span></td>
227
228
<td> The Magenta channel
232
<span class="term"><em class="parameter"><code>yellow</code></em> :</span></td>
232
<td><span class="term"><em class="parameter"><code>yellow</code></em> :</span></td>
233
233
<td> The Yellow channel
238
<span class="term"><em class="parameter"><code>black</code></em> :</span></td>
237
<td><span class="term"><em class="parameter"><code>black</code></em> :</span></td>
239
238
<td> The blacK channel
246
245
<div class="refsect2" lang="en">
247
<a name="id2525597"></a><h3>
246
<a name="id2564787"></a><h3>
248
247
<a name="gimp-cmyka-set"></a>gimp_cmyka_set ()</h3>
249
<a class="indexterm" name="id2525607"></a><pre class="programlisting">void gimp_cmyka_set (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
254
gdouble alpha);</pre>
248
<a class="indexterm" name="id2560226"></a><pre class="programlisting">void gimp_cmyka_set (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
253
gdouble alpha);</pre>
256
255
Initialiser for the internal <a href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure. Channel values are
257
256
doubles in the range 0 to 1.</p>
262
261
<col align="left" valign="top">
266
<span class="term"><em class="parameter"><code>cmyka</code></em> :</span></td>
264
<td><span class="term"><em class="parameter"><code>cmyka</code></em> :</span></td>
267
265
<td> A <a href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYKA value.
272
<span class="term"><em class="parameter"><code>cyan</code></em> :</span></td>
269
<td><span class="term"><em class="parameter"><code>cyan</code></em> :</span></td>
273
270
<td> The Cyan channel of the CMYK value
278
<span class="term"><em class="parameter"><code>magenta</code></em> :</span></td>
274
<td><span class="term"><em class="parameter"><code>magenta</code></em> :</span></td>
279
275
<td> The Magenta channel
284
<span class="term"><em class="parameter"><code>yellow</code></em> :</span></td>
279
<td><span class="term"><em class="parameter"><code>yellow</code></em> :</span></td>
285
280
<td> The Yellow channel
290
<span class="term"><em class="parameter"><code>black</code></em> :</span></td>
284
<td><span class="term"><em class="parameter"><code>black</code></em> :</span></td>
291
285
<td> The blacK channel
296
<span class="term"><em class="parameter"><code>alpha</code></em> :</span></td>
289
<td><span class="term"><em class="parameter"><code>alpha</code></em> :</span></td>
297
290
<td> The Alpha channel
304
297
<div class="refsect2" lang="en">
305
<a name="id2517629"></a><h3>
298
<a name="id2560396"></a><h3>
306
299
<a name="gimp-cmyka-set-uchar"></a>gimp_cmyka_set_uchar ()</h3>
307
<a class="indexterm" name="id2517638"></a><pre class="programlisting">void gimp_cmyka_set_uchar (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
300
<a class="indexterm" name="id2560408"></a><pre class="programlisting">void gimp_cmyka_set_uchar (<a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
314
307
The same as <a href="libgimpcolor-GimpCMYK.html#gimp-cmyka-set"><code class="function">gimp_cmyka_set()</code></a>, except that channel values are
315
308
unsigned chars in the range 0 to 255.</p>
320
313
<col align="left" valign="top">
324
<span class="term"><em class="parameter"><code>cmyka</code></em> :</span></td>
316
<td><span class="term"><em class="parameter"><code>cmyka</code></em> :</span></td>
325
317
<td> A <a href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYKA value.
330
<span class="term"><em class="parameter"><code>cyan</code></em> :</span></td>
321
<td><span class="term"><em class="parameter"><code>cyan</code></em> :</span></td>
331
322
<td> The Cyan channel of the CMYK value
336
<span class="term"><em class="parameter"><code>magenta</code></em> :</span></td>
326
<td><span class="term"><em class="parameter"><code>magenta</code></em> :</span></td>
337
327
<td> The Magenta channel
342
<span class="term"><em class="parameter"><code>yellow</code></em> :</span></td>
331
<td><span class="term"><em class="parameter"><code>yellow</code></em> :</span></td>
343
332
<td> The Yellow channel
348
<span class="term"><em class="parameter"><code>black</code></em> :</span></td>
336
<td><span class="term"><em class="parameter"><code>black</code></em> :</span></td>
349
337
<td> The blacK channel
354
<span class="term"><em class="parameter"><code>alpha</code></em> :</span></td>
341
<td><span class="term"><em class="parameter"><code>alpha</code></em> :</span></td>
355
342
<td> The Alpha channel
362
349
<div class="refsect2" lang="en">
363
<a name="id2517810"></a><h3>
350
<a name="id2560581"></a><h3>
364
351
<a name="gimp-cmyka-get-uchar"></a>gimp_cmyka_get_uchar ()</h3>
365
<a class="indexterm" name="id2517819"></a><pre class="programlisting">void gimp_cmyka_get_uchar (const <a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
370
guchar *alpha);</pre>
352
<a class="indexterm" name="id2560592"></a><pre class="programlisting">void gimp_cmyka_get_uchar (const <a href="libgimpcolor-GimpCMYK.html#GimpCMYK">GimpCMYK</a> *cmyka,
357
guchar *alpha);</pre>
372
359
Retrieve individual channel values from a <a href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure.
373
360
Channel values are pointers to unsigned chars in the range 0 to 255.</p>
378
365
<col align="left" valign="top">
382
<span class="term"><em class="parameter"><code>cmyka</code></em> :</span></td>
368
<td><span class="term"><em class="parameter"><code>cmyka</code></em> :</span></td>
383
369
<td> A <a href="libgimpcolor-GimpCMYK.html#GimpCMYK"><span class="type">GimpCMYK</span></a> structure which will hold the specified CMYKA value.
388
<span class="term"><em class="parameter"><code>cyan</code></em> :</span></td>
373
<td><span class="term"><em class="parameter"><code>cyan</code></em> :</span></td>
389
374
<td> The Cyan channel of the CMYK value
394
<span class="term"><em class="parameter"><code>magenta</code></em> :</span></td>
378
<td><span class="term"><em class="parameter"><code>magenta</code></em> :</span></td>
395
379
<td> The Magenta channel
400
<span class="term"><em class="parameter"><code>yellow</code></em> :</span></td>
383
<td><span class="term"><em class="parameter"><code>yellow</code></em> :</span></td>
401
384
<td> The Yellow channel
406
<span class="term"><em class="parameter"><code>black</code></em> :</span></td>
388
<td><span class="term"><em class="parameter"><code>black</code></em> :</span></td>
407
389
<td> The blacK channel
412
<span class="term"><em class="parameter"><code>alpha</code></em> :</span></td>
393
<td><span class="term"><em class="parameter"><code>alpha</code></em> :</span></td>
413
394
<td> The Alpha channel
421
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
422
<td align="left"><a accesskey="p" href="libgimpcolor-GimpHSV.html"><b><< GimpHSV</b></a></td>
423
<td align="right"><a accesskey="n" href="libgimpcolor-GimpColorSpace.html"><b>GimpColorSpace >></b></a></td>
401
<div class="refsect2" lang="en">
402
<a name="id2560764"></a><h3>
403
<a name="GIMP-TYPE-CMYK:CAPS"></a>GIMP_TYPE_CMYK</h3>
404
<a class="indexterm" name="id2560777"></a><pre class="programlisting">#define GIMP_TYPE_CMYK (gimp_cmyk_get_type ())