49
37
</tr></table></div>
50
38
<div class="refsynopsisdiv" title="Synopsis">
51
39
<a name="libgimp-gimppixelrgn.synopsis"></a><h2>Synopsis</h2>
52
<pre class="synopsis">
53
<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a>;
54
void <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-init" title="gimp_pixel_rgn_init ()">gimp_pixel_rgn_init</a> (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
55
<a class="link" href="libgimp-gimpdrawable.html#GimpDrawable" title="GimpDrawable">GimpDrawable</a> *drawable,
57
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
60
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
63
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
66
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
69
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
72
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
74
void <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-resize" title="gimp_pixel_rgn_resize ()">gimp_pixel_rgn_resize</a> (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
76
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
79
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
82
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
85
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
87
void <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-pixel" title="gimp_pixel_rgn_get_pixel ()">gimp_pixel_rgn_get_pixel</a> (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
89
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
92
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
95
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
97
void <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-row" title="gimp_pixel_rgn_get_row ()">gimp_pixel_rgn_get_row</a> (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
99
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
102
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
105
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
108
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
110
void <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-col" title="gimp_pixel_rgn_get_col ()">gimp_pixel_rgn_get_col</a> (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
112
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
115
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
118
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
121
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
123
void <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-rect" title="gimp_pixel_rgn_get_rect ()">gimp_pixel_rgn_get_rect</a> (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
125
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
128
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
131
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
134
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
137
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
139
void <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-pixel" title="gimp_pixel_rgn_set_pixel ()">gimp_pixel_rgn_set_pixel</a> (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
141
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
144
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
147
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
149
void <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-row" title="gimp_pixel_rgn_set_row ()">gimp_pixel_rgn_set_row</a> (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
151
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
154
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
157
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
160
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
162
void <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-col" title="gimp_pixel_rgn_set_col ()">gimp_pixel_rgn_set_col</a> (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
164
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
167
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
170
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
173
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
175
void <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-rect" title="gimp_pixel_rgn_set_rect ()">gimp_pixel_rgn_set_rect</a> (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
177
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
180
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
183
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
186
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
189
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
192
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
193
>gpointer</a> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-register" title="gimp_pixel_rgns_register ()">gimp_pixel_rgns_register</a> (<a
194
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
198
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
199
>gpointer</a> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-register2" title="gimp_pixel_rgns_register2 ()">gimp_pixel_rgns_register2</a> (<a
200
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
202
<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> **prs);
204
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
205
>gpointer</a> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-process" title="gimp_pixel_rgns_process ()">gimp_pixel_rgns_process</a> (<a
206
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
207
>gpointer</a> pri_ptr);
40
<pre class="synopsis"> <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a>;
41
<span class="returnvalue">void</span> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-init" title="gimp_pixel_rgn_init ()">gimp_pixel_rgn_init</a> (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
42
<em class="parameter"><code><a class="link" href="libgimp-gimpdrawable.html#GimpDrawable" title="GimpDrawable"><span class="type">GimpDrawable</span></a> *drawable</code></em>,
43
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
44
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
45
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
46
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
47
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> dirty</code></em>,
48
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> shadow</code></em>);
49
<span class="returnvalue">void</span> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-resize" title="gimp_pixel_rgn_resize ()">gimp_pixel_rgn_resize</a> (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
50
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
51
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
52
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
53
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);
54
<span class="returnvalue">void</span> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-pixel" title="gimp_pixel_rgn_get_pixel ()">gimp_pixel_rgn_get_pixel</a> (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
55
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
56
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
57
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);
58
<span class="returnvalue">void</span> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-row" title="gimp_pixel_rgn_get_row ()">gimp_pixel_rgn_get_row</a> (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
59
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
60
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
61
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
62
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>);
63
<span class="returnvalue">void</span> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-col" title="gimp_pixel_rgn_get_col ()">gimp_pixel_rgn_get_col</a> (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
64
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
65
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
66
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
67
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);
68
<span class="returnvalue">void</span> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-rect" title="gimp_pixel_rgn_get_rect ()">gimp_pixel_rgn_get_rect</a> (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
69
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
70
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
71
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
72
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
73
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);
74
<span class="returnvalue">void</span> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-pixel" title="gimp_pixel_rgn_set_pixel ()">gimp_pixel_rgn_set_pixel</a> (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
75
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
76
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
77
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);
78
<span class="returnvalue">void</span> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-row" title="gimp_pixel_rgn_set_row ()">gimp_pixel_rgn_set_row</a> (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
79
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
80
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
81
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
82
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>);
83
<span class="returnvalue">void</span> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-col" title="gimp_pixel_rgn_set_col ()">gimp_pixel_rgn_set_col</a> (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
84
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
85
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
86
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
87
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);
88
<span class="returnvalue">void</span> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-rect" title="gimp_pixel_rgn_set_rect ()">gimp_pixel_rgn_set_rect</a> (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
89
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
90
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
91
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
92
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
93
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);
94
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-register" title="gimp_pixel_rgns_register ()">gimp_pixel_rgns_register</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> nrgns</code></em>,
95
<em class="parameter"><code>...</code></em>);
96
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-register2" title="gimp_pixel_rgns_register2 ()">gimp_pixel_rgns_register2</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> nrgns</code></em>,
97
<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> **prs</code></em>);
98
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-process" title="gimp_pixel_rgns_process ()">gimp_pixel_rgns_process</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> pri_ptr</code></em>);
210
101
<div class="refsect1" title="Description">
294
173
change the drawable content. Don't
295
174
do this, since this could prevent
296
175
the Undo-System from working as
300
178
<div class="variablelist"><table border="0">
301
179
<col align="left" valign="top">
304
182
<td><p><span class="term"><em class="parameter"><code>pr</code></em> :</span></p></td>
305
<td> a pointer to a <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> variable.
183
<td>a pointer to a <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> variable.
309
187
<td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td>
310
<td> the <a class="link" href="libgimp-gimpdrawable.html#GimpDrawable" title="GimpDrawable"><span class="type">GimpDrawable</span></a> the new region will be attached to.
188
<td>the <a class="link" href="libgimp-gimpdrawable.html#GimpDrawable" title="GimpDrawable"><span class="type">GimpDrawable</span></a> the new region will be attached to.
314
192
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
315
<td> the x coordinate of the top-left pixel of the region in the
193
<td>the x coordinate of the top-left pixel of the region in the
316
194
<em class="parameter"><code>drawable</code></em>.
320
198
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
321
<td> the y coordinate of the top-left pixel of the region in the
199
<td>the y coordinate of the top-left pixel of the region in the
322
200
<em class="parameter"><code>drawable</code></em>.
326
204
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
327
<td> the width of the region.
205
<td>the width of the region.
331
209
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
332
<td> the height of the region.
210
<td>the height of the region.
336
214
<td><p><span class="term"><em class="parameter"><code>dirty</code></em> :</span></p></td>
338
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
339
><span class="type">gboolean</span></a> indicating whether the <em class="parameter"><code>drawable</code></em> should be marked
215
<td>a <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> indicating whether the <em class="parameter"><code>drawable</code></em> should be marked
344
220
<td><p><span class="term"><em class="parameter"><code>shadow</code></em> :</span></p></td>
346
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
347
><span class="type">gboolean</span></a> indicating whether the region is attached to the
221
<td>a <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> indicating whether the region is attached to the
348
222
shadow tiles or the real <em class="parameter"><code>drawable</code></em> tiles.
355
229
<div class="refsect2" title="gimp_pixel_rgn_resize ()">
356
230
<a name="gimp-pixel-rgn-resize"></a><h3>gimp_pixel_rgn_resize ()</h3>
357
<pre class="programlisting">void gimp_pixel_rgn_resize (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
359
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
362
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
365
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
368
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
369
>gint</a> height);</pre>
371
Change the position and size of a previously initialized pixel region.</p>
231
<pre class="programlisting"><span class="returnvalue">void</span> gimp_pixel_rgn_resize (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
232
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
233
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
234
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
235
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
237
Change the position and size of a previously initialized pixel region.
374
239
<div class="variablelist"><table border="0">
375
240
<col align="left" valign="top">
378
243
<td><p><span class="term"><em class="parameter"><code>pr</code></em> :</span></p></td>
379
<td> a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
244
<td>a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
383
248
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
384
<td> the x coordinate of the new position of the region's
249
<td>the x coordinate of the new position of the region's
389
254
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
390
<td> the y coordinate of the new position of the region's
255
<td>the y coordinate of the new position of the region's
395
260
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
396
<td> the new width of the region.
261
<td>the new width of the region.
400
265
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
401
<td> the new height of the region.
266
<td>the new height of the region.
408
273
<div class="refsect2" title="gimp_pixel_rgn_get_pixel ()">
409
274
<a name="gimp-pixel-rgn-get-pixel"></a><h3>gimp_pixel_rgn_get_pixel ()</h3>
410
<pre class="programlisting">void gimp_pixel_rgn_get_pixel (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
412
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
415
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
418
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
275
<pre class="programlisting"><span class="returnvalue">void</span> gimp_pixel_rgn_get_pixel (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
276
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
277
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
278
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
421
280
Fill the buffer pointed by <em class="parameter"><code>buf</code></em> with the value of the pixel at (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>)
422
281
in the region <em class="parameter"><code>pr</code></em>. <em class="parameter"><code>buf</code></em> should be large enough to hold the pixel value
424
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
425
><span class="type">guchar</span></a> for an indexed or grayscale drawable, 2 <a
426
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
427
><span class="type">guchar</span></a> for
428
indexed with alpha or grayscale with alpha drawable, 3 <a
429
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
430
><span class="type">guchar</span></a> for
431
rgb drawable and 4 <a
432
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
433
><span class="type">guchar</span></a> for rgb with alpha drawable.</p>
282
(1 <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> for an indexed or grayscale drawable, 2 <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> for
283
indexed with alpha or grayscale with alpha drawable, 3 <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> for
284
rgb drawable and 4 <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> for rgb with alpha drawable.
436
286
<div class="variablelist"><table border="0">
437
287
<col align="left" valign="top">
440
290
<td><p><span class="term"><em class="parameter"><code>pr</code></em> :</span></p></td>
441
<td> a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
291
<td>a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
445
295
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
446
<td> a pointer to an array of <a
447
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
448
><span class="type">guchar</span></a>
296
<td>a pointer to an array of <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a>
452
300
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
453
<td> the x coordinate of the wanted pixel (relative to the drawable)
301
<td>the x coordinate of the wanted pixel (relative to the drawable)
457
305
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
458
<td> the y coordinate of the wanted pixel (relative to the drawable)
306
<td>the y coordinate of the wanted pixel (relative to the drawable)
465
313
<div class="refsect2" title="gimp_pixel_rgn_get_row ()">
466
314
<a name="gimp-pixel-rgn-get-row"></a><h3>gimp_pixel_rgn_get_row ()</h3>
467
<pre class="programlisting">void gimp_pixel_rgn_get_row (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
469
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
472
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
475
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
478
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
479
>gint</a> width);</pre>
315
<pre class="programlisting"><span class="returnvalue">void</span> gimp_pixel_rgn_get_row (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
316
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
317
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
318
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
319
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>);</pre>
481
321
Get several pixels of a region in a row. This function fills the buffer
482
322
<em class="parameter"><code>buf</code></em> with the values of the pixels from (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) to (<em class="parameter"><code>x</code></em>+<em class="parameter"><code>width</code></em>-1, <em class="parameter"><code>y</code></em>).
483
<em class="parameter"><code>buf</code></em> should be large enough to hold all these values.</p>
323
<em class="parameter"><code>buf</code></em> should be large enough to hold all these values.
486
325
<div class="variablelist"><table border="0">
487
326
<col align="left" valign="top">
490
329
<td><p><span class="term"><em class="parameter"><code>pr</code></em> :</span></p></td>
491
<td> a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
330
<td>a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
495
334
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
496
<td> a pointer to an array of <a
497
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
498
><span class="type">guchar</span></a>
335
<td>a pointer to an array of <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a>
502
339
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
503
<td> the x coordinate of the first pixel (relative to the drawable).
340
<td>the x coordinate of the first pixel (relative to the drawable).
507
344
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
508
<td> the y coordinate of the first pixel (relative to the drawable).
345
<td>the y coordinate of the first pixel (relative to the drawable).
512
349
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
513
<td> the number of pixels to get.
350
<td>the number of pixels to get.
520
357
<div class="refsect2" title="gimp_pixel_rgn_get_col ()">
521
358
<a name="gimp-pixel-rgn-get-col"></a><h3>gimp_pixel_rgn_get_col ()</h3>
522
<pre class="programlisting">void gimp_pixel_rgn_get_col (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
524
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
527
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
530
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
533
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
534
>gint</a> height);</pre>
359
<pre class="programlisting"><span class="returnvalue">void</span> gimp_pixel_rgn_get_col (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
360
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
361
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
362
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
363
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
536
365
Get several pixels of a region's column. This function fills the buffer
537
366
<em class="parameter"><code>buf</code></em> with the values of the pixels from (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) to (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>+<em class="parameter"><code>height</code></em>-1).
538
<em class="parameter"><code>buf</code></em> should be large enough to hold all these values.</p>
367
<em class="parameter"><code>buf</code></em> should be large enough to hold all these values.
541
369
<div class="variablelist"><table border="0">
542
370
<col align="left" valign="top">
545
373
<td><p><span class="term"><em class="parameter"><code>pr</code></em> :</span></p></td>
546
<td> a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
374
<td>a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
550
378
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
551
<td> a pointer to an array of <a
552
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
553
><span class="type">guchar</span></a>
379
<td>a pointer to an array of <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a>
557
383
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
558
<td> the x coordinate of the first pixel (relative to the drawable).
384
<td>the x coordinate of the first pixel (relative to the drawable).
562
388
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
563
<td> the y coordinate of the first pixel (relative to the drawable).
389
<td>the y coordinate of the first pixel (relative to the drawable).
567
393
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
568
<td> the number of pixels to get.
394
<td>the number of pixels to get.
575
401
<div class="refsect2" title="gimp_pixel_rgn_get_rect ()">
576
402
<a name="gimp-pixel-rgn-get-rect"></a><h3>gimp_pixel_rgn_get_rect ()</h3>
577
<pre class="programlisting">void gimp_pixel_rgn_get_rect (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
579
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
582
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
585
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
588
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
591
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
592
>gint</a> height);</pre>
403
<pre class="programlisting"><span class="returnvalue">void</span> gimp_pixel_rgn_get_rect (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
404
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
405
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
406
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
407
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
408
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
594
410
Get all the pixel values from the rectangle defined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em> and
595
411
<em class="parameter"><code>height</code></em>. This function fills the buffer <em class="parameter"><code>buf</code></em> with the values of the pixels
596
412
from (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) to (<em class="parameter"><code>x</code></em>+<em class="parameter"><code>width</code></em>-1, <em class="parameter"><code>y</code></em>+<em class="parameter"><code>height</code></em>-1).
597
<em class="parameter"><code>buf</code></em> should be large enough to hold all these values (<em class="parameter"><code>width</code></em>*<em class="parameter"><code>height</code></em>*bpp).</p>
413
<em class="parameter"><code>buf</code></em> should be large enough to hold all these values (<em class="parameter"><code>width</code></em>*<em class="parameter"><code>height</code></em>*bpp).
600
415
<div class="variablelist"><table border="0">
601
416
<col align="left" valign="top">
604
419
<td><p><span class="term"><em class="parameter"><code>pr</code></em> :</span></p></td>
605
<td> a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
420
<td>a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
609
424
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
610
<td> a pointer to an array of <a
611
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
612
><span class="type">guchar</span></a>
425
<td>a pointer to an array of <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a>
616
429
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
617
<td> the x coordinate of the first pixel (relative to the drawable).
430
<td>the x coordinate of the first pixel (relative to the drawable).
621
434
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
622
<td> the y coordinate of the first pixel (relative to the drawable).
435
<td>the y coordinate of the first pixel (relative to the drawable).
626
439
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
627
<td> the width of the rectangle.
440
<td>the width of the rectangle.
631
444
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
632
<td> the height of the rectangle.
445
<td>the height of the rectangle.
639
452
<div class="refsect2" title="gimp_pixel_rgn_set_pixel ()">
640
453
<a name="gimp-pixel-rgn-set-pixel"></a><h3>gimp_pixel_rgn_set_pixel ()</h3>
641
<pre class="programlisting">void gimp_pixel_rgn_set_pixel (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
643
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
646
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
649
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
652
Set the pixel at (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) to the values from <em class="parameter"><code>buf</code></em>.</p>
454
<pre class="programlisting"><span class="returnvalue">void</span> gimp_pixel_rgn_set_pixel (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
455
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
456
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
457
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
459
Set the pixel at (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) to the values from <em class="parameter"><code>buf</code></em>.
655
461
<div class="variablelist"><table border="0">
656
462
<col align="left" valign="top">
659
465
<td><p><span class="term"><em class="parameter"><code>pr</code></em> :</span></p></td>
660
<td> a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
466
<td>a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
664
470
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
665
<td> a pointer to an array of <a
666
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
667
><span class="type">guchar</span></a>.
471
<td>a pointer to an array of <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a>.
671
475
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
672
<td> the x coordinate of the pixel (relative to the drawable).
476
<td>the x coordinate of the pixel (relative to the drawable).
676
480
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
677
<td> the y coordinate of the pixel (relative to the drawable).
481
<td>the y coordinate of the pixel (relative to the drawable).
684
488
<div class="refsect2" title="gimp_pixel_rgn_set_row ()">
685
489
<a name="gimp-pixel-rgn-set-row"></a><h3>gimp_pixel_rgn_set_row ()</h3>
686
<pre class="programlisting">void gimp_pixel_rgn_set_row (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
688
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
691
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
694
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
697
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
698
>gint</a> width);</pre>
490
<pre class="programlisting"><span class="returnvalue">void</span> gimp_pixel_rgn_set_row (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
491
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
492
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
493
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
494
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>);</pre>
700
496
Set several pixels of a region in a row. This function draws the pixels
701
497
from (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) to (<em class="parameter"><code>x</code></em>+<em class="parameter"><code>width</code></em>-1, <em class="parameter"><code>y</code></em>) using the values of the buffer <em class="parameter"><code>buf</code></em>.
702
<em class="parameter"><code>buf</code></em> should be large enough to hold all these values.</p>
498
<em class="parameter"><code>buf</code></em> should be large enough to hold all these values.
705
500
<div class="variablelist"><table border="0">
706
501
<col align="left" valign="top">
709
504
<td><p><span class="term"><em class="parameter"><code>pr</code></em> :</span></p></td>
710
<td> a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
505
<td>a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
714
509
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
715
<td> a pointer to an array of <a
716
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
717
><span class="type">guchar</span></a>
510
<td>a pointer to an array of <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a>
721
514
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
722
<td> the x coordinate of the first pixel (relative to the drawable).
515
<td>the x coordinate of the first pixel (relative to the drawable).
726
519
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
727
<td> the y coordinate of the first pixel (relative to the drawable).
520
<td>the y coordinate of the first pixel (relative to the drawable).
731
524
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
732
<td> the number of pixels to set.
525
<td>the number of pixels to set.
739
532
<div class="refsect2" title="gimp_pixel_rgn_set_col ()">
740
533
<a name="gimp-pixel-rgn-set-col"></a><h3>gimp_pixel_rgn_set_col ()</h3>
741
<pre class="programlisting">void gimp_pixel_rgn_set_col (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
743
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
746
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
749
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
752
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
753
>gint</a> height);</pre>
534
<pre class="programlisting"><span class="returnvalue">void</span> gimp_pixel_rgn_set_col (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
535
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
536
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
537
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
538
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
755
540
Set several pixels of a region's column. This function draws the pixels
756
541
from (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) to (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>+<em class="parameter"><code>height</code></em>-1) using the values from the buffer <em class="parameter"><code>buf</code></em>.
757
<em class="parameter"><code>buf</code></em> should be large enough to hold all these values.</p>
542
<em class="parameter"><code>buf</code></em> should be large enough to hold all these values.
760
544
<div class="variablelist"><table border="0">
761
545
<col align="left" valign="top">
764
548
<td><p><span class="term"><em class="parameter"><code>pr</code></em> :</span></p></td>
765
<td> a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
549
<td>a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
769
553
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
770
<td> a pointer to an array of <a
771
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
772
><span class="type">guchar</span></a>
554
<td>a pointer to an array of <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a>
776
558
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
777
<td> the x coordinate of the first pixel (relative to the drawable).
559
<td>the x coordinate of the first pixel (relative to the drawable).
781
563
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
782
<td> the y coordinate of the first pixel (relative to the drawable).
564
<td>the y coordinate of the first pixel (relative to the drawable).
786
568
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
787
<td> the number of pixels to set.
569
<td>the number of pixels to set.
794
576
<div class="refsect2" title="gimp_pixel_rgn_set_rect ()">
795
577
<a name="gimp-pixel-rgn-set-rect"></a><h3>gimp_pixel_rgn_set_rect ()</h3>
796
<pre class="programlisting">void gimp_pixel_rgn_set_rect (<a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn">GimpPixelRgn</a> *pr,
798
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
801
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
804
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
807
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
810
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
811
>gint</a> height);</pre>
578
<pre class="programlisting"><span class="returnvalue">void</span> gimp_pixel_rgn_set_rect (<em class="parameter"><code><a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> *pr</code></em>,
579
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
580
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
581
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
582
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
583
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
813
585
Set all the pixel of the rectangle defined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em> and
814
586
<em class="parameter"><code>height</code></em>. This function draws the rectangle from (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) to
815
587
(<em class="parameter"><code>x</code></em>+<em class="parameter"><code>width</code></em>-1, <em class="parameter"><code>y</code></em>+<em class="parameter"><code>height</code></em>-1), using the pixel values from the buffer <em class="parameter"><code>buf</code></em>.
816
<em class="parameter"><code>buf</code></em> should be large enough to hold all these values (<em class="parameter"><code>width</code></em>*<em class="parameter"><code>height</code></em>*bpp).</p>
588
<em class="parameter"><code>buf</code></em> should be large enough to hold all these values (<em class="parameter"><code>width</code></em>*<em class="parameter"><code>height</code></em>*bpp).
819
590
<div class="variablelist"><table border="0">
820
591
<col align="left" valign="top">
823
594
<td><p><span class="term"><em class="parameter"><code>pr</code></em> :</span></p></td>
824
<td> a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
595
<td>a pointer to a previously initialized <a class="link" href="libgimp-gimppixelrgn.html#GimpPixelRgn" title="GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
828
599
<td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
829
<td> a pointer to an array of <a
830
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"
831
><span class="type">guchar</span></a>
600
<td>a pointer to an array of <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a>
835
604
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
836
<td> the x coordinate of the first pixel (relative to the drawable).
605
<td>the x coordinate of the first pixel (relative to the drawable).
840
609
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
841
<td> the y coordinate of the first pixel (relative to the drawable).
610
<td>the y coordinate of the first pixel (relative to the drawable).
845
614
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
846
<td> the width of the rectangle.
615
<td>the width of the rectangle.
850
619
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
851
<td> the height of the rectangle.
620
<td>the height of the rectangle.