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>GimpBilinear</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-GimpAdaptiveSupersample.html" title="GimpAdaptiveSupersample">
9
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
10
<link rel="next" href="libgimpcolor-index.html" title="Index">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
10
12
<link rel="stylesheet" href="style.css" type="text/css">
11
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">
13
19
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14
<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">
15
22
<td><a accesskey="p" href="libgimpcolor-GimpAdaptiveSupersample.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
16
23
<td><a accesskey="u" href="libgimpcolor.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
17
24
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
18
25
<th width="100%" align="center">GIMP Color Library Reference Manual</th>
26
<td><a accesskey="n" href="libgimpcolor-index.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="#id2589073" class="shortcut">Top</a>
30
<a href="#id2571640" class="shortcut">Description</a></nobr></td></tr>
20
32
<div class="refentry" lang="en">
21
33
<a name="libgimpcolor-GimpBilinear"></a><div class="titlepage"></div>
22
34
<div class="refnamediv"><table width="100%"><tr>
24
<h2><span class="refentrytitle">GimpBilinear</span></h2>
25
<p>GimpBilinear — </p>
37
<a name="id2589073"></a><span class="refentrytitle">GimpBilinear</span>
27
41
<td valign="top" align="right"></td>
28
42
</tr></table></div>
35
gdouble <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear">gimp_bilinear</a> (gdouble x,
38
guchar <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear-8">gimp_bilinear_8</a> (gdouble x,
41
guint16 <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear-16">gimp_bilinear_16</a> (gdouble x,
44
guint32 <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear-32">gimp_bilinear_32</a> (gdouble x,
47
<a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgb">gimp_bilinear_rgb</a> (gdouble x,
49
<a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *values);
50
<a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgba">gimp_bilinear_rgba</a> (gdouble x,
52
<a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *values);
53
void <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear-pixels-8">gimp_bilinear_pixels_8</a> (guchar *dest,
49
gdouble <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear">gimp_bilinear</a> (gdouble x,
52
guchar <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear-8">gimp_bilinear_8</a> (gdouble x,
55
guint16 <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear-16">gimp_bilinear_16</a> (gdouble x,
58
guint32 <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear-32">gimp_bilinear_32</a> (gdouble x,
61
<a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgb">gimp_bilinear_rgb</a> (gdouble x,
63
<a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *values);
64
<a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear-rgba">gimp_bilinear_rgba</a> (gdouble x,
66
<a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *values);
67
void <a href="libgimpcolor-GimpBilinear.html#gimp-bilinear-pixels-8">gimp_bilinear_pixels_8</a> (guchar *dest,
61
75
<div class="refsect1" lang="en">
62
<a name="id2558477"></a><h2>Description</h2>
76
<a name="id2571640"></a><h2>Description</h2>
67
81
<div class="refsect1" lang="en">
68
<a name="id2558488"></a><h2>Details</h2>
82
<a name="id2571656"></a><h2>Details</h2>
69
83
<div class="refsect2" lang="en">
70
<a name="id2558494"></a><h3>
84
<a name="id2571667"></a><h3>
71
85
<a name="gimp-bilinear"></a>gimp_bilinear ()</h3>
72
<a class="indexterm" name="id2558504"></a><pre class="programlisting">gdouble gimp_bilinear (gdouble x,
74
gdouble *values);</pre>
86
<a class="indexterm" name="id2571679"></a><pre class="programlisting">gdouble gimp_bilinear (gdouble x,
88
gdouble *values);</pre>
79
93
<col align="left" valign="top">
83
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
89
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
95
<span class="term"><em class="parameter"><code>values</code></em> :</span></td>
101
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
96
<td><span class="term"><em class="parameter"><code>x</code></em> :</span></td>
101
<td><span class="term"><em class="parameter"><code>y</code></em> :</span></td>
106
<td><span class="term"><em class="parameter"><code>values</code></em> :</span></td>
111
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
111
121
<div class="refsect2" lang="en">
112
<a name="id2516771"></a><h3>
122
<a name="id2556593"></a><h3>
113
123
<a name="gimp-bilinear-8"></a>gimp_bilinear_8 ()</h3>
114
<a class="indexterm" name="id2516781"></a><pre class="programlisting">guchar gimp_bilinear_8 (gdouble x,
116
guchar *values);</pre>
124
<a class="indexterm" name="id2556605"></a><pre class="programlisting">guchar gimp_bilinear_8 (gdouble x,
126
guchar *values);</pre>
121
131
<col align="left" valign="top">
125
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
131
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
137
<span class="term"><em class="parameter"><code>values</code></em> :</span></td>
143
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
134
<td><span class="term"><em class="parameter"><code>x</code></em> :</span></td>
139
<td><span class="term"><em class="parameter"><code>y</code></em> :</span></td>
144
<td><span class="term"><em class="parameter"><code>values</code></em> :</span></td>
149
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
153
159
<div class="refsect2" lang="en">
154
<a name="id2516879"></a><h3>
160
<a name="id2556704"></a><h3>
155
161
<a name="gimp-bilinear-16"></a>gimp_bilinear_16 ()</h3>
156
<a class="indexterm" name="id2516889"></a><pre class="programlisting">guint16 gimp_bilinear_16 (gdouble x,
158
guint16 *values);</pre>
162
<a class="indexterm" name="id2556717"></a><pre class="programlisting">guint16 gimp_bilinear_16 (gdouble x,
164
guint16 *values);</pre>
163
169
<col align="left" valign="top">
167
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
173
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
179
<span class="term"><em class="parameter"><code>values</code></em> :</span></td>
185
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
172
<td><span class="term"><em class="parameter"><code>x</code></em> :</span></td>
177
<td><span class="term"><em class="parameter"><code>y</code></em> :</span></td>
182
<td><span class="term"><em class="parameter"><code>values</code></em> :</span></td>
187
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
195
197
<div class="refsect2" lang="en">
196
<a name="id2516987"></a><h3>
198
<a name="id2559854"></a><h3>
197
199
<a name="gimp-bilinear-32"></a>gimp_bilinear_32 ()</h3>
198
<a class="indexterm" name="id2516997"></a><pre class="programlisting">guint32 gimp_bilinear_32 (gdouble x,
200
guint32 *values);</pre>
200
<a class="indexterm" name="id2559867"></a><pre class="programlisting">guint32 gimp_bilinear_32 (gdouble x,
202
guint32 *values);</pre>
205
207
<col align="left" valign="top">
209
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
215
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
221
<span class="term"><em class="parameter"><code>values</code></em> :</span></td>
227
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
210
<td><span class="term"><em class="parameter"><code>x</code></em> :</span></td>
215
<td><span class="term"><em class="parameter"><code>y</code></em> :</span></td>
220
<td><span class="term"><em class="parameter"><code>values</code></em> :</span></td>
225
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
237
235
<div class="refsect2" lang="en">
238
<a name="id2523020"></a><h3>
236
<a name="id2559966"></a><h3>
239
237
<a name="gimp-bilinear-rgb"></a>gimp_bilinear_rgb ()</h3>
240
<a class="indexterm" name="id2523030"></a><pre class="programlisting"><a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> gimp_bilinear_rgb (gdouble x,
242
<a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *values);</pre>
238
<a class="indexterm" name="id2559978"></a><pre class="programlisting"><a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> gimp_bilinear_rgb (gdouble x,
240
<a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *values);</pre>
247
245
<col align="left" valign="top">
251
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
257
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
263
<span class="term"><em class="parameter"><code>values</code></em> :</span></td>
269
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
248
<td><span class="term"><em class="parameter"><code>x</code></em> :</span></td>
253
<td><span class="term"><em class="parameter"><code>y</code></em> :</span></td>
258
<td><span class="term"><em class="parameter"><code>values</code></em> :</span></td>
263
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
279
273
<div class="refsect2" lang="en">
280
<a name="id2523128"></a><h3>
274
<a name="id2560077"></a><h3>
281
275
<a name="gimp-bilinear-rgba"></a>gimp_bilinear_rgba ()</h3>
282
<a class="indexterm" name="id2523138"></a><pre class="programlisting"><a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> gimp_bilinear_rgba (gdouble x,
284
<a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *values);</pre>
276
<a class="indexterm" name="id2560089"></a><pre class="programlisting"><a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> gimp_bilinear_rgba (gdouble x,
278
<a href="libgimpcolor-GimpRGB.html#GimpRGB">GimpRGB</a> *values);</pre>
289
283
<col align="left" valign="top">
293
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
299
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
305
<span class="term"><em class="parameter"><code>values</code></em> :</span></td>
311
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
286
<td><span class="term"><em class="parameter"><code>x</code></em> :</span></td>
291
<td><span class="term"><em class="parameter"><code>y</code></em> :</span></td>
296
<td><span class="term"><em class="parameter"><code>values</code></em> :</span></td>
301
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
321
311
<div class="refsect2" lang="en">
322
<a name="id2566595"></a><h3>
312
<a name="id2609156"></a><h3>
323
313
<a name="gimp-bilinear-pixels-8"></a>gimp_bilinear_pixels_8 ()</h3>
324
<a class="indexterm" name="id2566603"></a><pre class="programlisting">void gimp_bilinear_pixels_8 (guchar *dest,
329
guchar **values);</pre>
314
<a class="indexterm" name="id2609166"></a><pre class="programlisting">void gimp_bilinear_pixels_8 (guchar *dest,
319
guchar **values);</pre>
331
321
Computes bilinear interpolation of four pixels.
345
335
<col align="left" valign="top">
349
<span class="term"><em class="parameter"><code>dest</code></em> :</span></td>
338
<td><span class="term"><em class="parameter"><code>dest</code></em> :</span></td>
350
339
<td> Pixel, where interpolation result is to be stored.
355
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
343
<td><span class="term"><em class="parameter"><code>x</code></em> :</span></td>
356
344
<td> x-coordinate (0.0 to 1.0).
361
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
348
<td><span class="term"><em class="parameter"><code>y</code></em> :</span></td>
362
349
<td> y-coordinate (0.0 to 1.0).
367
<span class="term"><em class="parameter"><code>bpp</code></em> :</span></td>
353
<td><span class="term"><em class="parameter"><code>bpp</code></em> :</span></td>
368
354
<td> Bytes per pixel. <em class="parameter"><code>dest</code></em> and each <em class="parameter"><code>values</code></em> item is an array of
369
355
<em class="parameter"><code>bpp</code></em> bytes.
374
<span class="term"><em class="parameter"><code>has_alpha</code></em> :</span></td>
359
<td><span class="term"><em class="parameter"><code>has_alpha</code></em> :</span></td>
375
360
<td> <code class="literal">TRUE</code> if the last channel is an alpha channel.
380
<span class="term"><em class="parameter"><code>values</code></em> :</span></td>
364
<td><span class="term"><em class="parameter"><code>values</code></em> :</span></td>
381
365
<td> Array of four pointers to pixels.