Imported Upstream version 2.3.13

This commit is contained in:
Ari Pollak
2010-08-11 01:20:31 -04:00
parent a028e0b309
commit bbd6d9844c
1225 changed files with 162390 additions and 93699 deletions

View File

@ -18,10 +18,10 @@
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
<link rel="part" href="libgimpui.html" title="Part&#160;III.&#160;GIMP User Interface Library">
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of new symbols in GIMP 2.2">
<link rel="index" href="ix03.html" title="Index of new symbols in GIMP 2.4">
<link rel="index" href="ix04.html" title="Index of deprecated symbols">
<link rel="index" href="libgimp-index.html" title="Index">
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
@ -32,16 +32,16 @@
<th width="100%" align="center">GIMP Library Reference Manual</th>
<td><a accesskey="n" href="libgimp-gimppixelrgn.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2580124" class="shortcut">Top</a>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2568091" class="shortcut">Top</a>
&#160;|&#160;
<a href="#id2611792" class="shortcut">Description</a></nobr></td></tr>
<a href="#id2550281" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="libgimp-gimppixelfetcher"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2580124"></a><span class="refentrytitle">gimppixelfetcher</span>
<a name="id2568091"></a><span class="refentrytitle">gimppixelfetcher</span>
</h2>
<p>gimppixelfetcher &#8212; Functions for operating on pixel regions.</p>
</td>
@ -76,7 +76,7 @@ void <a href="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-destroy">g
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2611792"></a><h2>Description</h2>
<a name="id2550281"></a><h2>Description</h2>
<p>
These functions provide neighbourhood-based algorithms which get
dramatically slower on region boundaries, to the point where a special
@ -86,11 +86,11 @@ plug-in code more readable and shorter.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2611813"></a><h2>Details</h2>
<a name="id2632766"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2611824"></a><h3>
<a name="id2632777"></a><h3>
<a name="GimpPixelFetcherEdgeMode"></a>enum GimpPixelFetcherEdgeMode</h3>
<a class="indexterm" name="id2611835"></a><pre class="programlisting">typedef enum
<a class="indexterm" name="id2632788"></a><pre class="programlisting">typedef enum
{
GIMP_PIXEL_FETCHER_EDGE_NONE,
GIMP_PIXEL_FETCHER_EDGE_WRAP,
@ -105,18 +105,18 @@ plug-in code more readable and shorter.
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2611904"></a><h3>
<a name="id2631448"></a><h3>
<a name="GimpPixelFetcher"></a>GimpPixelFetcher</h3>
<a class="indexterm" name="id2611916"></a><pre class="programlisting">typedef struct _GimpPixelFetcher GimpPixelFetcher;</pre>
<a class="indexterm" name="id2631460"></a><pre class="programlisting">typedef struct _GimpPixelFetcher GimpPixelFetcher;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2611932"></a><h3>
<a name="id2631476"></a><h3>
<a name="gimp-pixel-fetcher-new"></a>gimp_pixel_fetcher_new ()</h3>
<a class="indexterm" name="id2611944"></a><pre class="programlisting"><a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a>* gimp_pixel_fetcher_new (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
<a class="indexterm" name="id2631488"></a><pre class="programlisting"><a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a>* gimp_pixel_fetcher_new (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
gboolean shadow);</pre>
<p>
Initialize a pixel region from the drawable.</p>
@ -127,21 +127,18 @@ Initialize a pixel region from the drawable.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>drawable</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>drawable</code></em>&#160;:</span></td>
<td> the <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a> the new region will be attached to.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>shadow</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>shadow</code></em>&#160;:</span></td>
<td> a <span class="type">gboolean</span> indicating whether the region is attached to
the shadow tiles or the real <code class="literal">drawable</code> tiles.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> a pointer to a <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> structure (or NULL).
</td>
</tr>
@ -150,9 +147,9 @@ Initialize a pixel region from the drawable.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2629053"></a><h3>
<a name="id2628003"></a><h3>
<a name="gimp-pixel-fetcher-set-edge-mode"></a>gimp_pixel_fetcher_set_edge_mode ()</h3>
<a class="indexterm" name="id2629064"></a><pre class="programlisting">void gimp_pixel_fetcher_set_edge_mode
<a class="indexterm" name="id2628014"></a><pre class="programlisting">void gimp_pixel_fetcher_set_edge_mode
(<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf,
<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcherEdgeMode">GimpPixelFetcherEdgeMode</a> mode);</pre>
<p>
@ -164,14 +161,12 @@ Change the edage mode of a previously initialized pixel region.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>pf</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>pf</code></em>&#160;:</span></td>
<td> a pointer to a previously initialized <a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher"><span class="type">GimpPixelFetcher</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mode</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>mode</code></em>&#160;:</span></td>
<td> the new edge mode from <a href="libgimp-gimppixelfetcher.html#GimpPixelFetcherEdgeMode"><span class="type">GimpPixelFetcherEdgeMode</span></a>.
</td>
</tr>
@ -180,9 +175,9 @@ Change the edage mode of a previously initialized pixel region.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2628864"></a><h3>
<a name="id2617094"></a><h3>
<a name="gimp-pixel-fetcher-set-bg-color"></a>gimp_pixel_fetcher_set_bg_color ()</h3>
<a class="indexterm" name="id2628876"></a><pre class="programlisting">void gimp_pixel_fetcher_set_bg_color (<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf,
<a class="indexterm" name="id2617105"></a><pre class="programlisting">void gimp_pixel_fetcher_set_bg_color (<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);</pre>
@ -195,14 +190,12 @@ Change the background color of a previously initialized pixel region.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>pf</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>pf</code></em>&#160;:</span></td>
<td> a pointer to a previously initialized <a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher"><span class="type">GimpPixelFetcher</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td>
<td> the color to be used as bg color.
</td>
</tr>
@ -211,9 +204,9 @@ Change the background color of a previously initialized pixel region.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2638956"></a><h3>
<a name="id2634000"></a><h3>
<a name="gimp-pixel-fetcher-get-pixel"></a>gimp_pixel_fetcher_get_pixel ()</h3>
<a class="indexterm" name="id2638967"></a><pre class="programlisting">void gimp_pixel_fetcher_get_pixel (<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf,
<a class="indexterm" name="id2634011"></a><pre class="programlisting">void gimp_pixel_fetcher_get_pixel (<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf,
gint x,
gint y,
guchar *pixel);</pre>
@ -226,26 +219,22 @@ Get a pixel from the pixel region.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>pf</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>pf</code></em>&#160;:</span></td>
<td> a pointer to a previously initialized <a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher"><span class="type">GimpPixelFetcher</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> the x coordinate of the pixel to get.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> the y coordinate of the pixel to get.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pixel</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>pixel</code></em>&#160;:</span></td>
<td> the memory location where to return the pixel.
</td>
</tr>
@ -254,9 +243,9 @@ Get a pixel from the pixel region.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2617609"></a><h3>
<a name="id2600565"></a><h3>
<a name="gimp-pixel-fetcher-put-pixel"></a>gimp_pixel_fetcher_put_pixel ()</h3>
<a class="indexterm" name="id2617620"></a><pre class="programlisting">void gimp_pixel_fetcher_put_pixel (<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf,
<a class="indexterm" name="id2613346"></a><pre class="programlisting">void gimp_pixel_fetcher_put_pixel (<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf,
gint x,
gint y,
const guchar *pixel);</pre>
@ -269,26 +258,22 @@ Set a pixel in the pixel region.</p>
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>pf</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>pf</code></em>&#160;:</span></td>
<td> a pointer to a previously initialized <a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher"><span class="type">GimpPixelFetcher</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> the x coordinate of the pixel to set.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> the y coordinate of the pixel to set.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pixel</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>pixel</code></em>&#160;:</span></td>
<td> the pixel to set.
</td>
</tr>
@ -297,9 +282,9 @@ Set a pixel in the pixel region.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2631720"></a><h3>
<a name="id2631518"></a><h3>
<a name="gimp-pixel-fetcher-destroy"></a>gimp_pixel_fetcher_destroy ()</h3>
<a class="indexterm" name="id2631732"></a><pre class="programlisting">void gimp_pixel_fetcher_destroy (<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf);</pre>
<a class="indexterm" name="id2631529"></a><pre class="programlisting">void gimp_pixel_fetcher_destroy (<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf);</pre>
<p>
Close a previously initializd pixel region.</p>
<p>
@ -308,8 +293,7 @@ Close a previously initializd pixel region.</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>pf</code></em>&#160;:</span></td>
<td><span class="term"><em class="parameter"><code>pf</code></em>&#160;:</span></td>
<td> a pointer to a previously initialized <a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher"><span class="type">GimpPixelFetcher</span></a>.
</td>
</tr></tbody>