4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>gimptile</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
7
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
8
<link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties">
8
<link rel="up" href="libgimp-image.html" title="Manupulating Images and their Properties">
9
9
<link rel="prev" href="libgimp-gimptexttool.html" title="gimptexttool">
10
10
<link rel="next" href="libgimp-gimptools.html" title="gimptools">
11
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="gimpdefinitions.html" title="Part I. GIMP Constants">
14
<link rel="part" href="libgimp.html" title="Part II. GIMP Library">
13
<link rel="part" href="libgimp.html" title="Part I. GIMP Library">
15
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
16
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties">
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
17
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
18
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
19
<link rel="part" href="libgimpui.html" title="Part III. GIMP User Interface Library">
18
<link rel="part" href="libgimpui.html" title="Part II. GIMP User Interface Library">
20
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
20
<link rel="index" href="libgimp-index.html" title="Index">
21
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
22
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
23
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
22
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
23
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
28
31
<th width="100%" align="center">GIMP Library Reference Manual</th>
29
32
<td><a accesskey="n" href="libgimp-gimptools.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2562486" class="shortcut">Top</a>
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2558925" class="shortcut">Top</a>
33
<a href="#id2618678" class="shortcut">Description</a></nobr></td></tr>
36
<a href="#id2661106" class="shortcut">Description</a></nobr></td></tr>
35
38
<div class="refentry" lang="en">
36
39
<a name="libgimp-gimptile"></a><div class="titlepage"></div>
37
40
<div class="refnamediv"><table width="100%"><tr>
40
<a name="id2562486"></a><span class="refentrytitle">gimptile</span>
43
<a name="id2558925"></a><span class="refentrytitle">gimptile</span>
42
45
<p>gimptile — Functions for working with tiles.</p>
52
<a href="libgimp-gimptile.html#GimpTile">GimpTile</a>;
53
void <a href="libgimp-gimptile.html#gimp-tile-ref">gimp_tile_ref</a> (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);
54
void <a href="libgimp-gimptile.html#gimp-tile-ref-zero">gimp_tile_ref_zero</a> (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);
55
void <a href="libgimp-gimptile.html#gimp-tile-unref">gimp_tile_unref</a> (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile,
57
void <a href="libgimp-gimptile.html#gimp-tile-flush">gimp_tile_flush</a> (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);
58
void <a href="libgimp-gimptile.html#gimp-tile-cache-size">gimp_tile_cache_size</a> (gulong kilobytes);
59
void <a href="libgimp-gimptile.html#gimp-tile-cache-ntiles">gimp_tile_cache_ntiles</a> (gulong ntiles);
55
<a href="libgimp-gimptile.html#GimpTile">GimpTile</a>;
56
void <a href="libgimp-gimptile.html#gimp-tile-ref">gimp_tile_ref</a> (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);
57
void <a href="libgimp-gimptile.html#gimp-tile-ref-zero">gimp_tile_ref_zero</a> (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);
58
void <a href="libgimp-gimptile.html#gimp-tile-unref">gimp_tile_unref</a> (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile,
60
void <a href="libgimp-gimptile.html#gimp-tile-flush">gimp_tile_flush</a> (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);
61
void <a href="libgimp-gimptile.html#gimp-tile-cache-size">gimp_tile_cache_size</a> (gulong kilobytes);
62
void <a href="libgimp-gimptile.html#gimp-tile-cache-ntiles">gimp_tile_cache_ntiles</a> (gulong ntiles);
62
65
<div class="refsect1" lang="en">
63
<a name="id2618678"></a><h2>Description</h2>
66
<a name="id2661106"></a><h2>Description</h2>
65
68
Functions for working with tiles.
69
72
<div class="refsect1" lang="en">
70
<a name="id2618694"></a><h2>Details</h2>
73
<a name="id2661121"></a><h2>Details</h2>
71
74
<div class="refsect2" lang="en">
72
<a name="id2618704"></a><h3>
75
<a name="id2661132"></a><h3>
73
76
<a name="GimpTile"></a>GimpTile</h3>
74
<a class="indexterm" name="id2618716"></a><pre class="programlisting">typedef struct {
77
<a class="indexterm" name="id2661144"></a><pre class="programlisting">typedef struct {
75
78
guint ewidth; /* the effective width of the tile */
76
79
guint eheight; /* the effective height of the tile */
77
80
guint bpp; /* the bytes per pixel (1, 2, 3 or 4 ) */
91
94
<div class="refsect2" lang="en">
92
<a name="id2536610"></a><h3>
95
<a name="id2661169"></a><h3>
93
96
<a name="gimp-tile-ref"></a>gimp_tile_ref ()</h3>
94
<a class="indexterm" name="id2526878"></a><pre class="programlisting">void gimp_tile_ref (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);</pre>
97
<a class="indexterm" name="id2661180"></a><pre class="programlisting">void gimp_tile_ref (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);</pre>
98
101
<div class="variablelist"><table border="0">
99
102
<col align="left" valign="top">
102
<span class="term"><em class="parameter"><code>tile</code></em> :</span></td>
104
<td><span class="term"><em class="parameter"><code>tile</code></em> :</span></td>
111
113
<div class="refsect2" lang="en">
112
<a name="id2623849"></a><h3>
114
<a name="id2648488"></a><h3>
113
115
<a name="gimp-tile-ref-zero"></a>gimp_tile_ref_zero ()</h3>
114
<a class="indexterm" name="id2623860"></a><pre class="programlisting">void gimp_tile_ref_zero (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);</pre>
116
<a class="indexterm" name="id2648499"></a><pre class="programlisting">void gimp_tile_ref_zero (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);</pre>
118
120
<div class="variablelist"><table border="0">
119
121
<col align="left" valign="top">
122
<span class="term"><em class="parameter"><code>tile</code></em> :</span></td>
123
<td><span class="term"><em class="parameter"><code>tile</code></em> :</span></td>
131
132
<div class="refsect2" lang="en">
132
<a name="id2623904"></a><h3>
133
<a name="id2648544"></a><h3>
133
134
<a name="gimp-tile-unref"></a>gimp_tile_unref ()</h3>
134
<a class="indexterm" name="id2623915"></a><pre class="programlisting">void gimp_tile_unref (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile,
135
gboolean dirty);</pre>
135
<a class="indexterm" name="id2648556"></a><pre class="programlisting">void gimp_tile_unref (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile,
136
gboolean dirty);</pre>
140
141
<col align="left" valign="top">
144
<span class="term"><em class="parameter"><code>tile</code></em> :</span></td>
144
<td><span class="term"><em class="parameter"><code>tile</code></em> :</span></td>
150
<span class="term"><em class="parameter"><code>dirty</code></em> :</span></td>
149
<td><span class="term"><em class="parameter"><code>dirty</code></em> :</span></td>
160
159
<div class="refsect2" lang="en">
161
<a name="id2623981"></a><h3>
160
<a name="id2666254"></a><h3>
162
161
<a name="gimp-tile-flush"></a>gimp_tile_flush ()</h3>
163
<a class="indexterm" name="id2623993"></a><pre class="programlisting">void gimp_tile_flush (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);</pre>
162
<a class="indexterm" name="id2666266"></a><pre class="programlisting">void gimp_tile_flush (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);</pre>
167
166
<div class="variablelist"><table border="0">
168
167
<col align="left" valign="top">
171
<span class="term"><em class="parameter"><code>tile</code></em> :</span></td>
169
<td><span class="term"><em class="parameter"><code>tile</code></em> :</span></td>
180
178
<div class="refsect2" lang="en">
181
<a name="id2623510"></a><h3>
179
<a name="id2666311"></a><h3>
182
180
<a name="gimp-tile-cache-size"></a>gimp_tile_cache_size ()</h3>
183
<a class="indexterm" name="id2623521"></a><pre class="programlisting">void gimp_tile_cache_size (gulong kilobytes);</pre>
181
<a class="indexterm" name="id2666322"></a><pre class="programlisting">void gimp_tile_cache_size (gulong kilobytes);</pre>
185
183
Sets the size of the tile cache on the plug-in side. The tile cache
186
184
is used to reduce the number of tiles exchanged between the GIMP core
191
189
<div class="variablelist"><table border="0">
192
190
<col align="left" valign="top">
195
<span class="term"><em class="parameter"><code>kilobytes</code></em> :</span></td>
192
<td><span class="term"><em class="parameter"><code>kilobytes</code></em> :</span></td>
196
193
<td> new cache size in kilobytes
202
199
<div class="refsect2" lang="en">
203
<a name="id2623580"></a><h3>
200
<a name="id2666382"></a><h3>
204
201
<a name="gimp-tile-cache-ntiles"></a>gimp_tile_cache_ntiles ()</h3>
205
<a class="indexterm" name="id2623592"></a><pre class="programlisting">void gimp_tile_cache_ntiles (gulong ntiles);</pre>
202
<a class="indexterm" name="id2668988"></a><pre class="programlisting">void gimp_tile_cache_ntiles (gulong ntiles);</pre>
207
204
Sets the size of the tile cache on the plug-in side. This function
208
205
is similar to <a href="libgimp-gimptile.html#gimp-tile-cache-size"><code class="function">gimp_tile_cache_size()</code></a> but allows to specify the
220
217
<div class="variablelist"><table border="0">
221
218
<col align="left" valign="top">
224
<span class="term"><em class="parameter"><code>ntiles</code></em> :</span></td>
220
<td><span class="term"><em class="parameter"><code>ntiles</code></em> :</span></td>
225
221
<td> number of tiles that should fit into the cache