Imported Upstream version 2.2.4

This commit is contained in:
Ari Pollak
2010-08-11 01:13:56 -04:00
parent 3154facabf
commit c5acc8ae10
5446 changed files with 2386086 additions and 390981 deletions

View File

@ -0,0 +1,35 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>GimpAspectPreview</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="libgimp-gimpexport.html" title="gimpexport"><link rel="next" href="GimpDrawablePreview.html" title="GimpDrawablePreview"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpexport.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="GimpDrawablePreview.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="GimpAspectPreview"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">GimpAspectPreview</span></h2><p>GimpAspectPreview &#8212; A widget providing a preview with fixed aspect ratio.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
<a href="GimpAspectPreview.html#GimpAspectPreview-struct">GimpAspectPreview</a>;
GtkWidget* <a href="GimpAspectPreview.html#gimp-aspect-preview-new">gimp_aspect_preview_new</a> (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
gboolean *toggle);
</pre></div><div class="refsect1" lang="en"><a name="id2638716"></a><h2>Object Hierarchy</h2><pre class="synopsis">
GObject
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBox
+----GtkVBox
+----<a
href="../libgimpwidgets/GimpPreview.html"
>GimpPreview</a>
+----GimpAspectPreview
</pre></div><div class="refsect1" lang="en"><a name="id2667781"></a><h2>Implemented Interfaces</h2><p>
GimpAspectPreview implements
AtkImplementorIface.</p></div><div class="refsect1" lang="en"><a name="id2667796"></a><h2>Description</h2><p>
A widget providing a preview with fixed aspect ratio.
</p></div><div class="refsect1" lang="en"><a name="id2664806"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2664811"></a><h3><a name="GimpAspectPreview-struct"></a>GimpAspectPreview</h3><a class="indexterm" name="id2664820"></a><pre class="programlisting">typedef struct _GimpAspectPreview GimpAspectPreview;</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2664830"></a><h3><a name="gimp-aspect-preview-new"></a>gimp_aspect_preview_new ()</h3><a class="indexterm" name="id2664839"></a><pre class="programlisting">GtkWidget* gimp_aspect_preview_new (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
gboolean *toggle);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>toggle</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpexport.html"><b>&lt;&lt;<EFBFBD>gimpexport</b></a></td><td align="right"><a accesskey="n" href="GimpDrawablePreview.html"><b>GimpDrawablePreview<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,66 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>GimpDrawablePreview</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="GimpAspectPreview.html" title="GimpAspectPreview"><link rel="next" href="libgimp-gimpdrawablecombobox.html" title="gimpdrawablecombobox"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="GimpAspectPreview.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpdrawablecombobox.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="GimpDrawablePreview"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">GimpDrawablePreview</span></h2><p>GimpDrawablePreview &#8212; A widget providing a preview of a <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a>.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
<a href="GimpDrawablePreview.html#GimpDrawablePreview-struct">GimpDrawablePreview</a>;
GtkWidget* <a href="GimpDrawablePreview.html#gimp-drawable-preview-new">gimp_drawable_preview_new</a> (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
gboolean *toggle);
<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a>* <a href="GimpDrawablePreview.html#gimp-drawable-preview-get-drawable">gimp_drawable_preview_get_drawable</a>
(<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a> *preview);
void <a href="GimpDrawablePreview.html#gimp-drawable-preview-draw-region">gimp_drawable_preview_draw_region</a>
(<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a> *preview,
const <a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *region);
</pre></div><div class="refsect1" lang="en"><a name="id2666692"></a><h2>Object Hierarchy</h2><pre class="synopsis">
GObject
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBox
+----GtkVBox
+----<a
href="../libgimpwidgets/GimpPreview.html"
>GimpPreview</a>
+----<a
href="../libgimpwidgets/libgimpwidgets-GimpScrolledPreview.html#GimpScrolledPreview"
>GimpScrolledPreview</a>
+----GimpDrawablePreview
</pre></div><div class="refsect1" lang="en"><a name="id2666745"></a><h2>Implemented Interfaces</h2><p>
GimpDrawablePreview implements
AtkImplementorIface.</p></div><div class="refsect1" lang="en"><a name="id2666760"></a><h2>Description</h2><p>
A widget providing a preview of a <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a>.
</p></div><div class="refsect1" lang="en"><a name="id2666776"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2664955"></a><h3><a name="GimpDrawablePreview-struct"></a>GimpDrawablePreview</h3><a class="indexterm" name="id2664963"></a><pre class="programlisting">typedef struct _GimpDrawablePreview GimpDrawablePreview;</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2664974"></a><h3><a name="gimp-drawable-preview-new"></a>gimp_drawable_preview_new ()</h3><a class="indexterm" name="id2664982"></a><pre class="programlisting">GtkWidget* gimp_drawable_preview_new (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
gboolean *toggle);</pre><p>
Creates a new <a href="GimpDrawablePreview.html" title="GimpDrawablePreview"><span class="type">GimpDrawablePreview</span></a> widget for <i class="parameter"><tt>drawable</tt></i>. If
updating the preview takes considerable time, you will want to
store the state of the "Preview" check-button in the plug-in
data. For convenience you can pass a pointer to the <span class="type">gboolean</span> as
<i class="parameter"><tt>toggle</tt></i>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable</tt></i><EFBFBD>:</span></td><td> a <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>toggle</tt></i><EFBFBD>:</span></td><td> pointer to a <span class="type">gboolean</span> variable to sync with the "Preview"
check-button or <tt class="literal">NULL</tt>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> A pointer to the new <a href="GimpDrawablePreview.html" title="GimpDrawablePreview"><span class="type">GimpDrawablePreview</span></a> widget.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2666394"></a><h3><a name="gimp-drawable-preview-get-drawable"></a>gimp_drawable_preview_get_drawable ()</h3><a class="indexterm" name="id2666403"></a><pre class="programlisting"><a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a>* gimp_drawable_preview_get_drawable
(<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a> *preview);</pre><p>
</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>preview</tt></i><EFBFBD>:</span></td><td> a <a href="GimpDrawablePreview.html" title="GimpDrawablePreview"><span class="type">GimpDrawablePreview</span></a> widget
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a> that has been passed to
<a href="GimpDrawablePreview.html#gimp-drawable-preview-new"><tt class="function">gimp_drawable_preview_new()</tt></a>.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2666474"></a><h3><a name="gimp-drawable-preview-draw-region"></a>gimp_drawable_preview_draw_region ()</h3><a class="indexterm" name="id2666482"></a><pre class="programlisting">void gimp_drawable_preview_draw_region
(<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a> *preview,
const <a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *region);</pre><p>
</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>preview</tt></i><EFBFBD>:</span></td><td> a <a href="GimpDrawablePreview.html" title="GimpDrawablePreview"><span class="type">GimpDrawablePreview</span></a> widget
</td></tr><tr><td><span class="term"><i class="parameter"><tt>region</tt></i><EFBFBD>:</span></td><td> a <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="GimpAspectPreview.html"><b>&lt;&lt;<EFBFBD>GimpAspectPreview</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpdrawablecombobox.html"><b>gimpdrawablecombobox<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,29 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>GimpProgressBar</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="libgimp-gimppixbuf.html" title="gimppixbuf"><link rel="next" href="libgimp-gimpmenu.html" title="gimpmenu"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimppixbuf.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpmenu.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="GimpProgressBar"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">GimpProgressBar</span></h2><p>GimpProgressBar &#8212; A widget providing a progress bar.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
<a href="GimpProgressBar.html#GimpProgressBar-struct">GimpProgressBar</a>;
GtkWidget* <a href="GimpProgressBar.html#gimp-progress-bar-new">gimp_progress_bar_new</a> (void);
</pre></div><div class="refsect1" lang="en"><a name="id2531044"></a><h2>Object Hierarchy</h2><pre class="synopsis">
GObject
+----GtkObject
+----GtkWidget
+----GtkProgress
+----GtkProgressBar
+----GimpProgressBar
</pre></div><div class="refsect1" lang="en"><a name="id2667124"></a><h2>Implemented Interfaces</h2><p>
GimpProgressBar implements
AtkImplementorIface.</p></div><div class="refsect1" lang="en"><a name="id2667139"></a><h2>Description</h2><p>
A widget providing a progress bar that automatically redirects any progress
calls to itself.
</p></div><div class="refsect1" lang="en"><a name="id2667154"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2667159"></a><h3><a name="GimpProgressBar-struct"></a>GimpProgressBar</h3><a class="indexterm" name="id2667167"></a><pre class="programlisting">typedef struct _GimpProgressBar GimpProgressBar;</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2667178"></a><h3><a name="gimp-progress-bar-new"></a>gimp_progress_bar_new ()</h3><a class="indexterm" name="id2667186"></a><pre class="programlisting">GtkWidget* gimp_progress_bar_new (void);</pre><p>
Creates a new <a href="GimpProgressBar.html" title="GimpProgressBar"><span class="type">GimpProgressBar</span></a> widget.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the new widget.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimppixbuf.html"><b>&lt;&lt;<EFBFBD>gimppixbuf</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpmenu.html"><b>gimpmenu<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Part<EFBFBD>I.<2E>GIMP Constants</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="index.html" title="GIMP Library Reference Manual"><link rel="prev" href="index.html" title="GIMP Library Reference Manual"><link rel="next" href="libgimp-gimpenums.html" title="gimpenums"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpenums.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="part" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="gimpdefinitions"></a>GIMP Constants</h1></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="index.html"><b>&lt;&lt;<EFBFBD>GIMP Library Reference Manual</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpenums.html"><b>gimpenums<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,683 @@
<ANCHOR id="libgimp-gimpenums" href="libgimp/libgimp-gimpenums.html">
<ANCHOR id="GimpAddMaskType" href="libgimp/libgimp-gimpenums.html#GimpAddMaskType">
<ANCHOR id="GimpBlendMode" href="libgimp/libgimp-gimpenums.html#GimpBlendMode">
<ANCHOR id="GimpBrushApplicationMode" href="libgimp/libgimp-gimpenums.html#GimpBrushApplicationMode">
<ANCHOR id="GimpBucketFillMode" href="libgimp/libgimp-gimpenums.html#GimpBucketFillMode">
<ANCHOR id="GimpChannelOps" href="libgimp/libgimp-gimpenums.html#GimpChannelOps">
<ANCHOR id="GimpChannelType" href="libgimp/libgimp-gimpenums.html#GimpChannelType">
<ANCHOR id="GimpCloneType" href="libgimp/libgimp-gimpenums.html#GimpCloneType">
<ANCHOR id="GimpConvertDitherType" href="libgimp/libgimp-gimpenums.html#GimpConvertDitherType">
<ANCHOR id="GimpConvertPaletteType" href="libgimp/libgimp-gimpenums.html#GimpConvertPaletteType">
<ANCHOR id="GimpConvolutionType" href="libgimp/libgimp-gimpenums.html#GimpConvolutionType">
<ANCHOR id="GimpConvolveType" href="libgimp/libgimp-gimpenums.html#GimpConvolveType">
<ANCHOR id="GimpDodgeBurnType" href="libgimp/libgimp-gimpenums.html#GimpDodgeBurnType">
<ANCHOR id="GimpFillType" href="libgimp/libgimp-gimpenums.html#GimpFillType">
<ANCHOR id="GimpGradientSegmentColor" href="libgimp/libgimp-gimpenums.html#GimpGradientSegmentColor">
<ANCHOR id="GimpGradientSegmentType" href="libgimp/libgimp-gimpenums.html#GimpGradientSegmentType">
<ANCHOR id="GimpGradientType" href="libgimp/libgimp-gimpenums.html#GimpGradientType">
<ANCHOR id="GimpHistogramChannel" href="libgimp/libgimp-gimpenums.html#GimpHistogramChannel">
<ANCHOR id="GimpHueRange" href="libgimp/libgimp-gimpenums.html#GimpHueRange">
<ANCHOR id="GimpIconType" href="libgimp/libgimp-gimpenums.html#GimpIconType">
<ANCHOR id="GimpInterpolationType" href="libgimp/libgimp-gimpenums.html#GimpInterpolationType">
<ANCHOR id="GimpLayerModeEffects" href="libgimp/libgimp-gimpenums.html#GimpLayerModeEffects">
<ANCHOR id="GimpMaskApplyMode" href="libgimp/libgimp-gimpenums.html#GimpMaskApplyMode">
<ANCHOR id="GimpMergeType" href="libgimp/libgimp-gimpenums.html#GimpMergeType">
<ANCHOR id="GimpOffsetType" href="libgimp/libgimp-gimpenums.html#GimpOffsetType">
<ANCHOR id="GimpOrientationType" href="libgimp/libgimp-gimpenums.html#GimpOrientationType">
<ANCHOR id="GimpPaintApplicationMode" href="libgimp/libgimp-gimpenums.html#GimpPaintApplicationMode">
<ANCHOR id="GimpRepeatMode" href="libgimp/libgimp-gimpenums.html#GimpRepeatMode">
<ANCHOR id="GimpRotationType" href="libgimp/libgimp-gimpenums.html#GimpRotationType">
<ANCHOR id="GimpRunMode" href="libgimp/libgimp-gimpenums.html#GimpRunMode">
<ANCHOR id="GimpSizeType" href="libgimp/libgimp-gimpenums.html#GimpSizeType">
<ANCHOR id="GimpTransferMode" href="libgimp/libgimp-gimpenums.html#GimpTransferMode">
<ANCHOR id="GimpTransformDirection" href="libgimp/libgimp-gimpenums.html#GimpTransformDirection">
<ANCHOR id="gimp-enums-get-type-names" href="libgimp/libgimp-gimpenums.html#gimp-enums-get-type-names">
<ANCHOR id="libgimp-gimp" href="libgimp/libgimp-gimp.html">
<ANCHOR id="GIMPVAR:CAPS" href="libgimp/libgimp-gimp.html#GIMPVAR:CAPS">
<ANCHOR id="gimp-version" href="libgimp/libgimp-gimp.html#gimp-version">
<ANCHOR id="gimp-major-version" href="libgimp/libgimp-gimp.html#gimp-major-version">
<ANCHOR id="gimp-minor-version" href="libgimp/libgimp-gimp.html#gimp-minor-version">
<ANCHOR id="gimp-micro-version" href="libgimp/libgimp-gimp.html#gimp-micro-version">
<ANCHOR id="gimp-get-data" href="libgimp/libgimp-gimp.html#gimp-get-data">
<ANCHOR id="gimp-get-data-size" href="libgimp/libgimp-gimp.html#gimp-get-data-size">
<ANCHOR id="gimp-set-data" href="libgimp/libgimp-gimp.html#gimp-set-data">
<ANCHOR id="GimpInitProc" href="libgimp/libgimp-gimp.html#GimpInitProc">
<ANCHOR id="GimpQuitProc" href="libgimp/libgimp-gimp.html#GimpQuitProc">
<ANCHOR id="GimpQueryProc" href="libgimp/libgimp-gimp.html#GimpQueryProc">
<ANCHOR id="GimpRunProc" href="libgimp/libgimp-gimp.html#GimpRunProc">
<ANCHOR id="GimpPlugInInfo" href="libgimp/libgimp-gimp.html#GimpPlugInInfo">
<ANCHOR id="GimpParamDef" href="libgimp/libgimp-gimp.html#GimpParamDef">
<ANCHOR id="GimpParamRegion" href="libgimp/libgimp-gimp.html#GimpParamRegion">
<ANCHOR id="GimpParamData" href="libgimp/libgimp-gimp.html#GimpParamData">
<ANCHOR id="GimpParam" href="libgimp/libgimp-gimp.html#GimpParam">
<ANCHOR id="MAIN:CAPS" href="libgimp/libgimp-gimp.html#MAIN:CAPS">
<ANCHOR id="gimp-main" href="libgimp/libgimp-gimp.html#gimp-main">
<ANCHOR id="gimp-quit" href="libgimp/libgimp-gimp.html#gimp-quit">
<ANCHOR id="gimp-install-procedure" href="libgimp/libgimp-gimp.html#gimp-install-procedure">
<ANCHOR id="gimp-install-temp-proc" href="libgimp/libgimp-gimp.html#gimp-install-temp-proc">
<ANCHOR id="gimp-uninstall-temp-proc" href="libgimp/libgimp-gimp.html#gimp-uninstall-temp-proc">
<ANCHOR id="gimp-run-procedure" href="libgimp/libgimp-gimp.html#gimp-run-procedure">
<ANCHOR id="gimp-run-procedure2" href="libgimp/libgimp-gimp.html#gimp-run-procedure2">
<ANCHOR id="gimp-destroy-params" href="libgimp/libgimp-gimp.html#gimp-destroy-params">
<ANCHOR id="gimp-destroy-paramdefs" href="libgimp/libgimp-gimp.html#gimp-destroy-paramdefs">
<ANCHOR id="gimp-tile-width" href="libgimp/libgimp-gimp.html#gimp-tile-width">
<ANCHOR id="gimp-tile-height" href="libgimp/libgimp-gimp.html#gimp-tile-height">
<ANCHOR id="gimp-shm-ID" href="libgimp/libgimp-gimp.html#gimp-shm-ID">
<ANCHOR id="gimp-shm-addr" href="libgimp/libgimp-gimp.html#gimp-shm-addr">
<ANCHOR id="gimp-gamma" href="libgimp/libgimp-gimp.html#gimp-gamma">
<ANCHOR id="gimp-install-cmap" href="libgimp/libgimp-gimp.html#gimp-install-cmap">
<ANCHOR id="gimp-min-colors" href="libgimp/libgimp-gimp.html#gimp-min-colors">
<ANCHOR id="gimp-show-tool-tips" href="libgimp/libgimp-gimp.html#gimp-show-tool-tips">
<ANCHOR id="gimp-show-help-button" href="libgimp/libgimp-gimp.html#gimp-show-help-button">
<ANCHOR id="gimp-check-size" href="libgimp/libgimp-gimp.html#gimp-check-size">
<ANCHOR id="gimp-check-type" href="libgimp/libgimp-gimp.html#gimp-check-type">
<ANCHOR id="gimp-default-display" href="libgimp/libgimp-gimp.html#gimp-default-display">
<ANCHOR id="gimp-wm-class" href="libgimp/libgimp-gimp.html#gimp-wm-class">
<ANCHOR id="gimp-display-name" href="libgimp/libgimp-gimp.html#gimp-display-name">
<ANCHOR id="gimp-monitor-number" href="libgimp/libgimp-gimp.html#gimp-monitor-number">
<ANCHOR id="gimp-get-progname" href="libgimp/libgimp-gimp.html#gimp-get-progname">
<ANCHOR id="gimp-extension-enable" href="libgimp/libgimp-gimp.html#gimp-extension-enable">
<ANCHOR id="gimp-extension-ack" href="libgimp/libgimp-gimp.html#gimp-extension-ack">
<ANCHOR id="gimp-extension-process" href="libgimp/libgimp-gimp.html#gimp-extension-process">
<ANCHOR id="gimp-parasite-find" href="libgimp/libgimp-gimp.html#gimp-parasite-find">
<ANCHOR id="gimp-parasite-list" href="libgimp/libgimp-gimp.html#gimp-parasite-list">
<ANCHOR id="gimp-parasite-attach" href="libgimp/libgimp-gimp.html#gimp-parasite-attach">
<ANCHOR id="gimp-parasite-detach" href="libgimp/libgimp-gimp.html#gimp-parasite-detach">
<ANCHOR id="gimp-attach-new-parasite" href="libgimp/libgimp-gimp.html#gimp-attach-new-parasite">
<ANCHOR id="libgimp-gimpcontext" href="libgimp/libgimp-gimpcontext.html">
<ANCHOR id="gimp-context-push" href="libgimp/libgimp-gimpcontext.html#gimp-context-push">
<ANCHOR id="gimp-context-pop" href="libgimp/libgimp-gimpcontext.html#gimp-context-pop">
<ANCHOR id="gimp-context-get-foreground" href="libgimp/libgimp-gimpcontext.html#gimp-context-get-foreground">
<ANCHOR id="gimp-context-set-foreground" href="libgimp/libgimp-gimpcontext.html#gimp-context-set-foreground">
<ANCHOR id="gimp-context-get-background" href="libgimp/libgimp-gimpcontext.html#gimp-context-get-background">
<ANCHOR id="gimp-context-set-background" href="libgimp/libgimp-gimpcontext.html#gimp-context-set-background">
<ANCHOR id="gimp-context-set-default-colors" href="libgimp/libgimp-gimpcontext.html#gimp-context-set-default-colors">
<ANCHOR id="gimp-context-swap-colors" href="libgimp/libgimp-gimpcontext.html#gimp-context-swap-colors">
<ANCHOR id="gimp-context-get-opacity" href="libgimp/libgimp-gimpcontext.html#gimp-context-get-opacity">
<ANCHOR id="gimp-context-set-opacity" href="libgimp/libgimp-gimpcontext.html#gimp-context-set-opacity">
<ANCHOR id="gimp-context-get-paint-mode" href="libgimp/libgimp-gimpcontext.html#gimp-context-get-paint-mode">
<ANCHOR id="gimp-context-set-paint-mode" href="libgimp/libgimp-gimpcontext.html#gimp-context-set-paint-mode">
<ANCHOR id="gimp-context-get-brush" href="libgimp/libgimp-gimpcontext.html#gimp-context-get-brush">
<ANCHOR id="gimp-context-set-brush" href="libgimp/libgimp-gimpcontext.html#gimp-context-set-brush">
<ANCHOR id="gimp-context-get-pattern" href="libgimp/libgimp-gimpcontext.html#gimp-context-get-pattern">
<ANCHOR id="gimp-context-set-pattern" href="libgimp/libgimp-gimpcontext.html#gimp-context-set-pattern">
<ANCHOR id="gimp-context-get-gradient" href="libgimp/libgimp-gimpcontext.html#gimp-context-get-gradient">
<ANCHOR id="gimp-context-set-gradient" href="libgimp/libgimp-gimpcontext.html#gimp-context-set-gradient">
<ANCHOR id="gimp-context-get-palette" href="libgimp/libgimp-gimpcontext.html#gimp-context-get-palette">
<ANCHOR id="gimp-context-set-palette" href="libgimp/libgimp-gimpcontext.html#gimp-context-set-palette">
<ANCHOR id="gimp-context-get-font" href="libgimp/libgimp-gimpcontext.html#gimp-context-get-font">
<ANCHOR id="gimp-context-set-font" href="libgimp/libgimp-gimpcontext.html#gimp-context-set-font">
<ANCHOR id="libgimp-gimpgimprc" href="libgimp/libgimp-gimpgimprc.html">
<ANCHOR id="gimp-gimprc-query" href="libgimp/libgimp-gimpgimprc.html#gimp-gimprc-query">
<ANCHOR id="gimp-gimprc-set" href="libgimp/libgimp-gimpgimprc.html#gimp-gimprc-set">
<ANCHOR id="gimp-get-default-comment" href="libgimp/libgimp-gimpgimprc.html#gimp-get-default-comment">
<ANCHOR id="gimp-get-module-load-inhibit" href="libgimp/libgimp-gimpgimprc.html#gimp-get-module-load-inhibit">
<ANCHOR id="gimp-get-monitor-resolution" href="libgimp/libgimp-gimpgimprc.html#gimp-get-monitor-resolution">
<ANCHOR id="gimp-get-theme-dir" href="libgimp/libgimp-gimpgimprc.html#gimp-get-theme-dir">
<ANCHOR id="libgimp-gimphelp" href="libgimp/libgimp-gimphelp.html">
<ANCHOR id="gimp-help" href="libgimp/libgimp-gimphelp.html#gimp-help">
<ANCHOR id="libgimp-gimpmessage" href="libgimp/libgimp-gimpmessage.html">
<ANCHOR id="gimp-message" href="libgimp/libgimp-gimpmessage.html#gimp-message">
<ANCHOR id="gimp-message-get-handler" href="libgimp/libgimp-gimpmessage.html#gimp-message-get-handler">
<ANCHOR id="gimp-message-set-handler" href="libgimp/libgimp-gimpmessage.html#gimp-message-set-handler">
<ANCHOR id="libgimp-gimpplugin" href="libgimp/libgimp-gimpplugin.html">
<ANCHOR id="gimp-plugin-domain-register" href="libgimp/libgimp-gimpplugin.html#gimp-plugin-domain-register">
<ANCHOR id="gimp-plugin-help-register" href="libgimp/libgimp-gimpplugin.html#gimp-plugin-help-register">
<ANCHOR id="gimp-plugin-icon-register" href="libgimp/libgimp-gimpplugin.html#gimp-plugin-icon-register">
<ANCHOR id="gimp-plugin-menu-register" href="libgimp/libgimp-gimpplugin.html#gimp-plugin-menu-register">
<ANCHOR id="libgimp-gimpproceduraldb" href="libgimp/libgimp-gimpproceduraldb.html">
<ANCHOR id="gimp-procedural-db-temp-name" href="libgimp/libgimp-gimpproceduraldb.html#gimp-procedural-db-temp-name">
<ANCHOR id="gimp-procedural-db-proc-info" href="libgimp/libgimp-gimpproceduraldb.html#gimp-procedural-db-proc-info">
<ANCHOR id="gimp-procedural-db-get-data" href="libgimp/libgimp-gimpproceduraldb.html#gimp-procedural-db-get-data">
<ANCHOR id="gimp-procedural-db-set-data" href="libgimp/libgimp-gimpproceduraldb.html#gimp-procedural-db-set-data">
<ANCHOR id="gimp-procedural-db-dump" href="libgimp/libgimp-gimpproceduraldb.html#gimp-procedural-db-dump">
<ANCHOR id="gimp-procedural-db-query" href="libgimp/libgimp-gimpproceduraldb.html#gimp-procedural-db-query">
<ANCHOR id="gimp-procedural-db-proc-arg" href="libgimp/libgimp-gimpproceduraldb.html#gimp-procedural-db-proc-arg">
<ANCHOR id="gimp-procedural-db-proc-val" href="libgimp/libgimp-gimpproceduraldb.html#gimp-procedural-db-proc-val">
<ANCHOR id="gimp-procedural-db-get-data-size" href="libgimp/libgimp-gimpproceduraldb.html#gimp-procedural-db-get-data-size">
<ANCHOR id="libgimp-gimpprogress" href="libgimp/libgimp-gimpprogress.html">
<ANCHOR id="GimpProgressStartCallback" href="libgimp/libgimp-gimpprogress.html#GimpProgressStartCallback">
<ANCHOR id="GimpProgressEndCallback" href="libgimp/libgimp-gimpprogress.html#GimpProgressEndCallback">
<ANCHOR id="GimpProgressTextCallback" href="libgimp/libgimp-gimpprogress.html#GimpProgressTextCallback">
<ANCHOR id="GimpProgressValueCallback" href="libgimp/libgimp-gimpprogress.html#GimpProgressValueCallback">
<ANCHOR id="gimp-progress-init" href="libgimp/libgimp-gimpprogress.html#gimp-progress-init">
<ANCHOR id="gimp-progress-update" href="libgimp/libgimp-gimpprogress.html#gimp-progress-update">
<ANCHOR id="gimp-progress-install" href="libgimp/libgimp-gimpprogress.html#gimp-progress-install">
<ANCHOR id="gimp-progress-uninstall" href="libgimp/libgimp-gimpprogress.html#gimp-progress-uninstall">
<ANCHOR id="gimp-progress-cancel" href="libgimp/libgimp-gimpprogress.html#gimp-progress-cancel">
<ANCHOR id="libgimp-gimpchannel" href="libgimp/libgimp-gimpchannel.html">
<ANCHOR id="gimp-channel-new" href="libgimp/libgimp-gimpchannel.html#gimp-channel-new">
<ANCHOR id="gimp-channel-copy" href="libgimp/libgimp-gimpchannel.html#gimp-channel-copy">
<ANCHOR id="gimp-channel-get-show-masked" href="libgimp/libgimp-gimpchannel.html#gimp-channel-get-show-masked">
<ANCHOR id="gimp-channel-set-show-masked" href="libgimp/libgimp-gimpchannel.html#gimp-channel-set-show-masked">
<ANCHOR id="gimp-channel-get-opacity" href="libgimp/libgimp-gimpchannel.html#gimp-channel-get-opacity">
<ANCHOR id="gimp-channel-set-opacity" href="libgimp/libgimp-gimpchannel.html#gimp-channel-set-opacity">
<ANCHOR id="gimp-channel-get-color" href="libgimp/libgimp-gimpchannel.html#gimp-channel-get-color">
<ANCHOR id="gimp-channel-set-color" href="libgimp/libgimp-gimpchannel.html#gimp-channel-set-color">
<ANCHOR id="gimp-channel-combine-masks" href="libgimp/libgimp-gimpchannel.html#gimp-channel-combine-masks">
<ANCHOR id="libgimp-gimpcolor" href="libgimp/libgimp-gimpcolor.html">
<ANCHOR id="gimp-brightness-contrast" href="libgimp/libgimp-gimpcolor.html#gimp-brightness-contrast">
<ANCHOR id="gimp-levels" href="libgimp/libgimp-gimpcolor.html#gimp-levels">
<ANCHOR id="gimp-levels-auto" href="libgimp/libgimp-gimpcolor.html#gimp-levels-auto">
<ANCHOR id="gimp-levels-stretch" href="libgimp/libgimp-gimpcolor.html#gimp-levels-stretch">
<ANCHOR id="gimp-posterize" href="libgimp/libgimp-gimpcolor.html#gimp-posterize">
<ANCHOR id="gimp-desaturate" href="libgimp/libgimp-gimpcolor.html#gimp-desaturate">
<ANCHOR id="gimp-equalize" href="libgimp/libgimp-gimpcolor.html#gimp-equalize">
<ANCHOR id="gimp-invert" href="libgimp/libgimp-gimpcolor.html#gimp-invert">
<ANCHOR id="gimp-curves-spline" href="libgimp/libgimp-gimpcolor.html#gimp-curves-spline">
<ANCHOR id="gimp-curves-explicit" href="libgimp/libgimp-gimpcolor.html#gimp-curves-explicit">
<ANCHOR id="gimp-color-balance" href="libgimp/libgimp-gimpcolor.html#gimp-color-balance">
<ANCHOR id="gimp-colorize" href="libgimp/libgimp-gimpcolor.html#gimp-colorize">
<ANCHOR id="gimp-histogram" href="libgimp/libgimp-gimpcolor.html#gimp-histogram">
<ANCHOR id="gimp-hue-saturation" href="libgimp/libgimp-gimpcolor.html#gimp-hue-saturation">
<ANCHOR id="gimp-threshold" href="libgimp/libgimp-gimpcolor.html#gimp-threshold">
<ANCHOR id="libgimp-gimpconvert" href="libgimp/libgimp-gimpconvert.html">
<ANCHOR id="gimp-image-convert-rgb" href="libgimp/libgimp-gimpconvert.html#gimp-image-convert-rgb">
<ANCHOR id="gimp-image-convert-grayscale" href="libgimp/libgimp-gimpconvert.html#gimp-image-convert-grayscale">
<ANCHOR id="gimp-image-convert-indexed" href="libgimp/libgimp-gimpconvert.html#gimp-image-convert-indexed">
<ANCHOR id="libgimp-gimpdisplay" href="libgimp/libgimp-gimpdisplay.html">
<ANCHOR id="gimp-display-new" href="libgimp/libgimp-gimpdisplay.html#gimp-display-new">
<ANCHOR id="gimp-display-delete" href="libgimp/libgimp-gimpdisplay.html#gimp-display-delete">
<ANCHOR id="gimp-displays-flush" href="libgimp/libgimp-gimpdisplay.html#gimp-displays-flush">
<ANCHOR id="gimp-displays-reconnect" href="libgimp/libgimp-gimpdisplay.html#gimp-displays-reconnect">
<ANCHOR id="libgimp-gimpdrawable" href="libgimp/libgimp-gimpdrawable.html">
<ANCHOR id="GimpDrawable" href="libgimp/libgimp-gimpdrawable.html#GimpDrawable">
<ANCHOR id="gimp-drawable-get" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-get">
<ANCHOR id="gimp-drawable-detach" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-detach">
<ANCHOR id="gimp-drawable-flush" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-flush">
<ANCHOR id="gimp-drawable-delete" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-delete">
<ANCHOR id="gimp-drawable-get-name" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-get-name">
<ANCHOR id="gimp-drawable-set-name" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-set-name">
<ANCHOR id="gimp-drawable-get-visible" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-get-visible">
<ANCHOR id="gimp-drawable-set-visible" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-set-visible">
<ANCHOR id="gimp-drawable-get-linked" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-get-linked">
<ANCHOR id="gimp-drawable-set-linked" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-set-linked">
<ANCHOR id="gimp-drawable-get-tattoo" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-get-tattoo">
<ANCHOR id="gimp-drawable-set-tattoo" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-set-tattoo">
<ANCHOR id="gimp-drawable-get-pixel" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-get-pixel">
<ANCHOR id="gimp-drawable-set-pixel" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-set-pixel">
<ANCHOR id="gimp-drawable-get-tile" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-get-tile">
<ANCHOR id="gimp-drawable-get-tile2" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-get-tile2">
<ANCHOR id="gimp-drawable-get-thumbnail-data" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-get-thumbnail-data">
<ANCHOR id="gimp-drawable-get-sub-thumbnail-data" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-get-sub-thumbnail-data">
<ANCHOR id="gimp-drawable-get-color-uchar" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-get-color-uchar">
<ANCHOR id="gimp-drawable-merge-shadow" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-merge-shadow">
<ANCHOR id="gimp-drawable-fill" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-fill">
<ANCHOR id="gimp-drawable-update" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-update">
<ANCHOR id="gimp-drawable-mask-bounds" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-mask-bounds">
<ANCHOR id="gimp-drawable-mask-intersect" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-mask-intersect">
<ANCHOR id="gimp-drawable-get-image" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-get-image">
<ANCHOR id="gimp-drawable-set-image" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-set-image">
<ANCHOR id="gimp-drawable-has-alpha" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-has-alpha">
<ANCHOR id="gimp-drawable-type-with-alpha" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-type-with-alpha">
<ANCHOR id="gimp-drawable-type" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-type">
<ANCHOR id="gimp-drawable-is-rgb" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-is-rgb">
<ANCHOR id="gimp-drawable-is-gray" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-is-gray">
<ANCHOR id="gimp-drawable-is-indexed" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-is-indexed">
<ANCHOR id="gimp-drawable-bpp" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-bpp">
<ANCHOR id="gimp-drawable-width" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-width">
<ANCHOR id="gimp-drawable-height" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-height">
<ANCHOR id="gimp-drawable-offsets" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-offsets">
<ANCHOR id="gimp-drawable-is-layer" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-is-layer">
<ANCHOR id="gimp-drawable-is-layer-mask" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-is-layer-mask">
<ANCHOR id="gimp-drawable-is-channel" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-is-channel">
<ANCHOR id="gimp-drawable-offset" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-offset">
<ANCHOR id="gimp-drawable-parasite-find" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-parasite-find">
<ANCHOR id="gimp-drawable-parasite-list" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-parasite-list">
<ANCHOR id="gimp-drawable-parasite-attach" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-parasite-attach">
<ANCHOR id="gimp-drawable-parasite-detach" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-parasite-detach">
<ANCHOR id="gimp-drawable-attach-new-parasite" href="libgimp/libgimp-gimpdrawable.html#gimp-drawable-attach-new-parasite">
<ANCHOR id="libgimp-gimpdrawabletransform" href="libgimp/libgimp-gimpdrawabletransform.html">
<ANCHOR id="gimp-drawable-transform-flip-simple" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-flip-simple">
<ANCHOR id="gimp-drawable-transform-flip" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-flip">
<ANCHOR id="gimp-drawable-transform-flip-default" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-flip-default">
<ANCHOR id="gimp-drawable-transform-perspective" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-perspective">
<ANCHOR id="gimp-drawable-transform-perspective-default" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-perspective-default">
<ANCHOR id="gimp-drawable-transform-rotate-simple" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-rotate-simple">
<ANCHOR id="gimp-drawable-transform-rotate" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-rotate">
<ANCHOR id="gimp-drawable-transform-rotate-default" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-rotate-default">
<ANCHOR id="gimp-drawable-transform-scale" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-scale">
<ANCHOR id="gimp-drawable-transform-scale-default" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-scale-default">
<ANCHOR id="gimp-drawable-transform-shear" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-shear">
<ANCHOR id="gimp-drawable-transform-shear-default" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-shear-default">
<ANCHOR id="gimp-drawable-transform-2d" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-2d">
<ANCHOR id="gimp-drawable-transform-2d-default" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-2d-default">
<ANCHOR id="gimp-drawable-transform-matrix" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-matrix">
<ANCHOR id="gimp-drawable-transform-matrix-default" href="libgimp/libgimp-gimpdrawabletransform.html#gimp-drawable-transform-matrix-default">
<ANCHOR id="libgimp-gimpedit" href="libgimp/libgimp-gimpedit.html">
<ANCHOR id="gimp-edit-cut" href="libgimp/libgimp-gimpedit.html#gimp-edit-cut">
<ANCHOR id="gimp-edit-copy" href="libgimp/libgimp-gimpedit.html#gimp-edit-copy">
<ANCHOR id="gimp-edit-copy-visible" href="libgimp/libgimp-gimpedit.html#gimp-edit-copy-visible">
<ANCHOR id="gimp-edit-paste" href="libgimp/libgimp-gimpedit.html#gimp-edit-paste">
<ANCHOR id="gimp-edit-clear" href="libgimp/libgimp-gimpedit.html#gimp-edit-clear">
<ANCHOR id="gimp-edit-fill" href="libgimp/libgimp-gimpedit.html#gimp-edit-fill">
<ANCHOR id="gimp-edit-bucket-fill" href="libgimp/libgimp-gimpedit.html#gimp-edit-bucket-fill">
<ANCHOR id="gimp-edit-blend" href="libgimp/libgimp-gimpedit.html#gimp-edit-blend">
<ANCHOR id="gimp-edit-stroke" href="libgimp/libgimp-gimpedit.html#gimp-edit-stroke">
<ANCHOR id="libgimp-gimpfileops" href="libgimp/libgimp-gimpfileops.html">
<ANCHOR id="gimp-temp-name" href="libgimp/libgimp-gimpfileops.html#gimp-temp-name">
<ANCHOR id="gimp-file-load" href="libgimp/libgimp-gimpfileops.html#gimp-file-load">
<ANCHOR id="gimp-file-save" href="libgimp/libgimp-gimpfileops.html#gimp-file-save">
<ANCHOR id="gimp-register-magic-load-handler" href="libgimp/libgimp-gimpfileops.html#gimp-register-magic-load-handler">
<ANCHOR id="gimp-register-load-handler" href="libgimp/libgimp-gimpfileops.html#gimp-register-load-handler">
<ANCHOR id="gimp-register-save-handler" href="libgimp/libgimp-gimpfileops.html#gimp-register-save-handler">
<ANCHOR id="gimp-register-file-handler-mime" href="libgimp/libgimp-gimpfileops.html#gimp-register-file-handler-mime">
<ANCHOR id="gimp-register-thumbnail-loader" href="libgimp/libgimp-gimpfileops.html#gimp-register-thumbnail-loader">
<ANCHOR id="libgimp-gimpfloatingsel" href="libgimp/libgimp-gimpfloatingsel.html">
<ANCHOR id="gimp-floating-sel-remove" href="libgimp/libgimp-gimpfloatingsel.html#gimp-floating-sel-remove">
<ANCHOR id="gimp-floating-sel-anchor" href="libgimp/libgimp-gimpfloatingsel.html#gimp-floating-sel-anchor">
<ANCHOR id="gimp-floating-sel-to-layer" href="libgimp/libgimp-gimpfloatingsel.html#gimp-floating-sel-to-layer">
<ANCHOR id="gimp-floating-sel-attach" href="libgimp/libgimp-gimpfloatingsel.html#gimp-floating-sel-attach">
<ANCHOR id="gimp-floating-sel-rigor" href="libgimp/libgimp-gimpfloatingsel.html#gimp-floating-sel-rigor">
<ANCHOR id="gimp-floating-sel-relax" href="libgimp/libgimp-gimpfloatingsel.html#gimp-floating-sel-relax">
<ANCHOR id="libgimp-gimpguides" href="libgimp/libgimp-gimpguides.html">
<ANCHOR id="gimp-image-add-hguide" href="libgimp/libgimp-gimpguides.html#gimp-image-add-hguide">
<ANCHOR id="gimp-image-add-vguide" href="libgimp/libgimp-gimpguides.html#gimp-image-add-vguide">
<ANCHOR id="gimp-image-delete-guide" href="libgimp/libgimp-gimpguides.html#gimp-image-delete-guide">
<ANCHOR id="gimp-image-find-next-guide" href="libgimp/libgimp-gimpguides.html#gimp-image-find-next-guide">
<ANCHOR id="gimp-image-get-guide-orientation" href="libgimp/libgimp-gimpguides.html#gimp-image-get-guide-orientation">
<ANCHOR id="gimp-image-get-guide-position" href="libgimp/libgimp-gimpguides.html#gimp-image-get-guide-position">
<ANCHOR id="libgimp-gimpimage" href="libgimp/libgimp-gimpimage.html">
<ANCHOR id="gimp-image-list" href="libgimp/libgimp-gimpimage.html#gimp-image-list">
<ANCHOR id="gimp-image-new" href="libgimp/libgimp-gimpimage.html#gimp-image-new">
<ANCHOR id="gimp-image-duplicate" href="libgimp/libgimp-gimpimage.html#gimp-image-duplicate">
<ANCHOR id="gimp-image-delete" href="libgimp/libgimp-gimpimage.html#gimp-image-delete">
<ANCHOR id="gimp-image-base-type" href="libgimp/libgimp-gimpimage.html#gimp-image-base-type">
<ANCHOR id="gimp-image-width" href="libgimp/libgimp-gimpimage.html#gimp-image-width">
<ANCHOR id="gimp-image-height" href="libgimp/libgimp-gimpimage.html#gimp-image-height">
<ANCHOR id="gimp-image-free-shadow" href="libgimp/libgimp-gimpimage.html#gimp-image-free-shadow">
<ANCHOR id="gimp-image-flip" href="libgimp/libgimp-gimpimage.html#gimp-image-flip">
<ANCHOR id="gimp-image-rotate" href="libgimp/libgimp-gimpimage.html#gimp-image-rotate">
<ANCHOR id="gimp-image-resize" href="libgimp/libgimp-gimpimage.html#gimp-image-resize">
<ANCHOR id="gimp-image-resize-to-layers" href="libgimp/libgimp-gimpimage.html#gimp-image-resize-to-layers">
<ANCHOR id="gimp-image-scale" href="libgimp/libgimp-gimpimage.html#gimp-image-scale">
<ANCHOR id="gimp-image-crop" href="libgimp/libgimp-gimpimage.html#gimp-image-crop">
<ANCHOR id="gimp-image-get-layers" href="libgimp/libgimp-gimpimage.html#gimp-image-get-layers">
<ANCHOR id="gimp-image-get-channels" href="libgimp/libgimp-gimpimage.html#gimp-image-get-channels">
<ANCHOR id="gimp-image-get-active-drawable" href="libgimp/libgimp-gimpimage.html#gimp-image-get-active-drawable">
<ANCHOR id="gimp-image-unset-active-channel" href="libgimp/libgimp-gimpimage.html#gimp-image-unset-active-channel">
<ANCHOR id="gimp-image-get-floating-sel" href="libgimp/libgimp-gimpimage.html#gimp-image-get-floating-sel">
<ANCHOR id="gimp-image-floating-sel-attached-to" href="libgimp/libgimp-gimpimage.html#gimp-image-floating-sel-attached-to">
<ANCHOR id="gimp-image-pick-color" href="libgimp/libgimp-gimpimage.html#gimp-image-pick-color">
<ANCHOR id="gimp-image-pick-correlate-layer" href="libgimp/libgimp-gimpimage.html#gimp-image-pick-correlate-layer">
<ANCHOR id="gimp-image-add-layer" href="libgimp/libgimp-gimpimage.html#gimp-image-add-layer">
<ANCHOR id="gimp-image-remove-layer" href="libgimp/libgimp-gimpimage.html#gimp-image-remove-layer">
<ANCHOR id="gimp-image-raise-layer" href="libgimp/libgimp-gimpimage.html#gimp-image-raise-layer">
<ANCHOR id="gimp-image-lower-layer" href="libgimp/libgimp-gimpimage.html#gimp-image-lower-layer">
<ANCHOR id="gimp-image-raise-layer-to-top" href="libgimp/libgimp-gimpimage.html#gimp-image-raise-layer-to-top">
<ANCHOR id="gimp-image-lower-layer-to-bottom" href="libgimp/libgimp-gimpimage.html#gimp-image-lower-layer-to-bottom">
<ANCHOR id="gimp-image-add-channel" href="libgimp/libgimp-gimpimage.html#gimp-image-add-channel">
<ANCHOR id="gimp-image-remove-channel" href="libgimp/libgimp-gimpimage.html#gimp-image-remove-channel">
<ANCHOR id="gimp-image-raise-channel" href="libgimp/libgimp-gimpimage.html#gimp-image-raise-channel">
<ANCHOR id="gimp-image-lower-channel" href="libgimp/libgimp-gimpimage.html#gimp-image-lower-channel">
<ANCHOR id="gimp-image-flatten" href="libgimp/libgimp-gimpimage.html#gimp-image-flatten">
<ANCHOR id="gimp-image-merge-visible-layers" href="libgimp/libgimp-gimpimage.html#gimp-image-merge-visible-layers">
<ANCHOR id="gimp-image-merge-down" href="libgimp/libgimp-gimpimage.html#gimp-image-merge-down">
<ANCHOR id="gimp-image-clean-all" href="libgimp/libgimp-gimpimage.html#gimp-image-clean-all">
<ANCHOR id="gimp-image-is-dirty" href="libgimp/libgimp-gimpimage.html#gimp-image-is-dirty">
<ANCHOR id="gimp-image-get-active-layer" href="libgimp/libgimp-gimpimage.html#gimp-image-get-active-layer">
<ANCHOR id="gimp-image-set-active-layer" href="libgimp/libgimp-gimpimage.html#gimp-image-set-active-layer">
<ANCHOR id="gimp-image-get-active-channel" href="libgimp/libgimp-gimpimage.html#gimp-image-get-active-channel">
<ANCHOR id="gimp-image-set-active-channel" href="libgimp/libgimp-gimpimage.html#gimp-image-set-active-channel">
<ANCHOR id="gimp-image-get-selection" href="libgimp/libgimp-gimpimage.html#gimp-image-get-selection">
<ANCHOR id="gimp-image-get-component-active" href="libgimp/libgimp-gimpimage.html#gimp-image-get-component-active">
<ANCHOR id="gimp-image-set-component-active" href="libgimp/libgimp-gimpimage.html#gimp-image-set-component-active">
<ANCHOR id="gimp-image-get-component-visible" href="libgimp/libgimp-gimpimage.html#gimp-image-get-component-visible">
<ANCHOR id="gimp-image-set-component-visible" href="libgimp/libgimp-gimpimage.html#gimp-image-set-component-visible">
<ANCHOR id="gimp-image-get-filename" href="libgimp/libgimp-gimpimage.html#gimp-image-get-filename">
<ANCHOR id="gimp-image-set-filename" href="libgimp/libgimp-gimpimage.html#gimp-image-set-filename">
<ANCHOR id="gimp-image-get-name" href="libgimp/libgimp-gimpimage.html#gimp-image-get-name">
<ANCHOR id="gimp-image-get-resolution" href="libgimp/libgimp-gimpimage.html#gimp-image-get-resolution">
<ANCHOR id="gimp-image-set-resolution" href="libgimp/libgimp-gimpimage.html#gimp-image-set-resolution">
<ANCHOR id="gimp-image-get-unit" href="libgimp/libgimp-gimpimage.html#gimp-image-get-unit">
<ANCHOR id="gimp-image-set-unit" href="libgimp/libgimp-gimpimage.html#gimp-image-set-unit">
<ANCHOR id="gimp-image-set-tattoo-state" href="libgimp/libgimp-gimpimage.html#gimp-image-set-tattoo-state">
<ANCHOR id="gimp-image-get-tattoo-state" href="libgimp/libgimp-gimpimage.html#gimp-image-get-tattoo-state">
<ANCHOR id="gimp-image-get-layer-by-tattoo" href="libgimp/libgimp-gimpimage.html#gimp-image-get-layer-by-tattoo">
<ANCHOR id="gimp-image-get-channel-by-tattoo" href="libgimp/libgimp-gimpimage.html#gimp-image-get-channel-by-tattoo">
<ANCHOR id="gimp-image-get-cmap" href="libgimp/libgimp-gimpimage.html#gimp-image-get-cmap">
<ANCHOR id="gimp-image-set-cmap" href="libgimp/libgimp-gimpimage.html#gimp-image-set-cmap">
<ANCHOR id="gimp-image-get-colormap" href="libgimp/libgimp-gimpimage.html#gimp-image-get-colormap">
<ANCHOR id="gimp-image-set-colormap" href="libgimp/libgimp-gimpimage.html#gimp-image-set-colormap">
<ANCHOR id="gimp-image-get-thumbnail-data" href="libgimp/libgimp-gimpimage.html#gimp-image-get-thumbnail-data">
<ANCHOR id="gimp-image-parasite-find" href="libgimp/libgimp-gimpimage.html#gimp-image-parasite-find">
<ANCHOR id="gimp-image-parasite-list" href="libgimp/libgimp-gimpimage.html#gimp-image-parasite-list">
<ANCHOR id="gimp-image-parasite-attach" href="libgimp/libgimp-gimpimage.html#gimp-image-parasite-attach">
<ANCHOR id="gimp-image-parasite-detach" href="libgimp/libgimp-gimpimage.html#gimp-image-parasite-detach">
<ANCHOR id="gimp-image-attach-new-parasite" href="libgimp/libgimp-gimpimage.html#gimp-image-attach-new-parasite">
<ANCHOR id="libgimp-gimplayer" href="libgimp/libgimp-gimplayer.html">
<ANCHOR id="gimp-layer-new" href="libgimp/libgimp-gimplayer.html#gimp-layer-new">
<ANCHOR id="gimp-layer-copy" href="libgimp/libgimp-gimplayer.html#gimp-layer-copy">
<ANCHOR id="gimp-layer-scale" href="libgimp/libgimp-gimplayer.html#gimp-layer-scale">
<ANCHOR id="gimp-layer-resize" href="libgimp/libgimp-gimplayer.html#gimp-layer-resize">
<ANCHOR id="gimp-layer-resize-to-image-size" href="libgimp/libgimp-gimplayer.html#gimp-layer-resize-to-image-size">
<ANCHOR id="gimp-layer-translate" href="libgimp/libgimp-gimplayer.html#gimp-layer-translate">
<ANCHOR id="gimp-layer-add-alpha" href="libgimp/libgimp-gimplayer.html#gimp-layer-add-alpha">
<ANCHOR id="gimp-layer-set-offsets" href="libgimp/libgimp-gimplayer.html#gimp-layer-set-offsets">
<ANCHOR id="gimp-layer-create-mask" href="libgimp/libgimp-gimplayer.html#gimp-layer-create-mask">
<ANCHOR id="gimp-layer-from-mask" href="libgimp/libgimp-gimplayer.html#gimp-layer-from-mask">
<ANCHOR id="gimp-layer-get-mask" href="libgimp/libgimp-gimplayer.html#gimp-layer-get-mask">
<ANCHOR id="gimp-layer-add-mask" href="libgimp/libgimp-gimplayer.html#gimp-layer-add-mask">
<ANCHOR id="gimp-layer-remove-mask" href="libgimp/libgimp-gimplayer.html#gimp-layer-remove-mask">
<ANCHOR id="gimp-layer-new-from-drawable" href="libgimp/libgimp-gimplayer.html#gimp-layer-new-from-drawable">
<ANCHOR id="gimp-layer-get-preserve-trans" href="libgimp/libgimp-gimplayer.html#gimp-layer-get-preserve-trans">
<ANCHOR id="gimp-layer-set-preserve-trans" href="libgimp/libgimp-gimplayer.html#gimp-layer-set-preserve-trans">
<ANCHOR id="gimp-layer-get-apply-mask" href="libgimp/libgimp-gimplayer.html#gimp-layer-get-apply-mask">
<ANCHOR id="gimp-layer-set-apply-mask" href="libgimp/libgimp-gimplayer.html#gimp-layer-set-apply-mask">
<ANCHOR id="gimp-layer-get-show-mask" href="libgimp/libgimp-gimplayer.html#gimp-layer-get-show-mask">
<ANCHOR id="gimp-layer-set-show-mask" href="libgimp/libgimp-gimplayer.html#gimp-layer-set-show-mask">
<ANCHOR id="gimp-layer-get-edit-mask" href="libgimp/libgimp-gimplayer.html#gimp-layer-get-edit-mask">
<ANCHOR id="gimp-layer-set-edit-mask" href="libgimp/libgimp-gimplayer.html#gimp-layer-set-edit-mask">
<ANCHOR id="gimp-layer-get-opacity" href="libgimp/libgimp-gimplayer.html#gimp-layer-get-opacity">
<ANCHOR id="gimp-layer-set-opacity" href="libgimp/libgimp-gimplayer.html#gimp-layer-set-opacity">
<ANCHOR id="gimp-layer-get-mode" href="libgimp/libgimp-gimplayer.html#gimp-layer-get-mode">
<ANCHOR id="gimp-layer-set-mode" href="libgimp/libgimp-gimplayer.html#gimp-layer-set-mode">
<ANCHOR id="gimp-layer-is-floating-sel" href="libgimp/libgimp-gimplayer.html#gimp-layer-is-floating-sel">
<ANCHOR id="libgimp-gimppaths" href="libgimp/libgimp-gimppaths.html">
<ANCHOR id="gimp-path-list" href="libgimp/libgimp-gimppaths.html#gimp-path-list">
<ANCHOR id="gimp-path-get-points" href="libgimp/libgimp-gimppaths.html#gimp-path-get-points">
<ANCHOR id="gimp-path-get-current" href="libgimp/libgimp-gimppaths.html#gimp-path-get-current">
<ANCHOR id="gimp-path-set-current" href="libgimp/libgimp-gimppaths.html#gimp-path-set-current">
<ANCHOR id="gimp-path-set-points" href="libgimp/libgimp-gimppaths.html#gimp-path-set-points">
<ANCHOR id="gimp-path-stroke-current" href="libgimp/libgimp-gimppaths.html#gimp-path-stroke-current">
<ANCHOR id="gimp-path-get-point-at-dist" href="libgimp/libgimp-gimppaths.html#gimp-path-get-point-at-dist">
<ANCHOR id="gimp-path-get-tattoo" href="libgimp/libgimp-gimppaths.html#gimp-path-get-tattoo">
<ANCHOR id="gimp-get-path-by-tattoo" href="libgimp/libgimp-gimppaths.html#gimp-get-path-by-tattoo">
<ANCHOR id="gimp-path-delete" href="libgimp/libgimp-gimppaths.html#gimp-path-delete">
<ANCHOR id="gimp-path-get-locked" href="libgimp/libgimp-gimppaths.html#gimp-path-get-locked">
<ANCHOR id="gimp-path-set-locked" href="libgimp/libgimp-gimppaths.html#gimp-path-set-locked">
<ANCHOR id="gimp-path-set-tattoo" href="libgimp/libgimp-gimppaths.html#gimp-path-set-tattoo">
<ANCHOR id="gimp-path-to-selection" href="libgimp/libgimp-gimppaths.html#gimp-path-to-selection">
<ANCHOR id="gimp-path-import" href="libgimp/libgimp-gimppaths.html#gimp-path-import">
<ANCHOR id="libgimp-gimppixelfetcher" href="libgimp/libgimp-gimppixelfetcher.html">
<ANCHOR id="GimpPixelFetcherEdgeMode" href="libgimp/libgimp-gimppixelfetcher.html#GimpPixelFetcherEdgeMode">
<ANCHOR id="GimpPixelFetcher" href="libgimp/libgimp-gimppixelfetcher.html#GimpPixelFetcher">
<ANCHOR id="gimp-pixel-fetcher-new" href="libgimp/libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-new">
<ANCHOR id="gimp-pixel-fetcher-set-edge-mode" href="libgimp/libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-set-edge-mode">
<ANCHOR id="gimp-pixel-fetcher-set-bg-color" href="libgimp/libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-set-bg-color">
<ANCHOR id="gimp-pixel-fetcher-get-pixel" href="libgimp/libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-get-pixel">
<ANCHOR id="gimp-pixel-fetcher-put-pixel" href="libgimp/libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-put-pixel">
<ANCHOR id="gimp-pixel-fetcher-destroy" href="libgimp/libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-destroy">
<ANCHOR id="libgimp-gimppixelrgn" href="libgimp/libgimp-gimppixelrgn.html">
<ANCHOR id="GimpPixelRgn" href="libgimp/libgimp-gimppixelrgn.html#GimpPixelRgn">
<ANCHOR id="gimp-pixel-rgn-init" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgn-init">
<ANCHOR id="gimp-pixel-rgn-resize" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgn-resize">
<ANCHOR id="gimp-pixel-rgn-get-pixel" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-pixel">
<ANCHOR id="gimp-pixel-rgn-get-row" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-row">
<ANCHOR id="gimp-pixel-rgn-get-col" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-col">
<ANCHOR id="gimp-pixel-rgn-get-rect" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-rect">
<ANCHOR id="gimp-pixel-rgn-set-pixel" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-pixel">
<ANCHOR id="gimp-pixel-rgn-set-row" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-row">
<ANCHOR id="gimp-pixel-rgn-set-col" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-col">
<ANCHOR id="gimp-pixel-rgn-set-rect" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-rect">
<ANCHOR id="gimp-pixel-rgns-register" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgns-register">
<ANCHOR id="gimp-pixel-rgns-register2" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgns-register2">
<ANCHOR id="gimp-pixel-rgns-process" href="libgimp/libgimp-gimppixelrgn.html#gimp-pixel-rgns-process">
<ANCHOR id="libgimp-gimpregioniterator" href="libgimp/libgimp-gimpregioniterator.html">
<ANCHOR id="GimpRgnIterator" href="libgimp/libgimp-gimpregioniterator.html#GimpRgnIterator">
<ANCHOR id="GimpRgnFunc1" href="libgimp/libgimp-gimpregioniterator.html#GimpRgnFunc1">
<ANCHOR id="GimpRgnFunc2" href="libgimp/libgimp-gimpregioniterator.html#GimpRgnFunc2">
<ANCHOR id="GimpRgnFuncSrc" href="libgimp/libgimp-gimpregioniterator.html#GimpRgnFuncSrc">
<ANCHOR id="GimpRgnFuncDest" href="libgimp/libgimp-gimpregioniterator.html#GimpRgnFuncDest">
<ANCHOR id="GimpRgnFuncSrcDest" href="libgimp/libgimp-gimpregioniterator.html#GimpRgnFuncSrcDest">
<ANCHOR id="gimp-rgn-iterator-new" href="libgimp/libgimp-gimpregioniterator.html#gimp-rgn-iterator-new">
<ANCHOR id="gimp-rgn-iterator-free" href="libgimp/libgimp-gimpregioniterator.html#gimp-rgn-iterator-free">
<ANCHOR id="gimp-rgn-iterator-src" href="libgimp/libgimp-gimpregioniterator.html#gimp-rgn-iterator-src">
<ANCHOR id="gimp-rgn-iterator-dest" href="libgimp/libgimp-gimpregioniterator.html#gimp-rgn-iterator-dest">
<ANCHOR id="gimp-rgn-iterator-src-dest" href="libgimp/libgimp-gimpregioniterator.html#gimp-rgn-iterator-src-dest">
<ANCHOR id="gimp-rgn-iterate1" href="libgimp/libgimp-gimpregioniterator.html#gimp-rgn-iterate1">
<ANCHOR id="gimp-rgn-iterate2" href="libgimp/libgimp-gimpregioniterator.html#gimp-rgn-iterate2">
<ANCHOR id="libgimp-gimpselection" href="libgimp/libgimp-gimpselection.html">
<ANCHOR id="gimp-selection-bounds" href="libgimp/libgimp-gimpselection.html#gimp-selection-bounds">
<ANCHOR id="gimp-selection-all" href="libgimp/libgimp-gimpselection.html#gimp-selection-all">
<ANCHOR id="gimp-selection-none" href="libgimp/libgimp-gimpselection.html#gimp-selection-none">
<ANCHOR id="gimp-selection-clear" href="libgimp/libgimp-gimpselection.html#gimp-selection-clear">
<ANCHOR id="gimp-selection-is-empty" href="libgimp/libgimp-gimpselection.html#gimp-selection-is-empty">
<ANCHOR id="gimp-selection-float" href="libgimp/libgimp-gimpselection.html#gimp-selection-float">
<ANCHOR id="gimp-selection-load" href="libgimp/libgimp-gimpselection.html#gimp-selection-load">
<ANCHOR id="gimp-selection-save" href="libgimp/libgimp-gimpselection.html#gimp-selection-save">
<ANCHOR id="gimp-selection-value" href="libgimp/libgimp-gimpselection.html#gimp-selection-value">
<ANCHOR id="gimp-selection-grow" href="libgimp/libgimp-gimpselection.html#gimp-selection-grow">
<ANCHOR id="gimp-selection-shrink" href="libgimp/libgimp-gimpselection.html#gimp-selection-shrink">
<ANCHOR id="gimp-selection-invert" href="libgimp/libgimp-gimpselection.html#gimp-selection-invert">
<ANCHOR id="gimp-selection-feather" href="libgimp/libgimp-gimpselection.html#gimp-selection-feather">
<ANCHOR id="gimp-selection-sharpen" href="libgimp/libgimp-gimpselection.html#gimp-selection-sharpen">
<ANCHOR id="gimp-selection-border" href="libgimp/libgimp-gimpselection.html#gimp-selection-border">
<ANCHOR id="gimp-selection-translate" href="libgimp/libgimp-gimpselection.html#gimp-selection-translate">
<ANCHOR id="gimp-selection-layer-alpha" href="libgimp/libgimp-gimpselection.html#gimp-selection-layer-alpha">
<ANCHOR id="gimp-selection-combine" href="libgimp/libgimp-gimpselection.html#gimp-selection-combine">
<ANCHOR id="libgimp-gimptexttool" href="libgimp/libgimp-gimptexttool.html">
<ANCHOR id="gimp-text-fontname" href="libgimp/libgimp-gimptexttool.html#gimp-text-fontname">
<ANCHOR id="gimp-text-get-extents-fontname" href="libgimp/libgimp-gimptexttool.html#gimp-text-get-extents-fontname">
<ANCHOR id="gimp-text" href="libgimp/libgimp-gimptexttool.html#gimp-text">
<ANCHOR id="gimp-text-get-extents" href="libgimp/libgimp-gimptexttool.html#gimp-text-get-extents">
<ANCHOR id="libgimp-gimptile" href="libgimp/libgimp-gimptile.html">
<ANCHOR id="GimpTile" href="libgimp/libgimp-gimptile.html#GimpTile">
<ANCHOR id="gimp-tile-ref" href="libgimp/libgimp-gimptile.html#gimp-tile-ref">
<ANCHOR id="gimp-tile-ref-zero" href="libgimp/libgimp-gimptile.html#gimp-tile-ref-zero">
<ANCHOR id="gimp-tile-unref" href="libgimp/libgimp-gimptile.html#gimp-tile-unref">
<ANCHOR id="gimp-tile-flush" href="libgimp/libgimp-gimptile.html#gimp-tile-flush">
<ANCHOR id="gimp-tile-cache-size" href="libgimp/libgimp-gimptile.html#gimp-tile-cache-size">
<ANCHOR id="gimp-tile-cache-ntiles" href="libgimp/libgimp-gimptile.html#gimp-tile-cache-ntiles">
<ANCHOR id="libgimp-gimptools" href="libgimp/libgimp-gimptools.html">
<ANCHOR id="gimp-airbrush" href="libgimp/libgimp-gimptools.html#gimp-airbrush">
<ANCHOR id="gimp-airbrush-default" href="libgimp/libgimp-gimptools.html#gimp-airbrush-default">
<ANCHOR id="gimp-by-color-select" href="libgimp/libgimp-gimptools.html#gimp-by-color-select">
<ANCHOR id="gimp-clone" href="libgimp/libgimp-gimptools.html#gimp-clone">
<ANCHOR id="gimp-clone-default" href="libgimp/libgimp-gimptools.html#gimp-clone-default">
<ANCHOR id="gimp-convolve" href="libgimp/libgimp-gimptools.html#gimp-convolve">
<ANCHOR id="gimp-convolve-default" href="libgimp/libgimp-gimptools.html#gimp-convolve-default">
<ANCHOR id="gimp-dodgeburn" href="libgimp/libgimp-gimptools.html#gimp-dodgeburn">
<ANCHOR id="gimp-dodgeburn-default" href="libgimp/libgimp-gimptools.html#gimp-dodgeburn-default">
<ANCHOR id="gimp-ellipse-select" href="libgimp/libgimp-gimptools.html#gimp-ellipse-select">
<ANCHOR id="gimp-eraser" href="libgimp/libgimp-gimptools.html#gimp-eraser">
<ANCHOR id="gimp-eraser-default" href="libgimp/libgimp-gimptools.html#gimp-eraser-default">
<ANCHOR id="gimp-flip" href="libgimp/libgimp-gimptools.html#gimp-flip">
<ANCHOR id="gimp-free-select" href="libgimp/libgimp-gimptools.html#gimp-free-select">
<ANCHOR id="gimp-fuzzy-select" href="libgimp/libgimp-gimptools.html#gimp-fuzzy-select">
<ANCHOR id="gimp-paintbrush" href="libgimp/libgimp-gimptools.html#gimp-paintbrush">
<ANCHOR id="gimp-paintbrush-default" href="libgimp/libgimp-gimptools.html#gimp-paintbrush-default">
<ANCHOR id="gimp-pencil" href="libgimp/libgimp-gimptools.html#gimp-pencil">
<ANCHOR id="gimp-perspective" href="libgimp/libgimp-gimptools.html#gimp-perspective">
<ANCHOR id="gimp-rect-select" href="libgimp/libgimp-gimptools.html#gimp-rect-select">
<ANCHOR id="gimp-rotate" href="libgimp/libgimp-gimptools.html#gimp-rotate">
<ANCHOR id="gimp-scale" href="libgimp/libgimp-gimptools.html#gimp-scale">
<ANCHOR id="gimp-shear" href="libgimp/libgimp-gimptools.html#gimp-shear">
<ANCHOR id="gimp-smudge" href="libgimp/libgimp-gimptools.html#gimp-smudge">
<ANCHOR id="gimp-smudge-default" href="libgimp/libgimp-gimptools.html#gimp-smudge-default">
<ANCHOR id="gimp-transform-2d" href="libgimp/libgimp-gimptools.html#gimp-transform-2d">
<ANCHOR id="libgimp-gimpundo" href="libgimp/libgimp-gimpundo.html">
<ANCHOR id="gimp-image-undo-group-start" href="libgimp/libgimp-gimpundo.html#gimp-image-undo-group-start">
<ANCHOR id="gimp-image-undo-group-end" href="libgimp/libgimp-gimpundo.html#gimp-image-undo-group-end">
<ANCHOR id="gimp-image-undo-is-enabled" href="libgimp/libgimp-gimpundo.html#gimp-image-undo-is-enabled">
<ANCHOR id="gimp-image-undo-disable" href="libgimp/libgimp-gimpundo.html#gimp-image-undo-disable">
<ANCHOR id="gimp-image-undo-enable" href="libgimp/libgimp-gimpundo.html#gimp-image-undo-enable">
<ANCHOR id="gimp-image-undo-freeze" href="libgimp/libgimp-gimpundo.html#gimp-image-undo-freeze">
<ANCHOR id="gimp-image-undo-thaw" href="libgimp/libgimp-gimpundo.html#gimp-image-undo-thaw">
<ANCHOR id="libgimp-gimpbrush" href="libgimp/libgimp-gimpbrush.html">
<ANCHOR id="gimp-brush-new" href="libgimp/libgimp-gimpbrush.html#gimp-brush-new">
<ANCHOR id="gimp-brush-duplicate" href="libgimp/libgimp-gimpbrush.html#gimp-brush-duplicate">
<ANCHOR id="gimp-brush-rename" href="libgimp/libgimp-gimpbrush.html#gimp-brush-rename">
<ANCHOR id="gimp-brush-delete" href="libgimp/libgimp-gimpbrush.html#gimp-brush-delete">
<ANCHOR id="gimp-brush-get-info" href="libgimp/libgimp-gimpbrush.html#gimp-brush-get-info">
<ANCHOR id="gimp-brush-get-pixels" href="libgimp/libgimp-gimpbrush.html#gimp-brush-get-pixels">
<ANCHOR id="gimp-brush-get-spacing" href="libgimp/libgimp-gimpbrush.html#gimp-brush-get-spacing">
<ANCHOR id="gimp-brush-set-spacing" href="libgimp/libgimp-gimpbrush.html#gimp-brush-set-spacing">
<ANCHOR id="libgimp-gimpbrushes" href="libgimp/libgimp-gimpbrushes.html">
<ANCHOR id="gimp-brushes-refresh" href="libgimp/libgimp-gimpbrushes.html#gimp-brushes-refresh">
<ANCHOR id="gimp-brushes-get-list" href="libgimp/libgimp-gimpbrushes.html#gimp-brushes-get-list">
<ANCHOR id="gimp-brushes-get-brush" href="libgimp/libgimp-gimpbrushes.html#gimp-brushes-get-brush">
<ANCHOR id="gimp-brushes-set-brush" href="libgimp/libgimp-gimpbrushes.html#gimp-brushes-set-brush">
<ANCHOR id="gimp-brushes-get-opacity" href="libgimp/libgimp-gimpbrushes.html#gimp-brushes-get-opacity">
<ANCHOR id="gimp-brushes-set-opacity" href="libgimp/libgimp-gimpbrushes.html#gimp-brushes-set-opacity">
<ANCHOR id="gimp-brushes-get-paint-mode" href="libgimp/libgimp-gimpbrushes.html#gimp-brushes-get-paint-mode">
<ANCHOR id="gimp-brushes-set-paint-mode" href="libgimp/libgimp-gimpbrushes.html#gimp-brushes-set-paint-mode">
<ANCHOR id="gimp-brushes-get-spacing" href="libgimp/libgimp-gimpbrushes.html#gimp-brushes-get-spacing">
<ANCHOR id="gimp-brushes-set-spacing" href="libgimp/libgimp-gimpbrushes.html#gimp-brushes-set-spacing">
<ANCHOR id="gimp-brushes-get-brush-data" href="libgimp/libgimp-gimpbrushes.html#gimp-brushes-get-brush-data">
<ANCHOR id="libgimp-gimpfonts" href="libgimp/libgimp-gimpfonts.html">
<ANCHOR id="gimp-fonts-refresh" href="libgimp/libgimp-gimpfonts.html#gimp-fonts-refresh">
<ANCHOR id="gimp-fonts-get-list" href="libgimp/libgimp-gimpfonts.html#gimp-fonts-get-list">
<ANCHOR id="libgimp-gimpgradient" href="libgimp/libgimp-gimpgradient.html">
<ANCHOR id="gimp-gradient-new" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-new">
<ANCHOR id="gimp-gradient-duplicate" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-duplicate">
<ANCHOR id="gimp-gradient-rename" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-rename">
<ANCHOR id="gimp-gradient-delete" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-delete">
<ANCHOR id="gimp-gradient-get-uniform-samples" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-get-uniform-samples">
<ANCHOR id="gimp-gradient-get-custom-samples" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-get-custom-samples">
<ANCHOR id="gimp-gradient-segment-get-left-color" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-get-left-color">
<ANCHOR id="gimp-gradient-segment-set-left-color" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-set-left-color">
<ANCHOR id="gimp-gradient-segment-get-right-color" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-get-right-color">
<ANCHOR id="gimp-gradient-segment-set-right-color" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-set-right-color">
<ANCHOR id="gimp-gradient-segment-get-left-pos" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-get-left-pos">
<ANCHOR id="gimp-gradient-segment-set-left-pos" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-set-left-pos">
<ANCHOR id="gimp-gradient-segment-get-middle-pos" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-get-middle-pos">
<ANCHOR id="gimp-gradient-segment-set-middle-pos" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-set-middle-pos">
<ANCHOR id="gimp-gradient-segment-get-right-pos" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-get-right-pos">
<ANCHOR id="gimp-gradient-segment-set-right-pos" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-set-right-pos">
<ANCHOR id="gimp-gradient-segment-get-blending-function" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-get-blending-function">
<ANCHOR id="gimp-gradient-segment-get-coloring-type" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-get-coloring-type">
<ANCHOR id="gimp-gradient-segment-range-set-blending-function" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-range-set-blending-function">
<ANCHOR id="gimp-gradient-segment-range-set-coloring-type" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-range-set-coloring-type">
<ANCHOR id="gimp-gradient-segment-range-flip" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-range-flip">
<ANCHOR id="gimp-gradient-segment-range-replicate" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-range-replicate">
<ANCHOR id="gimp-gradient-segment-range-split-midpoint" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-range-split-midpoint">
<ANCHOR id="gimp-gradient-segment-range-split-uniform" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-range-split-uniform">
<ANCHOR id="gimp-gradient-segment-range-delete" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-range-delete">
<ANCHOR id="gimp-gradient-segment-range-redistribute-handles" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-range-redistribute-handles">
<ANCHOR id="gimp-gradient-segment-range-blend-colors" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-range-blend-colors">
<ANCHOR id="gimp-gradient-segment-range-blend-opacity" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-range-blend-opacity">
<ANCHOR id="gimp-gradient-segment-range-move" href="libgimp/libgimp-gimpgradient.html#gimp-gradient-segment-range-move">
<ANCHOR id="libgimp-gimpgradients" href="libgimp/libgimp-gimpgradients.html">
<ANCHOR id="gimp-gradients-refresh" href="libgimp/libgimp-gimpgradients.html#gimp-gradients-refresh">
<ANCHOR id="gimp-gradients-get-list" href="libgimp/libgimp-gimpgradients.html#gimp-gradients-get-list">
<ANCHOR id="gimp-gradients-get-gradient" href="libgimp/libgimp-gimpgradients.html#gimp-gradients-get-gradient">
<ANCHOR id="gimp-gradients-set-gradient" href="libgimp/libgimp-gimpgradients.html#gimp-gradients-set-gradient">
<ANCHOR id="gimp-gradients-sample-uniform" href="libgimp/libgimp-gimpgradients.html#gimp-gradients-sample-uniform">
<ANCHOR id="gimp-gradients-sample-custom" href="libgimp/libgimp-gimpgradients.html#gimp-gradients-sample-custom">
<ANCHOR id="gimp-gradients-get-gradient-data" href="libgimp/libgimp-gimpgradients.html#gimp-gradients-get-gradient-data">
<ANCHOR id="libgimp-gimppalette" href="libgimp/libgimp-gimppalette.html">
<ANCHOR id="gimp-palette-new" href="libgimp/libgimp-gimppalette.html#gimp-palette-new">
<ANCHOR id="gimp-palette-duplicate" href="libgimp/libgimp-gimppalette.html#gimp-palette-duplicate">
<ANCHOR id="gimp-palette-rename" href="libgimp/libgimp-gimppalette.html#gimp-palette-rename">
<ANCHOR id="gimp-palette-delete" href="libgimp/libgimp-gimppalette.html#gimp-palette-delete">
<ANCHOR id="gimp-palette-get-info" href="libgimp/libgimp-gimppalette.html#gimp-palette-get-info">
<ANCHOR id="gimp-palette-add-entry" href="libgimp/libgimp-gimppalette.html#gimp-palette-add-entry">
<ANCHOR id="gimp-palette-delete-entry" href="libgimp/libgimp-gimppalette.html#gimp-palette-delete-entry">
<ANCHOR id="gimp-palette-entry-get-color" href="libgimp/libgimp-gimppalette.html#gimp-palette-entry-get-color">
<ANCHOR id="gimp-palette-entry-set-color" href="libgimp/libgimp-gimppalette.html#gimp-palette-entry-set-color">
<ANCHOR id="gimp-palette-entry-get-name" href="libgimp/libgimp-gimppalette.html#gimp-palette-entry-get-name">
<ANCHOR id="gimp-palette-entry-set-name" href="libgimp/libgimp-gimppalette.html#gimp-palette-entry-set-name">
<ANCHOR id="gimp-palette-get-foreground" href="libgimp/libgimp-gimppalette.html#gimp-palette-get-foreground">
<ANCHOR id="gimp-palette-get-background" href="libgimp/libgimp-gimppalette.html#gimp-palette-get-background">
<ANCHOR id="gimp-palette-set-foreground" href="libgimp/libgimp-gimppalette.html#gimp-palette-set-foreground">
<ANCHOR id="gimp-palette-set-background" href="libgimp/libgimp-gimppalette.html#gimp-palette-set-background">
<ANCHOR id="gimp-palette-set-default-colors" href="libgimp/libgimp-gimppalette.html#gimp-palette-set-default-colors">
<ANCHOR id="gimp-palette-swap-colors" href="libgimp/libgimp-gimppalette.html#gimp-palette-swap-colors">
<ANCHOR id="libgimp-gimppalettes" href="libgimp/libgimp-gimppalettes.html">
<ANCHOR id="gimp-palettes-refresh" href="libgimp/libgimp-gimppalettes.html#gimp-palettes-refresh">
<ANCHOR id="gimp-palettes-get-list" href="libgimp/libgimp-gimppalettes.html#gimp-palettes-get-list">
<ANCHOR id="gimp-palettes-get-palette" href="libgimp/libgimp-gimppalettes.html#gimp-palettes-get-palette">
<ANCHOR id="gimp-palettes-set-palette" href="libgimp/libgimp-gimppalettes.html#gimp-palettes-set-palette">
<ANCHOR id="gimp-palettes-get-palette-entry" href="libgimp/libgimp-gimppalettes.html#gimp-palettes-get-palette-entry">
<ANCHOR id="libgimp-gimppattern" href="libgimp/libgimp-gimppattern.html">
<ANCHOR id="gimp-pattern-get-info" href="libgimp/libgimp-gimppattern.html#gimp-pattern-get-info">
<ANCHOR id="gimp-pattern-get-pixels" href="libgimp/libgimp-gimppattern.html#gimp-pattern-get-pixels">
<ANCHOR id="libgimp-gimppatterns" href="libgimp/libgimp-gimppatterns.html">
<ANCHOR id="gimp-patterns-refresh" href="libgimp/libgimp-gimppatterns.html#gimp-patterns-refresh">
<ANCHOR id="gimp-patterns-get-list" href="libgimp/libgimp-gimppatterns.html#gimp-patterns-get-list">
<ANCHOR id="gimp-patterns-get-pattern" href="libgimp/libgimp-gimppatterns.html#gimp-patterns-get-pattern">
<ANCHOR id="gimp-patterns-set-pattern" href="libgimp/libgimp-gimppatterns.html#gimp-patterns-set-pattern">
<ANCHOR id="gimp-patterns-get-pattern-data" href="libgimp/libgimp-gimppatterns.html#gimp-patterns-get-pattern-data">
<ANCHOR id="libgimp-gimpbrushselect" href="libgimp/libgimp-gimpbrushselect.html">
<ANCHOR id="GimpRunBrushCallback" href="libgimp/libgimp-gimpbrushselect.html#GimpRunBrushCallback">
<ANCHOR id="gimp-brush-select-new" href="libgimp/libgimp-gimpbrushselect.html#gimp-brush-select-new">
<ANCHOR id="gimp-brush-select-destroy" href="libgimp/libgimp-gimpbrushselect.html#gimp-brush-select-destroy">
<ANCHOR id="gimp-brushes-popup" href="libgimp/libgimp-gimpbrushselect.html#gimp-brushes-popup">
<ANCHOR id="gimp-brushes-close-popup" href="libgimp/libgimp-gimpbrushselect.html#gimp-brushes-close-popup">
<ANCHOR id="gimp-brushes-set-popup" href="libgimp/libgimp-gimpbrushselect.html#gimp-brushes-set-popup">
<ANCHOR id="libgimp-gimpfontselect" href="libgimp/libgimp-gimpfontselect.html">
<ANCHOR id="GimpRunFontCallback" href="libgimp/libgimp-gimpfontselect.html#GimpRunFontCallback">
<ANCHOR id="gimp-font-select-new" href="libgimp/libgimp-gimpfontselect.html#gimp-font-select-new">
<ANCHOR id="gimp-font-select-destroy" href="libgimp/libgimp-gimpfontselect.html#gimp-font-select-destroy">
<ANCHOR id="gimp-fonts-popup" href="libgimp/libgimp-gimpfontselect.html#gimp-fonts-popup">
<ANCHOR id="gimp-fonts-close-popup" href="libgimp/libgimp-gimpfontselect.html#gimp-fonts-close-popup">
<ANCHOR id="gimp-fonts-set-popup" href="libgimp/libgimp-gimpfontselect.html#gimp-fonts-set-popup">
<ANCHOR id="libgimp-gimpgradientselect" href="libgimp/libgimp-gimpgradientselect.html">
<ANCHOR id="GimpRunGradientCallback" href="libgimp/libgimp-gimpgradientselect.html#GimpRunGradientCallback">
<ANCHOR id="gimp-gradient-select-new" href="libgimp/libgimp-gimpgradientselect.html#gimp-gradient-select-new">
<ANCHOR id="gimp-gradient-select-destroy" href="libgimp/libgimp-gimpgradientselect.html#gimp-gradient-select-destroy">
<ANCHOR id="gimp-gradients-popup" href="libgimp/libgimp-gimpgradientselect.html#gimp-gradients-popup">
<ANCHOR id="gimp-gradients-close-popup" href="libgimp/libgimp-gimpgradientselect.html#gimp-gradients-close-popup">
<ANCHOR id="gimp-gradients-set-popup" href="libgimp/libgimp-gimpgradientselect.html#gimp-gradients-set-popup">
<ANCHOR id="libgimp-gimppaletteselect" href="libgimp/libgimp-gimppaletteselect.html">
<ANCHOR id="GimpRunPaletteCallback" href="libgimp/libgimp-gimppaletteselect.html#GimpRunPaletteCallback">
<ANCHOR id="gimp-palette-select-new" href="libgimp/libgimp-gimppaletteselect.html#gimp-palette-select-new">
<ANCHOR id="gimp-palette-select-destroy" href="libgimp/libgimp-gimppaletteselect.html#gimp-palette-select-destroy">
<ANCHOR id="gimp-palettes-popup" href="libgimp/libgimp-gimppaletteselect.html#gimp-palettes-popup">
<ANCHOR id="gimp-palettes-close-popup" href="libgimp/libgimp-gimppaletteselect.html#gimp-palettes-close-popup">
<ANCHOR id="gimp-palettes-set-popup" href="libgimp/libgimp-gimppaletteselect.html#gimp-palettes-set-popup">
<ANCHOR id="libgimp-gimppatternselect" href="libgimp/libgimp-gimppatternselect.html">
<ANCHOR id="GimpRunPatternCallback" href="libgimp/libgimp-gimppatternselect.html#GimpRunPatternCallback">
<ANCHOR id="gimp-pattern-select-new" href="libgimp/libgimp-gimppatternselect.html#gimp-pattern-select-new">
<ANCHOR id="gimp-pattern-select-destroy" href="libgimp/libgimp-gimppatternselect.html#gimp-pattern-select-destroy">
<ANCHOR id="gimp-patterns-popup" href="libgimp/libgimp-gimppatternselect.html#gimp-patterns-popup">
<ANCHOR id="gimp-patterns-close-popup" href="libgimp/libgimp-gimppatternselect.html#gimp-patterns-close-popup">
<ANCHOR id="gimp-patterns-set-popup" href="libgimp/libgimp-gimppatternselect.html#gimp-patterns-set-popup">
<ANCHOR id="libgimp-gimpui" href="libgimp/libgimp-gimpui.html">
<ANCHOR id="gimp-ui-init" href="libgimp/libgimp-gimpui.html#gimp-ui-init">
<ANCHOR id="libgimp-gimpexport" href="libgimp/libgimp-gimpexport.html">
<ANCHOR id="GimpExportCapabilities" href="libgimp/libgimp-gimpexport.html#GimpExportCapabilities">
<ANCHOR id="GimpExportReturn" href="libgimp/libgimp-gimpexport.html#GimpExportReturn">
<ANCHOR id="gimp-export-image" href="libgimp/libgimp-gimpexport.html#gimp-export-image">
<ANCHOR id="GimpAspectPreview" href="libgimp/GimpAspectPreview.html">
<ANCHOR id="GimpAspectPreview-struct" href="libgimp/GimpAspectPreview.html#GimpAspectPreview-struct">
<ANCHOR id="gimp-aspect-preview-new" href="libgimp/GimpAspectPreview.html#gimp-aspect-preview-new">
<ANCHOR id="GimpDrawablePreview" href="libgimp/GimpDrawablePreview.html">
<ANCHOR id="GimpDrawablePreview-struct" href="libgimp/GimpDrawablePreview.html#GimpDrawablePreview-struct">
<ANCHOR id="gimp-drawable-preview-new" href="libgimp/GimpDrawablePreview.html#gimp-drawable-preview-new">
<ANCHOR id="gimp-drawable-preview-get-drawable" href="libgimp/GimpDrawablePreview.html#gimp-drawable-preview-get-drawable">
<ANCHOR id="gimp-drawable-preview-draw-region" href="libgimp/GimpDrawablePreview.html#gimp-drawable-preview-draw-region">
<ANCHOR id="libgimp-gimpdrawablecombobox" href="libgimp/libgimp-gimpdrawablecombobox.html">
<ANCHOR id="GimpDrawableConstraintFunc" href="libgimp/libgimp-gimpdrawablecombobox.html#GimpDrawableConstraintFunc">
<ANCHOR id="gimp-drawable-combo-box-new" href="libgimp/libgimp-gimpdrawablecombobox.html#gimp-drawable-combo-box-new">
<ANCHOR id="gimp-channel-combo-box-new" href="libgimp/libgimp-gimpdrawablecombobox.html#gimp-channel-combo-box-new">
<ANCHOR id="gimp-layer-combo-box-new" href="libgimp/libgimp-gimpdrawablecombobox.html#gimp-layer-combo-box-new">
<ANCHOR id="libgimp-gimpimagecombobox" href="libgimp/libgimp-gimpimagecombobox.html">
<ANCHOR id="GimpImageConstraintFunc" href="libgimp/libgimp-gimpimagecombobox.html#GimpImageConstraintFunc">
<ANCHOR id="gimp-image-combo-box-new" href="libgimp/libgimp-gimpimagecombobox.html#gimp-image-combo-box-new">
<ANCHOR id="libgimp-gimppixbuf" href="libgimp/libgimp-gimppixbuf.html">
<ANCHOR id="GimpPixbufTransparency" href="libgimp/libgimp-gimppixbuf.html#GimpPixbufTransparency">
<ANCHOR id="gimp-image-get-thumbnail" href="libgimp/libgimp-gimppixbuf.html#gimp-image-get-thumbnail">
<ANCHOR id="gimp-drawable-get-thumbnail" href="libgimp/libgimp-gimppixbuf.html#gimp-drawable-get-thumbnail">
<ANCHOR id="gimp-drawable-get-sub-thumbnail" href="libgimp/libgimp-gimppixbuf.html#gimp-drawable-get-sub-thumbnail">
<ANCHOR id="GimpProgressBar" href="libgimp/GimpProgressBar.html">
<ANCHOR id="GimpProgressBar-struct" href="libgimp/GimpProgressBar.html#GimpProgressBar-struct">
<ANCHOR id="gimp-progress-bar-new" href="libgimp/GimpProgressBar.html#gimp-progress-bar-new">
<ANCHOR id="libgimp-gimpmenu" href="libgimp/libgimp-gimpmenu.html">
<ANCHOR id="GimpConstraintFunc" href="libgimp/libgimp-gimpmenu.html#GimpConstraintFunc">
<ANCHOR id="GimpMenuCallback" href="libgimp/libgimp-gimpmenu.html#GimpMenuCallback">
<ANCHOR id="gimp-image-menu-new" href="libgimp/libgimp-gimpmenu.html#gimp-image-menu-new">
<ANCHOR id="gimp-layer-menu-new" href="libgimp/libgimp-gimpmenu.html#gimp-layer-menu-new">
<ANCHOR id="gimp-channel-menu-new" href="libgimp/libgimp-gimpmenu.html#gimp-channel-menu-new">
<ANCHOR id="gimp-drawable-menu-new" href="libgimp/libgimp-gimpmenu.html#gimp-drawable-menu-new">
<ANCHOR id="libgimp-gimpbrushmenu" href="libgimp/libgimp-gimpbrushmenu.html">
<ANCHOR id="gimp-brush-select-widget-new" href="libgimp/libgimp-gimpbrushmenu.html#gimp-brush-select-widget-new">
<ANCHOR id="gimp-brush-select-widget-close" href="libgimp/libgimp-gimpbrushmenu.html#gimp-brush-select-widget-close">
<ANCHOR id="gimp-brush-select-widget-set" href="libgimp/libgimp-gimpbrushmenu.html#gimp-brush-select-widget-set">
<ANCHOR id="libgimp-gimpfontmenu" href="libgimp/libgimp-gimpfontmenu.html">
<ANCHOR id="gimp-font-select-widget-new" href="libgimp/libgimp-gimpfontmenu.html#gimp-font-select-widget-new">
<ANCHOR id="gimp-font-select-widget-close" href="libgimp/libgimp-gimpfontmenu.html#gimp-font-select-widget-close">
<ANCHOR id="gimp-font-select-widget-set" href="libgimp/libgimp-gimpfontmenu.html#gimp-font-select-widget-set">
<ANCHOR id="libgimp-gimpgradientmenu" href="libgimp/libgimp-gimpgradientmenu.html">
<ANCHOR id="gimp-gradient-select-widget-new" href="libgimp/libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-new">
<ANCHOR id="gimp-gradient-select-widget-close" href="libgimp/libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-close">
<ANCHOR id="gimp-gradient-select-widget-set" href="libgimp/libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-set">
<ANCHOR id="libgimp-gimppalettemenu" href="libgimp/libgimp-gimppalettemenu.html">
<ANCHOR id="gimp-palette-select-widget-new" href="libgimp/libgimp-gimppalettemenu.html#gimp-palette-select-widget-new">
<ANCHOR id="gimp-palette-select-widget-close" href="libgimp/libgimp-gimppalettemenu.html#gimp-palette-select-widget-close">
<ANCHOR id="gimp-palette-select-widget-set" href="libgimp/libgimp-gimppalettemenu.html#gimp-palette-select-widget-set">
<ANCHOR id="libgimp-gimppatternmenu" href="libgimp/libgimp-gimppatternmenu.html">
<ANCHOR id="gimp-pattern-select-widget-new" href="libgimp/libgimp-gimppatternmenu.html#gimp-pattern-select-widget-new">
<ANCHOR id="gimp-pattern-select-widget-close" href="libgimp/libgimp-gimppatternmenu.html#gimp-pattern-select-widget-close">
<ANCHOR id="gimp-pattern-select-widget-set" href="libgimp/libgimp-gimppatternmenu.html#gimp-pattern-select-widget-set">

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 B

View File

@ -0,0 +1 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Data Objects</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="prev" href="libgimp-gimpundo.html" title="gimpundo"><link rel="next" href="libgimp-gimpbrush.html" title="gimpbrush"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpundo.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpbrush.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="libgimp-data"></a>Data Objects</h2></div></div></div><div class="toc"><dl><dt><a href="libgimp-gimpbrush.html">gimpbrush</a> - Functions operating on a single brush.</dt><dt><a href="libgimp-gimpbrushes.html">gimpbrushes</a> - Functions for manipulating brushes.</dt><dt><a href="libgimp-gimpfonts.html">gimpfonts</a> - Operations related to fonts.</dt><dt><a href="libgimp-gimpgradient.html">gimpgradient</a> - Functions operating on a single gradient.</dt><dt><a href="libgimp-gimpgradients.html">gimpgradients</a> - Operations related to gradients.</dt><dt><a href="libgimp-gimppalette.html">gimppalette</a> - Functions operating on a single palette.</dt><dt><a href="libgimp-gimppalettes.html">gimppalettes</a> - Operations related to palettes.</dt><dt><a href="libgimp-gimppattern.html">gimppattern</a> - Functions operating on a single pattern.</dt><dt><a href="libgimp-gimppatterns.html">gimppatterns</a> - Functions relating to patterns.</dt></dl></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpundo.html"><b>&lt;&lt;<EFBFBD>gimpundo</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpbrush.html"><b>gimpbrush<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,2 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Functions not Related to Specific Images</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="prev" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="next" href="libgimp-gimp.html" title="gimp"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimp.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="libgimp-general"></a>Functions not Related to Specific Images</h2></div></div></div><div class="toc"><dl><dt><a href="libgimp-gimp.html">gimp</a> - Main functions needed for building a GIMP plug-in. This header includes
all other GIMP Library headers.</dt><dt><a href="libgimp-gimpcontext.html">gimpcontext</a> - Functions to manipulate a plug-in's context.</dt><dt><a href="libgimp-gimpgimprc.html">gimpgimprc</a> - Interactions with settings from .gimprc.</dt><dt><a href="libgimp-gimphelp.html">gimphelp</a> - Loading help pages using gimp_help.</dt><dt><a href="libgimp-gimpmessage.html">gimpmessage</a> - Display a dialog box with a message.</dt><dt><a href="libgimp-gimpplugin.html">gimpplugin</a> - Functions useful for plugins, e.g. registration and progress indicators.</dt><dt><a href="libgimp-gimpproceduraldb.html">gimpproceduraldb</a> - Functions for querying and changing procedural database (PDB) entries.</dt><dt><a href="libgimp-gimpprogress.html">gimpprogress</a> - Functions for embedding the progress bar into a plug-in's GUI.</dt></dl></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp.html"><b>&lt;&lt;<EFBFBD>Part<EFBFBD>II.<2E>GIMP Library</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimp.html"><b>gimp<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,626 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimp</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="prev" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="next" href="libgimp-gimpcontext.html" title="gimpcontext"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-general.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpcontext.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimp"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimp</span></h2><p>gimp &#8212; Main functions needed for building a GIMP plug-in. This header includes
all other GIMP Library headers.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
#define <a href="libgimp-gimp.html#GIMPVAR:CAPS">GIMPVAR</a>
gchar* <a href="libgimp-gimp.html#gimp-version">gimp_version</a> (void);
extern const guint <a href="libgimp-gimp.html#gimp-major-version">gimp_major_version</a>;
extern const guint <a href="libgimp-gimp.html#gimp-minor-version">gimp_minor_version</a>;
extern const guint <a href="libgimp-gimp.html#gimp-micro-version">gimp_micro_version</a>;
#define <a href="libgimp-gimp.html#gimp-get-data">gimp_get_data</a>
#define <a href="libgimp-gimp.html#gimp-get-data-size">gimp_get_data_size</a>
#define <a href="libgimp-gimp.html#gimp-set-data">gimp_set_data</a>
void (<a href="libgimp-gimp.html#GimpInitProc">*GimpInitProc</a>) (void);
void (<a href="libgimp-gimp.html#GimpQuitProc">*GimpQuitProc</a>) (void);
void (<a href="libgimp-gimp.html#GimpQueryProc">*GimpQueryProc</a>) (void);
void (<a href="libgimp-gimp.html#GimpRunProc">*GimpRunProc</a>) (const gchar *name,
gint n_params,
const <a href="libgimp-gimp.html#GimpParam">GimpParam</a> *param,
gint *n_return_vals,
<a href="libgimp-gimp.html#GimpParam">GimpParam</a> **return_vals);
<a href="libgimp-gimp.html#GimpPlugInInfo">GimpPlugInInfo</a>;
<a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a>;
<a href="libgimp-gimp.html#GimpParamRegion">GimpParamRegion</a>;
union <a href="libgimp-gimp.html#GimpParamData">GimpParamData</a>;
<a href="libgimp-gimp.html#GimpParam">GimpParam</a>;
#define <a href="libgimp-gimp.html#MAIN:CAPS">MAIN</a> ()
gint <a href="libgimp-gimp.html#gimp-main">gimp_main</a> (const <a href="libgimp-gimp.html#GimpPlugInInfo">GimpPlugInInfo</a> *info,
gint argc,
gchar *argv[]);
void <a href="libgimp-gimp.html#gimp-quit">gimp_quit</a> (void);
void <a href="libgimp-gimp.html#gimp-install-procedure">gimp_install_procedure</a> (const gchar *name,
const gchar *blurb,
const gchar *help,
const gchar *author,
const gchar *copyright,
const gchar *date,
const gchar *menu_label,
const gchar *image_types,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBProcType"
>GimpPDBProcType</a> type,
gint n_params,
gint n_return_vals,
const <a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> *params,
const <a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> *return_vals);
void <a href="libgimp-gimp.html#gimp-install-temp-proc">gimp_install_temp_proc</a> (const gchar *name,
const gchar *blurb,
const gchar *help,
const gchar *author,
const gchar *copyright,
const gchar *date,
const gchar *menu_label,
const gchar *image_types,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBProcType"
>GimpPDBProcType</a> type,
gint n_params,
gint n_return_vals,
const <a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> *params,
const <a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> *return_vals,
<a href="libgimp-gimp.html#GimpRunProc">GimpRunProc</a> run_proc);
void <a href="libgimp-gimp.html#gimp-uninstall-temp-proc">gimp_uninstall_temp_proc</a> (const gchar *name);
<a href="libgimp-gimp.html#GimpParam">GimpParam</a>* <a href="libgimp-gimp.html#gimp-run-procedure">gimp_run_procedure</a> (const gchar *name,
gint *n_return_vals,
...);
<a href="libgimp-gimp.html#GimpParam">GimpParam</a>* <a href="libgimp-gimp.html#gimp-run-procedure2">gimp_run_procedure2</a> (const gchar *name,
gint *n_return_vals,
gint n_params,
const <a href="libgimp-gimp.html#GimpParam">GimpParam</a> *params);
void <a href="libgimp-gimp.html#gimp-destroy-params">gimp_destroy_params</a> (<a href="libgimp-gimp.html#GimpParam">GimpParam</a> *params,
gint n_params);
void <a href="libgimp-gimp.html#gimp-destroy-paramdefs">gimp_destroy_paramdefs</a> (<a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> *paramdefs,
gint n_params);
guint <a href="libgimp-gimp.html#gimp-tile-width">gimp_tile_width</a> (void);
guint <a href="libgimp-gimp.html#gimp-tile-height">gimp_tile_height</a> (void);
gint <a href="libgimp-gimp.html#gimp-shm-ID">gimp_shm_ID</a> (void);
guchar* <a href="libgimp-gimp.html#gimp-shm-addr">gimp_shm_addr</a> (void);
gdouble <a href="libgimp-gimp.html#gimp-gamma">gimp_gamma</a> (void);
gboolean <a href="libgimp-gimp.html#gimp-install-cmap">gimp_install_cmap</a> (void);
gint <a href="libgimp-gimp.html#gimp-min-colors">gimp_min_colors</a> (void);
gboolean <a href="libgimp-gimp.html#gimp-show-tool-tips">gimp_show_tool_tips</a> (void);
gboolean <a href="libgimp-gimp.html#gimp-show-help-button">gimp_show_help_button</a> (void);
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpCheckSize"
>GimpCheckSize</a> <a href="libgimp-gimp.html#gimp-check-size">gimp_check_size</a> (void);
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpCheckType"
>GimpCheckType</a> <a href="libgimp-gimp.html#gimp-check-type">gimp_check_type</a> (void);
gint32 <a href="libgimp-gimp.html#gimp-default-display">gimp_default_display</a> (void);
const gchar* <a href="libgimp-gimp.html#gimp-wm-class">gimp_wm_class</a> (void);
const gchar* <a href="libgimp-gimp.html#gimp-display-name">gimp_display_name</a> (void);
gint <a href="libgimp-gimp.html#gimp-monitor-number">gimp_monitor_number</a> (void);
const gchar* <a href="libgimp-gimp.html#gimp-get-progname">gimp_get_progname</a> (void);
void <a href="libgimp-gimp.html#gimp-extension-enable">gimp_extension_enable</a> (void);
void <a href="libgimp-gimp.html#gimp-extension-ack">gimp_extension_ack</a> (void);
void <a href="libgimp-gimp.html#gimp-extension-process">gimp_extension_process</a> (guint timeout);
<a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a>* <a href="libgimp-gimp.html#gimp-parasite-find">gimp_parasite_find</a> (const gchar *name);
gboolean <a href="libgimp-gimp.html#gimp-parasite-list">gimp_parasite_list</a> (gint *num_parasites,
gchar ***parasites);
gboolean <a href="libgimp-gimp.html#gimp-parasite-attach">gimp_parasite_attach</a> (<a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a> *parasite);
gboolean <a href="libgimp-gimp.html#gimp-parasite-detach">gimp_parasite_detach</a> (const gchar *name);
void <a href="libgimp-gimp.html#gimp-attach-new-parasite">gimp_attach_new_parasite</a> (const gchar *name,
gint flags,
gint size,
gconstpointer data);
</pre></div><div class="refsect1" lang="en"><a name="id2469824"></a><h2>Description</h2><p>
Main functions needed for building a GIMP plug-in. This header includes
all other GIMP Library headers.
</p></div><div class="refsect1" lang="en"><a name="id2469836"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2469841"></a><h3><a name="GIMPVAR:CAPS"></a>GIMPVAR</h3><a class="indexterm" name="id2586343"></a><pre class="programlisting">#define GIMPVAR</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586353"></a><h3><a name="gimp-version"></a>gimp_version ()</h3><a class="indexterm" name="id2586361"></a><pre class="programlisting">gchar* gimp_version (void);</pre><p>
Returns the host gimp version.
</p><p>
This procedure returns the version number of the currently running
gimp.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The gimp version.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2586397"></a><h3><a name="gimp-major-version"></a>gimp_major_version</h3><a class="indexterm" name="id2586406"></a><pre class="programlisting">extern const guint gimp_major_version;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586415"></a><h3><a name="gimp-minor-version"></a>gimp_minor_version</h3><a class="indexterm" name="id2586424"></a><pre class="programlisting">extern const guint gimp_minor_version;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586433"></a><h3><a name="gimp-micro-version"></a>gimp_micro_version</h3><a class="indexterm" name="id2586442"></a><pre class="programlisting">extern const guint gimp_micro_version;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586451"></a><h3><a name="gimp-get-data"></a>gimp_get_data</h3><a class="indexterm" name="id2586460"></a><pre class="programlisting">#define gimp_get_data gimp_procedural_db_get_data
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586470"></a><h3><a name="gimp-get-data-size"></a>gimp_get_data_size</h3><a class="indexterm" name="id2586479"></a><pre class="programlisting">#define gimp_get_data_size gimp_procedural_db_get_data_size
</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2586503"></a><h3><a name="gimp-set-data"></a>gimp_set_data</h3><a class="indexterm" name="id2586512"></a><pre class="programlisting">#define gimp_set_data gimp_procedural_db_set_data
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586522"></a><h3><a name="GimpInitProc"></a>GimpInitProc ()</h3><a class="indexterm" name="id2586531"></a><pre class="programlisting">void (*GimpInitProc) (void);</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586545"></a><h3><a name="GimpQuitProc"></a>GimpQuitProc ()</h3><a class="indexterm" name="id2586554"></a><pre class="programlisting">void (*GimpQuitProc) (void);</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586568"></a><h3><a name="GimpQueryProc"></a>GimpQueryProc ()</h3><a class="indexterm" name="id2586577"></a><pre class="programlisting">void (*GimpQueryProc) (void);</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586591"></a><h3><a name="GimpRunProc"></a>GimpRunProc ()</h3><a class="indexterm" name="id2586600"></a><pre class="programlisting">void (*GimpRunProc) (const gchar *name,
gint n_params,
const <a href="libgimp-gimp.html#GimpParam">GimpParam</a> *param,
gint *n_return_vals,
<a href="libgimp-gimp.html#GimpParam">GimpParam</a> **return_vals);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>n_params</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>param</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>n_return_vals</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>return_vals</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2586702"></a><h3><a name="GimpPlugInInfo"></a>GimpPlugInInfo</h3><a class="indexterm" name="id2586711"></a><pre class="programlisting">typedef struct {
/* called when the gimp application initially starts up */
GimpInitProc init_proc;
/* called when the gimp application exits */
GimpQuitProc quit_proc;
/* called by the gimp so that the plug-in can inform the
* gimp of what it does. (ie. installing a procedure database
* procedure).
*/
GimpQueryProc query_proc;
/* called to run a procedure the plug-in installed in the
* procedure database.
*/
GimpRunProc run_proc;
} GimpPlugInInfo;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586729"></a><h3><a name="GimpParamDef"></a>GimpParamDef</h3><a class="indexterm" name="id2586737"></a><pre class="programlisting">typedef struct {
GimpPDBArgType type;
gchar *name;
gchar *description;
} GimpParamDef;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586749"></a><h3><a name="GimpParamRegion"></a>GimpParamRegion</h3><a class="indexterm" name="id2586757"></a><pre class="programlisting">typedef struct {
gint32 x;
gint32 y;
gint32 width;
gint32 height;
} GimpParamRegion;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586769"></a><h3><a name="GimpParamData"></a>union GimpParamData</h3><a class="indexterm" name="id2586777"></a><pre class="programlisting">union GimpParamData
{
gint32 d_int32;
gint16 d_int16;
gint8 d_int8;
gdouble d_float;
gchar *d_string;
gint32 *d_int32array;
gint16 *d_int16array;
gint8 *d_int8array;
gdouble *d_floatarray;
gchar **d_stringarray;
GimpRGB d_color;
GimpParamRegion d_region;
gint32 d_display;
gint32 d_image;
gint32 d_layer;
gint32 d_layer_mask;
gint32 d_channel;
gint32 d_drawable;
gint32 d_selection;
gint32 d_boundary;
gint32 d_path;
gint32 d_unit;
GimpParasite d_parasite;
gint32 d_tattoo;
GimpPDBStatusType d_status;
};
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2560108"></a><h3><a name="GimpParam"></a>GimpParam</h3><a class="indexterm" name="id2563258"></a><pre class="programlisting">typedef struct {
GimpPDBArgType type;
GimpParamData data;
} GimpParam;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2529771"></a><h3><a name="MAIN:CAPS"></a>MAIN()</h3><a class="indexterm" name="id2555298"></a><pre class="programlisting">#define MAIN()</pre><p>
A macro that expands to the appropriate <tt class="function">main()</tt> function for the
platform being compiled for.
</p><p>
To use this macro, simply place a line that contains just the code
<a href="libgimp-gimp.html#MAIN:CAPS"><tt class="function">MAIN()</tt></a> at the toplevel of your file. No semicolon should be used.</p><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586816"></a><h3><a name="gimp-main"></a>gimp_main ()</h3><a class="indexterm" name="id2586824"></a><pre class="programlisting">gint gimp_main (const <a href="libgimp-gimp.html#GimpPlugInInfo">GimpPlugInInfo</a> *info,
gint argc,
gchar *argv[]);</pre><p>
The main procedure that must be called with the PLUG_IN_INFO structure
and the 'argc' and 'argv' that are passed to "main".</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>info</tt></i><EFBFBD>:</span></td><td> the PLUG_IN_INFO structure
</td></tr><tr><td><span class="term"><i class="parameter"><tt>argc</tt></i><EFBFBD>:</span></td><td> the number of arguments
</td></tr><tr><td><span class="term"><i class="parameter"><tt>argv</tt></i><EFBFBD>:</span></td><td> the arguments
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2586902"></a><h3><a name="gimp-quit"></a>gimp_quit ()</h3><a class="indexterm" name="id2586909"></a><pre class="programlisting">void gimp_quit (void);</pre><p>
Forcefully causes the gimp library to exit and close down its
connection to main gimp application. This function never returns.</p><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2586928"></a><h3><a name="gimp-install-procedure"></a>gimp_install_procedure ()</h3><a class="indexterm" name="id2586935"></a><pre class="programlisting">void gimp_install_procedure (const gchar *name,
const gchar *blurb,
const gchar *help,
const gchar *author,
const gchar *copyright,
const gchar *date,
const gchar *menu_label,
const gchar *image_types,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBProcType"
>GimpPDBProcType</a> type,
gint n_params,
gint n_return_vals,
const <a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> *params,
const <a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> *return_vals);</pre><p>
Installs a new procedure with the PDB (procedural database).
</p><p>
Call this function from within your Plug-In's <tt class="function">query()</tt> function for
each procedure your Plug-In implements.
</p><p>
The <i class="parameter"><tt>name</tt></i> parameter is mandatory and should be unique, or it will
overwrite an already existing procedure (overwrite procedures only
if you know what you're doing).
</p><p>
The <i class="parameter"><tt>blurb</tt></i>, <i class="parameter"><tt>help</tt></i>, <i class="parameter"><tt>author</tt></i>, <i class="parameter"><tt>copyright</tt></i> and <i class="parameter"><tt>date</tt></i> parameters are
optional but then you shouldn't write procedures without proper
documentation, should you.
</p><p>
<i class="parameter"><tt>menu_label</tt></i> defines the label that should be used for the
procedure's menu entry (use <span class="type">NULL</span> if the procedure shouldn't have a
menu entry). The position where to register in the menu hierarchy
is choosen using <a href="libgimp-gimpplugin.html#gimp-plugin-menu-register"><tt class="function">gimp_plugin_menu_register()</tt></a>. This function also
still accepts the old (pre-2.2) way of registering a menu entry and
takes a string in the form "&lt;Domain&gt;/Path/To/My/Menu"
(e.g. "&lt;Image&gt;/Filters/Render/Useless").
</p><p>
<i class="parameter"><tt>type</tt></i> must be one of <span class="type">GIMP_PLUGIN</span> or <span class="type">GIMP_EXTENSION</span>. Note that
temporary procedures must be installed using
<a href="libgimp-gimp.html#gimp-install-temp-proc"><tt class="function">gimp_install_temp_proc()</tt></a>.
</p><p>
NOTE: Unlike the GIMP 1.2 API, <span class="type">GIMP_EXTENSION</span> no longer means
that the procedure's menu prefix is &lt;Toolbox&gt;, but that
it will install temporary procedures. Therefore, the GIMP core
will wait until the <span class="type">GIMP_EXTENSION</span> procedure has called
<a href="libgimp-gimp.html#gimp-extension-ack"><tt class="function">gimp_extension_ack()</tt></a>, which means that the procedure has done
its initialization, installed its temporary procedures and is
ready to run.
</p><p>
<span class="emphasis"><em>Not calling <a href="libgimp-gimp.html#gimp-extension-ack"><tt class="function">gimp_extension_ack()</tt></a> from a <span class="type">GIMP_EXTENSION</span>
procedure will cause th GIMP core to lock up.</em></span>
</p><p>
Additionally, a <span class="type">GIMP_EXTENSION</span> procedure with no parameters
(<i class="parameter"><tt>n_params</tt></i> == 0 and <i class="parameter"><tt>params</tt></i> == <span class="type">NULL</span>) is an "automatic" extension
that will be automatically started on each GIMP startup.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the procedure's name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>blurb</tt></i><EFBFBD>:</span></td><td> a short text describing what the procedure does.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>help</tt></i><EFBFBD>:</span></td><td> the help text for the procedure (usually considerably
longer than <i class="parameter"><tt>blurb</tt></i>).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>author</tt></i><EFBFBD>:</span></td><td> the procedure's author(s).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>copyright</tt></i><EFBFBD>:</span></td><td> the procedure's copyright.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>date</tt></i><EFBFBD>:</span></td><td> the date the procedure was added.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>menu_label</tt></i><EFBFBD>:</span></td><td> the label to use for the procedure's menu entry,
or <span class="type">NULL</span> if the procedure has no menu entry.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>image_types</tt></i><EFBFBD>:</span></td><td> the drawable types the procedure can handle.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>type</tt></i><EFBFBD>:</span></td><td> the type of the procedure.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>n_params</tt></i><EFBFBD>:</span></td><td> the number of parameters the procedure takes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>n_return_vals</tt></i><EFBFBD>:</span></td><td> the number of return values the procedure returns.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>params</tt></i><EFBFBD>:</span></td><td> the procedure's parameters.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>return_vals</tt></i><EFBFBD>:</span></td><td> the procedure's return values.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2587352"></a><h3><a name="gimp-install-temp-proc"></a>gimp_install_temp_proc ()</h3><a class="indexterm" name="id2587360"></a><pre class="programlisting">void gimp_install_temp_proc (const gchar *name,
const gchar *blurb,
const gchar *help,
const gchar *author,
const gchar *copyright,
const gchar *date,
const gchar *menu_label,
const gchar *image_types,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBProcType"
>GimpPDBProcType</a> type,
gint n_params,
gint n_return_vals,
const <a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> *params,
const <a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> *return_vals,
<a href="libgimp-gimp.html#GimpRunProc">GimpRunProc</a> run_proc);</pre><p>
Installs a new temporary procedure with the PDB (procedural database).
</p><p>
A temporary procedure is a procedure which is only available while
one of your Plug-In's "real" procedures is running.
</p><p>
See <a href="libgimp-gimp.html#gimp-install-procedure"><tt class="function">gimp_install_procedure()</tt></a> for most details.
</p><p>
<i class="parameter"><tt>type</tt></i> <span class="emphasis"><em>must</em></span> be <span class="type">GIMP_TEMPORARY</span> or the function
will fail.
</p><p>
<i class="parameter"><tt>run_proc</tt></i> is the function which will be called to execute the
procedure.
</p><p>
NOTE: Normally, Plug-In communication is triggered by the Plug-In
and the GIMP core only responds to the Plug-In's requests. You must
explicitely enable receiving of temporary procedure run requests
using either <a href="libgimp-gimp.html#gimp-extension-enable"><tt class="function">gimp_extension_enable()</tt></a> or
<a href="libgimp-gimp.html#gimp-extension-process"><tt class="function">gimp_extension_process()</tt></a>. See this functions' documentation for
details.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the procedure's name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>blurb</tt></i><EFBFBD>:</span></td><td> a short text describing what the procedure does.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>help</tt></i><EFBFBD>:</span></td><td> the help text for the procedure (usually considerably
longer than <i class="parameter"><tt>blurb</tt></i>).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>author</tt></i><EFBFBD>:</span></td><td> the procedure's author(s).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>copyright</tt></i><EFBFBD>:</span></td><td> the procedure's copyright.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>date</tt></i><EFBFBD>:</span></td><td> the date the procedure was added.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>menu_label</tt></i><EFBFBD>:</span></td><td> the procedure's menu label, or <span class="type">NULL</span> if the procedure has
no menu entry.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>image_types</tt></i><EFBFBD>:</span></td><td> the drawable types the procedure can handle.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>type</tt></i><EFBFBD>:</span></td><td> the type of the procedure.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>n_params</tt></i><EFBFBD>:</span></td><td> the number of parameters the procedure takes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>n_return_vals</tt></i><EFBFBD>:</span></td><td> the number of return values the procedure returns.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>params</tt></i><EFBFBD>:</span></td><td> the procedure's parameters.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>return_vals</tt></i><EFBFBD>:</span></td><td> the procedure's return values.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>run_proc</tt></i><EFBFBD>:</span></td><td> the function to call for executing the procedure.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2587698"></a><h3><a name="gimp-uninstall-temp-proc"></a>gimp_uninstall_temp_proc ()</h3><a class="indexterm" name="id2587706"></a><pre class="programlisting">void gimp_uninstall_temp_proc (const gchar *name);</pre><p>
Uninstalls a temporary procedure which has previously been
installed using <a href="libgimp-gimp.html#gimp-install-temp-proc"><tt class="function">gimp_install_temp_proc()</tt></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the procedure's name
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2587752"></a><h3><a name="gimp-run-procedure"></a>gimp_run_procedure ()</h3><a class="indexterm" name="id2587760"></a><pre class="programlisting"><a href="libgimp-gimp.html#GimpParam">GimpParam</a>* gimp_run_procedure (const gchar *name,
gint *n_return_vals,
...);</pre><p>
This function calls a GIMP procedure and returns its return values.
</p><p>
The procedure's parameters are given by a va_list in the format
(type, value, type, value) and must be terminated by <span class="type">GIMP_PDB_END</span>.
</p><p>
This function converts the va_list of parameters into an array
and passes them to <a href="libgimp-gimp.html#gimp-run-procedure2"><tt class="function">gimp_run_procedure2()</tt></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the name of the procedure to run
</td></tr><tr><td><span class="term"><i class="parameter"><tt>n_return_vals</tt></i><EFBFBD>:</span></td><td> return location for the number of return values
</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i><EFBFBD>:</span></td><td> list of procedure parameters
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the procedure's return values.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2587860"></a><h3><a name="gimp-run-procedure2"></a>gimp_run_procedure2 ()</h3><a class="indexterm" name="id2587868"></a><pre class="programlisting"><a href="libgimp-gimp.html#GimpParam">GimpParam</a>* gimp_run_procedure2 (const gchar *name,
gint *n_return_vals,
gint n_params,
const <a href="libgimp-gimp.html#GimpParam">GimpParam</a> *params);</pre><p>
This function calls a GIMP procedure and returns its return values.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the name of the procedure to run
</td></tr><tr><td><span class="term"><i class="parameter"><tt>n_return_vals</tt></i><EFBFBD>:</span></td><td> return location for the number of return values
</td></tr><tr><td><span class="term"><i class="parameter"><tt>n_params</tt></i><EFBFBD>:</span></td><td> the number of parameters the procedure takes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>params</tt></i><EFBFBD>:</span></td><td> the procedure's parameters array.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the procedure's return values.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2587969"></a><h3><a name="gimp-destroy-params"></a>gimp_destroy_params ()</h3><a class="indexterm" name="id2587978"></a><pre class="programlisting">void gimp_destroy_params (<a href="libgimp-gimp.html#GimpParam">GimpParam</a> *params,
gint n_params);</pre><p>
Destroys a <a href="libgimp-gimp.html#GimpParam"><span class="type">GimpParam</span></a> array as returned by <a href="libgimp-gimp.html#gimp-run-procedure"><tt class="function">gimp_run_procedure()</tt></a></p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>params</tt></i><EFBFBD>:</span></td><td> the <a href="libgimp-gimp.html#GimpParam"><span class="type">GimpParam</span></a> array to destroy
</td></tr><tr><td><span class="term"><i class="parameter"><tt>n_params</tt></i><EFBFBD>:</span></td><td> the number of elements in the array
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588049"></a><h3><a name="gimp-destroy-paramdefs"></a>gimp_destroy_paramdefs ()</h3><a class="indexterm" name="id2588058"></a><pre class="programlisting">void gimp_destroy_paramdefs (<a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> *paramdefs,
gint n_params);</pre><p>
Destroys a <a href="libgimp-gimp.html#GimpParamDef"><span class="type">GimpParamDef</span></a> array as returned by <tt class="function">gimp_query_procedure()</tt></p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>paramdefs</tt></i><EFBFBD>:</span></td><td> the <a href="libgimp-gimp.html#GimpParamDef"><span class="type">GimpParamDef</span></a> array to destroy
</td></tr><tr><td><span class="term"><i class="parameter"><tt>n_params</tt></i><EFBFBD>:</span></td><td> the number of elements in the array
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588129"></a><h3><a name="gimp-tile-width"></a>gimp_tile_width ()</h3><a class="indexterm" name="id2588138"></a><pre class="programlisting">guint gimp_tile_width (void);</pre><p>
Returns the tile_width the GIMP is using. This is a constant value
given at Plug-In config time.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the tile_width
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588171"></a><h3><a name="gimp-tile-height"></a>gimp_tile_height ()</h3><a class="indexterm" name="id2588180"></a><pre class="programlisting">guint gimp_tile_height (void);</pre><p>
Returns the tile_height the GIMP is using. This is a constant value
given at Plug-In config time.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the tile_height
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588213"></a><h3><a name="gimp-shm-ID"></a>gimp_shm_ID ()</h3><a class="indexterm" name="id2588221"></a><pre class="programlisting">gint gimp_shm_ID (void);</pre><p>
Returns the shared memory ID used for passing tile data between the GIMP
core and the Plug-In. This is a constant value
given at Plug-In config time.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the shared memory ID
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588256"></a><h3><a name="gimp-shm-addr"></a>gimp_shm_addr ()</h3><a class="indexterm" name="id2588264"></a><pre class="programlisting">guchar* gimp_shm_addr (void);</pre><p>
Returns the address of the shared memory segment used for passing
tile data between the GIMP core and the Plug-In. This is a constant
value given at Plug-In config time.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the shared memory address
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588298"></a><h3><a name="gimp-gamma"></a>gimp_gamma ()</h3><a class="indexterm" name="id2588307"></a><pre class="programlisting">gdouble gimp_gamma (void);</pre><p>
Returns the global gamma value the GIMP and all its Plug-Ins should
use. This is a constant value given at Plug-In config time.
</p><p>
NOTE: this feature is unimplemented.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the gamma value
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588344"></a><h3><a name="gimp-install-cmap"></a>gimp_install_cmap ()</h3><a class="indexterm" name="id2588352"></a><pre class="programlisting">gboolean gimp_install_cmap (void);</pre><p>
Returns whether or not the Plug-In should allocate an own colormap
when running on an 8 bit display. This is a constant value given at
Plug-In config time.
</p><p>
See also: <a href="libgimp-gimp.html#gimp-min-colors"><tt class="function">gimp_min_colors()</tt></a></p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the install_cmap boolean
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588394"></a><h3><a name="gimp-min-colors"></a>gimp_min_colors ()</h3><a class="indexterm" name="id2588403"></a><pre class="programlisting">gint gimp_min_colors (void);</pre><p>
Returns the minimum number of colors to use when allocating an own
colormap on 8 bit displays. This is a constant value given at
Plug-In config time.
</p><p>
See also: <a href="libgimp-gimp.html#gimp-install-cmap"><tt class="function">gimp_install_cmap()</tt></a></p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the minimum number of colors to allocate
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588445"></a><h3><a name="gimp-show-tool-tips"></a>gimp_show_tool_tips ()</h3><a class="indexterm" name="id2588454"></a><pre class="programlisting">gboolean gimp_show_tool_tips (void);</pre><p>
Returns whether or not the Plug-In should show tooltips. This is a
constant value given at Plug-In config time.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the show_tool_tips boolean
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588486"></a><h3><a name="gimp-show-help-button"></a>gimp_show_help_button ()</h3><a class="indexterm" name="id2588495"></a><pre class="programlisting">gboolean gimp_show_help_button (void);</pre><p>
Returns whether or not GimpDialog should automatically add a help
button if help_func and help_id are given.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the show_help_button boolean
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2588532"></a><h3><a name="gimp-check-size"></a>gimp_check_size ()</h3><a class="indexterm" name="id2588540"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpCheckSize"
>GimpCheckSize</a> gimp_check_size (void);</pre><p>
Returns the size of the checkerboard to be used in previews.
This is a constant value given at Plug-In config time.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the check_size value
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2588577"></a><h3><a name="gimp-check-type"></a>gimp_check_type ()</h3><a class="indexterm" name="id2588585"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpCheckType"
>GimpCheckType</a> gimp_check_type (void);</pre><p>
Returns the type of the checkerboard to be used in previews.
This is a constant value given at Plug-In config time.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the check_type value
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2588622"></a><h3><a name="gimp-default-display"></a>gimp_default_display ()</h3><a class="indexterm" name="id2588631"></a><pre class="programlisting">gint32 gimp_default_display (void);</pre><p>
Returns the default display ID. This corresponds to the display the
running procedure's menu entry was invoked from. This is a
constant value given at Plug-In config time.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the default display ID
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588665"></a><h3><a name="gimp-wm-class"></a>gimp_wm_class ()</h3><a class="indexterm" name="id2588674"></a><pre class="programlisting">const gchar* gimp_wm_class (void);</pre><p>
Returns the window manager class to be used for plug-in windows.
This is a constant value given at Plug-In config time.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the window manager class
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588708"></a><h3><a name="gimp-display-name"></a>gimp_display_name ()</h3><a class="indexterm" name="id2588716"></a><pre class="programlisting">const gchar* gimp_display_name (void);</pre><p>
Returns the display to be used for plug-in windows.
This is a constant value given at Plug-In config time.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the display name
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588750"></a><h3><a name="gimp-monitor-number"></a>gimp_monitor_number ()</h3><a class="indexterm" name="id2588758"></a><pre class="programlisting">gint gimp_monitor_number (void);</pre><p>
Returns the monitor number to be used for plug-in windows.
This is a constant value given at Plug-In config time.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the monitor number
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588792"></a><h3><a name="gimp-get-progname"></a>gimp_get_progname ()</h3><a class="indexterm" name="id2588800"></a><pre class="programlisting">const gchar* gimp_get_progname (void);</pre><p>
Returns the Plug-In's executable name.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the executable name
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2588832"></a><h3><a name="gimp-extension-enable"></a>gimp_extension_enable ()</h3><a class="indexterm" name="id2588840"></a><pre class="programlisting">void gimp_extension_enable (void);</pre><p>
Enables asnychronous processing of messages from the main GIMP
application.
</p><p>
Normally, a plug-in is not called by the GIMP except for the call
to the procedure it implements. All subsequent communication is
triggered by the plug-in and all messages sent from the GIMP to the
plug-in are just answers to requests the plug-in made.
</p><p>
If the plug-in however registered temporary procedures using
<a href="libgimp-gimp.html#gimp-install-temp-proc"><tt class="function">gimp_install_temp_proc()</tt></a>, it needs to be able to receive requests
to execute them. Usually this will be done by running
<a href="libgimp-gimp.html#gimp-extension-process"><tt class="function">gimp_extension_process()</tt></a> in an endless loop.
</p><p>
If the plug-in cannot use <a href="libgimp-gimp.html#gimp-extension-process"><tt class="function">gimp_extension_process()</tt></a>, i.e. if it has
a GUI and is hanging around in a <span class="type">GMainLoop</span>, it must call
<a href="libgimp-gimp.html#gimp-extension-enable"><tt class="function">gimp_extension_enable()</tt></a>.
</p><p>
Note that the plug-in does not need to be a <span class="type">GIMP_EXTENSION</span> to
register temporary procedures.
</p><p>
See also: <a href="libgimp-gimp.html#gimp-install-procedure"><tt class="function">gimp_install_procedure()</tt></a>, <a href="libgimp-gimp.html#gimp-install-temp-proc"><tt class="function">gimp_install_temp_proc()</tt></a></p><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2588934"></a><h3><a name="gimp-extension-ack"></a>gimp_extension_ack ()</h3><a class="indexterm" name="id2588942"></a><pre class="programlisting">void gimp_extension_ack (void);</pre><p>
Notify the main GIMP application that the extension has been properly
initialized and is ready to run.
</p><p>
This function <span class="emphasis"><em>must</em></span> be called from every
procedure that was registered as <span class="type">GIMP_EXTENSION</span>.
</p><p>
Subsequently, extensions can process temporary procedure run
requests using either <a href="libgimp-gimp.html#gimp-extension-enable"><tt class="function">gimp_extension_enable()</tt></a> or
<a href="libgimp-gimp.html#gimp-extension-process"><tt class="function">gimp_extension_process()</tt></a>.
</p><p>
See also: <a href="libgimp-gimp.html#gimp-install-procedure"><tt class="function">gimp_install_procedure()</tt></a>, <a href="libgimp-gimp.html#gimp-install-temp-proc"><tt class="function">gimp_install_temp_proc()</tt></a></p><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2589008"></a><h3><a name="gimp-extension-process"></a>gimp_extension_process ()</h3><a class="indexterm" name="id2589016"></a><pre class="programlisting">void gimp_extension_process (guint timeout);</pre><p>
Processes one message sent by the GIMP and returns.
</p><p>
Call this function in an endless loop after calling
<a href="libgimp-gimp.html#gimp-extension-ack"><tt class="function">gimp_extension_ack()</tt></a> to process requests for running temporary
procedures.
</p><p>
See <a href="libgimp-gimp.html#gimp-extension-enable"><tt class="function">gimp_extension_enable()</tt></a> for an asynchronous way of doing the
same if running an endless loop is not an option.
</p><p>
See also: <a href="libgimp-gimp.html#gimp-install-procedure"><tt class="function">gimp_install_procedure()</tt></a>, <a href="libgimp-gimp.html#gimp-install-temp-proc"><tt class="function">gimp_install_temp_proc()</tt></a></p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>timeout</tt></i><EFBFBD>:</span></td><td> The timeout (in ms) to use for the <tt class="function">select()</tt> call.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2589098"></a><h3><a name="gimp-parasite-find"></a>gimp_parasite_find ()</h3><a class="indexterm" name="id2589106"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a>* gimp_parasite_find (const gchar *name);</pre><p>
Finds the named parasite.
</p><p>
Finds and returns the named parasite that was previously attached to
the gimp.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the parasite to find.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The found parasite.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2589157"></a><h3><a name="gimp-parasite-list"></a>gimp_parasite_list ()</h3><a class="indexterm" name="id2589166"></a><pre class="programlisting">gboolean gimp_parasite_list (gint *num_parasites,
gchar ***parasites);</pre><p>
List all parasites.
</p><p>
Returns a list of all currently attached parasites.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>num_parasites</tt></i><EFBFBD>:</span></td><td> The number of attached parasites.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>parasites</tt></i><EFBFBD>:</span></td><td> The names of currently attached parasites.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2589234"></a><h3><a name="gimp-parasite-attach"></a>gimp_parasite_attach ()</h3><a class="indexterm" name="id2589243"></a><pre class="programlisting">gboolean gimp_parasite_attach (<a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a> *parasite);</pre><p>
Add a parasite to the gimp.
</p><p>
This procedure attaches a parasite to the gimp. It has no return
values.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>parasite</tt></i><EFBFBD>:</span></td><td> The parasite to attach to the gimp.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2589294"></a><h3><a name="gimp-parasite-detach"></a>gimp_parasite_detach ()</h3><a class="indexterm" name="id2589302"></a><pre class="programlisting">gboolean gimp_parasite_detach (const gchar *name);</pre><p>
Removes a parasite from the gimp.
</p><p>
This procedure detaches a parasite from the gimp. It has no return
values.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the parasite to detach from the gimp.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2589354"></a><h3><a name="gimp-attach-new-parasite"></a>gimp_attach_new_parasite ()</h3><a class="indexterm" name="id2589365"></a><pre class="programlisting">void gimp_attach_new_parasite (const gchar *name,
gint flags,
gint size,
gconstpointer data);</pre><p>
Convenience function that creates a parasite and attaches it
to the GIMP.
</p><p>
See Also: <a href="libgimp-gimp.html#gimp-parasite-attach"><tt class="function">gimp_parasite_attach()</tt></a></p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the name of the <a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
><span class="type">GimpParasite</span></a> to create and attach.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>flags</tt></i><EFBFBD>:</span></td><td> the flags set on the <a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
><span class="type">GimpParasite</span></a>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size</tt></i><EFBFBD>:</span></td><td> the size of the parasite data in bytes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> a pointer to the data attached with the <a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
><span class="type">GimpParasite</span></a>.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-general.html"><b>&lt;&lt;<EFBFBD>Functions not Related to Specific Images</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpcontext.html"><b>gimpcontext<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,137 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpbrush</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-data.html" title="Data Objects"><link rel="prev" href="libgimp-data.html" title="Data Objects"><link rel="next" href="libgimp-gimpbrushes.html" title="gimpbrushes"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-data.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-data.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpbrushes.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpbrush"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpbrush</span></h2><p>gimpbrush &#8212; Functions operating on a single brush.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gchar* <a href="libgimp-gimpbrush.html#gimp-brush-new">gimp_brush_new</a> (const gchar *name);
gchar* <a href="libgimp-gimpbrush.html#gimp-brush-duplicate">gimp_brush_duplicate</a> (const gchar *name);
gchar* <a href="libgimp-gimpbrush.html#gimp-brush-rename">gimp_brush_rename</a> (const gchar *name,
const gchar *new_name);
gboolean <a href="libgimp-gimpbrush.html#gimp-brush-delete">gimp_brush_delete</a> (const gchar *name);
gboolean <a href="libgimp-gimpbrush.html#gimp-brush-get-info">gimp_brush_get_info</a> (const gchar *name,
gint *width,
gint *height,
gint *mask_bpp,
gint *color_bpp);
gboolean <a href="libgimp-gimpbrush.html#gimp-brush-get-pixels">gimp_brush_get_pixels</a> (const gchar *name,
gint *width,
gint *height,
gint *mask_bpp,
gint *num_mask_bytes,
guint8 **mask_bytes,
gint *color_bpp,
gint *num_color_bytes,
guint8 **color_bytes);
gboolean <a href="libgimp-gimpbrush.html#gimp-brush-get-spacing">gimp_brush_get_spacing</a> (const gchar *name,
gint *spacing);
gboolean <a href="libgimp-gimpbrush.html#gimp-brush-set-spacing">gimp_brush_set_spacing</a> (const gchar *name,
gint spacing);
</pre></div><div class="refsect1" lang="en"><a name="id2645014"></a><h2>Description</h2><p>
Functions operating on a single brush.
</p></div><div class="refsect1" lang="en"><a name="id2645024"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2645029"></a><h3><a name="gimp-brush-new"></a>gimp_brush_new ()</h3><a class="indexterm" name="id2645037"></a><pre class="programlisting">gchar* gimp_brush_new (const gchar *name);</pre><p>
Creates a new brush
</p><p>
This procedure creates a new, uninitialized brush</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The requested name of the new brush.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The actual new brush name.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2644694"></a><h3><a name="gimp-brush-duplicate"></a>gimp_brush_duplicate ()</h3><a class="indexterm" name="id2644702"></a><pre class="programlisting">gchar* gimp_brush_duplicate (const gchar *name);</pre><p>
Duplicates a brush
</p><p>
This procedure creates an identical brush by a different name</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The brush name.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The name of the brush's copy.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2644758"></a><h3><a name="gimp-brush-rename"></a>gimp_brush_rename ()</h3><a class="indexterm" name="id2644767"></a><pre class="programlisting">gchar* gimp_brush_rename (const gchar *name,
const gchar *new_name);</pre><p>
Rename a brush
</p><p>
This procedure renames a brush</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The brush name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_name</tt></i><EFBFBD>:</span></td><td> The new name of the brush.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The actual new name of the brush.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2644838"></a><h3><a name="gimp-brush-delete"></a>gimp_brush_delete ()</h3><a class="indexterm" name="id2644847"></a><pre class="programlisting">gboolean gimp_brush_delete (const gchar *name);</pre><p>
Deletes a brush
</p><p>
This procedure deletes a brush</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The brush name.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2644901"></a><h3><a name="gimp-brush-get-info"></a>gimp_brush_get_info ()</h3><a class="indexterm" name="id2644909"></a><pre class="programlisting">gboolean gimp_brush_get_info (const gchar *name,
gint *width,
gint *height,
gint *mask_bpp,
gint *color_bpp);</pre><p>
Retrieve information about the specified brush.
</p><p>
This procedure retrieves information about the specified brush. This
includes the brush name, and the brush extents (width and height).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The brush name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The brush width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The brush height.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mask_bpp</tt></i><EFBFBD>:</span></td><td> The brush mask bpp.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color_bpp</tt></i><EFBFBD>:</span></td><td> The brush color bpp.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2634293"></a><h3><a name="gimp-brush-get-pixels"></a>gimp_brush_get_pixels ()</h3><a class="indexterm" name="id2634301"></a><pre class="programlisting">gboolean gimp_brush_get_pixels (const gchar *name,
gint *width,
gint *height,
gint *mask_bpp,
gint *num_mask_bytes,
guint8 **mask_bytes,
gint *color_bpp,
gint *num_color_bytes,
guint8 **color_bytes);</pre><p>
Retrieve information about the specified brush.
</p><p>
This procedure retrieves information about the specified brush. This
includes the brush extents (width and height) and its pixels data.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The brush name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The brush width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The brush height.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mask_bpp</tt></i><EFBFBD>:</span></td><td> The brush mask bpp.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_mask_bytes</tt></i><EFBFBD>:</span></td><td> Length of brush mask data.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mask_bytes</tt></i><EFBFBD>:</span></td><td> The brush mask data.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color_bpp</tt></i><EFBFBD>:</span></td><td> The brush color bpp.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_color_bytes</tt></i><EFBFBD>:</span></td><td> Length of brush color data.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color_bytes</tt></i><EFBFBD>:</span></td><td> The brush color data.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2646760"></a><h3><a name="gimp-brush-get-spacing"></a>gimp_brush_get_spacing ()</h3><a class="indexterm" name="id2646768"></a><pre class="programlisting">gboolean gimp_brush_get_spacing (const gchar *name,
gint *spacing);</pre><p>
Get the brush spacing.
</p><p>
This procedure returns the spacing setting for the specified brush.
The return value is an integer between 0 and 1000 which represents
percentage of the maximum of the width and height of the mask.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The brush name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td> The brush spacing.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2646843"></a><h3><a name="gimp-brush-set-spacing"></a>gimp_brush_set_spacing ()</h3><a class="indexterm" name="id2646852"></a><pre class="programlisting">gboolean gimp_brush_set_spacing (const gchar *name,
gint spacing);</pre><p>
Set the brush spacing.
</p><p>
This procedure modifies the spacing setting for the specified brush.
The value should be a integer between 0 and 1000.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The brush name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td> The brush spacing.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-data.html"><b>&lt;&lt;<EFBFBD>Data Objects</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpbrushes.html"><b>gimpbrushes<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,108 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpbrushes</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-data.html" title="Data Objects"><link rel="prev" href="libgimp-gimpbrush.html" title="gimpbrush"><link rel="next" href="libgimp-gimpfonts.html" title="gimpfonts"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpbrush.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-data.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpfonts.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpbrushes"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpbrushes</span></h2><p>gimpbrushes &#8212; Functions for manipulating brushes.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimpbrushes.html#gimp-brushes-refresh">gimp_brushes_refresh</a> (void);
gchar** <a href="libgimp-gimpbrushes.html#gimp-brushes-get-list">gimp_brushes_get_list</a> (const gchar *filter,
gint *num_brushes);
gchar* <a href="libgimp-gimpbrushes.html#gimp-brushes-get-brush">gimp_brushes_get_brush</a> (gint *width,
gint *height,
gint *spacing);
gboolean <a href="libgimp-gimpbrushes.html#gimp-brushes-set-brush">gimp_brushes_set_brush</a> (const gchar *name);
gdouble <a href="libgimp-gimpbrushes.html#gimp-brushes-get-opacity">gimp_brushes_get_opacity</a> (void);
gboolean <a href="libgimp-gimpbrushes.html#gimp-brushes-set-opacity">gimp_brushes_set_opacity</a> (gdouble opacity);
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> <a href="libgimp-gimpbrushes.html#gimp-brushes-get-paint-mode">gimp_brushes_get_paint_mode</a>
(void);
gboolean <a href="libgimp-gimpbrushes.html#gimp-brushes-set-paint-mode">gimp_brushes_set_paint_mode</a> (<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);
gint <a href="libgimp-gimpbrushes.html#gimp-brushes-get-spacing">gimp_brushes_get_spacing</a> (void);
gboolean <a href="libgimp-gimpbrushes.html#gimp-brushes-set-spacing">gimp_brushes_set_spacing</a> (gint spacing);
gchar* <a href="libgimp-gimpbrushes.html#gimp-brushes-get-brush-data">gimp_brushes_get_brush_data</a> (const gchar *name,
gdouble *opacity,
gint *spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> *paint_mode,
gint *width,
gint *height,
gint *length,
guint8 **mask_data);
</pre></div><div class="refsect1" lang="en"><a name="id2644525"></a><h2>Description</h2><p>
Functions related to getting and setting brushes.
</p></div><div class="refsect1" lang="en"><a name="id2644536"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2644541"></a><h3><a name="gimp-brushes-refresh"></a>gimp_brushes_refresh ()</h3><a class="indexterm" name="id2644549"></a><pre class="programlisting">gboolean gimp_brushes_refresh (void);</pre><p>
Refresh current brushes. This function always succeeds.
</p><p>
This procedure retrieves all brushes currently in the user's brush
path and updates the brush dialogs accordingly.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2645385"></a><h3><a name="gimp-brushes-get-list"></a>gimp_brushes_get_list ()</h3><a class="indexterm" name="id2645394"></a><pre class="programlisting">gchar** gimp_brushes_get_list (const gchar *filter,
gint *num_brushes);</pre><p>
Retrieve a complete listing of the available brushes.
</p><p>
This procedure returns a complete listing of available GIMP brushes.
Each name returned can be used as input to the
'gimp_context_set_brush' procedure.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>filter</tt></i><EFBFBD>:</span></td><td> An optional regular expression used to filter the list.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_brushes</tt></i><EFBFBD>:</span></td><td> The number of brushes in the brush list.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The list of brush names.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2645466"></a><h3><a name="gimp-brushes-get-brush"></a>gimp_brushes_get_brush ()</h3><a class="indexterm" name="id2645474"></a><pre class="programlisting">gchar* gimp_brushes_get_brush (gint *width,
gint *height,
gint *spacing);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_brushes_get_brush</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpcontext.html#gimp-context-get-brush"><tt class="function">gimp_context_get_brush()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The brush width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The brush height.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td> The brush spacing.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The brush name.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2646372"></a><h3><a name="gimp-brushes-set-brush"></a>gimp_brushes_set_brush ()</h3><a class="indexterm" name="id2646381"></a><pre class="programlisting">gboolean gimp_brushes_set_brush (const gchar *name);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_brushes_set_brush</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpcontext.html#gimp-context-set-brush"><tt class="function">gimp_context_set_brush()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The brush name.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2646443"></a><h3><a name="gimp-brushes-get-opacity"></a>gimp_brushes_get_opacity ()</h3><a class="indexterm" name="id2646452"></a><pre class="programlisting">gdouble gimp_brushes_get_opacity (void);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_brushes_get_opacity</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpcontext.html#gimp-context-get-opacity"><tt class="function">gimp_context_get_opacity()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The brush opacity.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2646499"></a><h3><a name="gimp-brushes-set-opacity"></a>gimp_brushes_set_opacity ()</h3><a class="indexterm" name="id2646508"></a><pre class="programlisting">gboolean gimp_brushes_set_opacity (gdouble opacity);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_brushes_set_opacity</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpcontext.html#gimp-context-set-opacity"><tt class="function">gimp_context_set_opacity()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The brush opacity.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2645661"></a><h3><a name="gimp-brushes-get-paint-mode"></a>gimp_brushes_get_paint_mode ()</h3><a class="indexterm" name="id2645670"></a><pre class="programlisting"><a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> gimp_brushes_get_paint_mode
(void);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_brushes_get_paint_mode</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure isdeprecated! Use <a href="libgimp-gimpcontext.html#gimp-context-get-paint-mode"><tt class="function">gimp_context_get_paint_mode()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The paint mode.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2645718"></a><h3><a name="gimp-brushes-set-paint-mode"></a>gimp_brushes_set_paint_mode ()</h3><a class="indexterm" name="id2645726"></a><pre class="programlisting">gboolean gimp_brushes_set_paint_mode (<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_brushes_set_paint_mode</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpcontext.html#gimp-context-set-paint-mode"><tt class="function">gimp_context_set_paint_mode()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>paint_mode</tt></i><EFBFBD>:</span></td><td> The paint mode.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2645789"></a><h3><a name="gimp-brushes-get-spacing"></a>gimp_brushes_get_spacing ()</h3><a class="indexterm" name="id2645798"></a><pre class="programlisting">gint gimp_brushes_get_spacing (void);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_brushes_get_spacing</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpbrush.html#gimp-brush-get-spacing"><tt class="function">gimp_brush_get_spacing()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The brush spacing.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2645845"></a><h3><a name="gimp-brushes-set-spacing"></a>gimp_brushes_set_spacing ()</h3><a class="indexterm" name="id2645854"></a><pre class="programlisting">gboolean gimp_brushes_set_spacing (gint spacing);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_brushes_set_spacing</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpbrush.html#gimp-brush-set-spacing"><tt class="function">gimp_brush_set_spacing()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td> The brush spacing.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2645917"></a><h3><a name="gimp-brushes-get-brush-data"></a>gimp_brushes_get_brush_data ()</h3><a class="indexterm" name="id2652373"></a><pre class="programlisting">gchar* gimp_brushes_get_brush_data (const gchar *name,
gdouble *opacity,
gint *spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> *paint_mode,
gint *width,
gint *height,
gint *length,
guint8 **mask_data);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_brushes_get_brush_data</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpbrush.html#gimp-brush-get-pixels"><tt class="function">gimp_brush_get_pixels()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The brush name (\"\" means current active brush).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The brush opacity.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td> The brush spacing.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>paint_mode</tt></i><EFBFBD>:</span></td><td> The paint mode.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The brush width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The brush height.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>length</tt></i><EFBFBD>:</span></td><td> Length of brush mask data.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mask_data</tt></i><EFBFBD>:</span></td><td> The brush mask data.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The brush name.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpbrush.html"><b>&lt;&lt;<EFBFBD>gimpbrush</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpfonts.html"><b>gimpfonts<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,57 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpbrushmenu</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="libgimp-gimpmenu.html" title="gimpmenu"><link rel="next" href="libgimp-gimpfontmenu.html" title="gimpfontmenu"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpmenu.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpfontmenu.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpbrushmenu"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpbrushmenu</span></h2><p>gimpbrushmenu &#8212; A widget for selecting brushes.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
GtkWidget* <a href="libgimp-gimpbrushmenu.html#gimp-brush-select-widget-new">gimp_brush_select_widget_new</a> (const gchar *title,
const gchar *brush_name,
gdouble opacity,
gint spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode,
<a href="libgimp-gimpbrushselect.html#GimpRunBrushCallback">GimpRunBrushCallback</a> callback,
gpointer data);
void <a href="libgimp-gimpbrushmenu.html#gimp-brush-select-widget-close">gimp_brush_select_widget_close</a> (GtkWidget *widget);
void <a href="libgimp-gimpbrushmenu.html#gimp-brush-select-widget-set">gimp_brush_select_widget_set</a> (GtkWidget *widget,
const gchar *brush_name,
gdouble opacity,
gint spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);
</pre></div><div class="refsect1" lang="en"><a name="id2669267"></a><h2>Description</h2><p>
A widget for selecting brushes.
</p></div><div class="refsect1" lang="en"><a name="id2669277"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2669282"></a><h3><a name="gimp-brush-select-widget-new"></a>gimp_brush_select_widget_new ()</h3><a class="indexterm" name="id2669291"></a><pre class="programlisting">GtkWidget* gimp_brush_select_widget_new (const gchar *title,
const gchar *brush_name,
gdouble opacity,
gint spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode,
<a href="libgimp-gimpbrushselect.html#GimpRunBrushCallback">GimpRunBrushCallback</a> callback,
gpointer data);</pre><p>
Creates a new <span class="type">GtkWidget</span> that completely controls the selection of
a <span class="type">GimpBrush</span>. This widget is suitable for placement in a table in
a plug-in dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>title</tt></i><EFBFBD>:</span></td><td> Title of the dialog to use or <tt class="literal">NULL</tt> to use the default title.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>brush_name</tt></i><EFBFBD>:</span></td><td> Initial brush name or <tt class="literal">NULL</tt> to use current selection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> Initial opacity. -1 means to use current opacity.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td> Initial spacing. -1 means to use current spacing.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>paint_mode</tt></i><EFBFBD>:</span></td><td> Initial paint mode. -1 means to use current paint mode.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td> A function to call when the selected brush changes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> A pointer to arbitary data to be used in the call to <i class="parameter"><tt>callback</tt></i>.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> A <span class="type">GtkWidget</span> that you can use in your UI.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2670918"></a><h3><a name="gimp-brush-select-widget-close"></a>gimp_brush_select_widget_close ()</h3><a class="indexterm" name="id2670927"></a><pre class="programlisting">void gimp_brush_select_widget_close (GtkWidget *widget);</pre><p>
Closes the popup window associated with <i class="parameter"><tt>widget</tt></i>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i><EFBFBD>:</span></td><td> A brush select widget.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2670967"></a><h3><a name="gimp-brush-select-widget-set"></a>gimp_brush_select_widget_set ()</h3><a class="indexterm" name="id2670975"></a><pre class="programlisting">void gimp_brush_select_widget_set (GtkWidget *widget,
const gchar *brush_name,
gdouble opacity,
gint spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);</pre><p>
Sets the current brush and other values for the brush select
widget. Calls the callback function if one was supplied in the
call to <a href="libgimp-gimpbrushmenu.html#gimp-brush-select-widget-new"><tt class="function">gimp_brush_select_widget_new()</tt></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i><EFBFBD>:</span></td><td> A brush select widget.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>brush_name</tt></i><EFBFBD>:</span></td><td> Brush name to set; <tt class="literal">NULL</tt> means no change.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> Opacity to set. -1 means no change.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td> Spacing to set. -1 means no change.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>paint_mode</tt></i><EFBFBD>:</span></td><td> Paint mode to set. -1 means no change.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpmenu.html"><b>&lt;&lt;<EFBFBD>gimpmenu</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpfontmenu.html"><b>gimpfontmenu<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,119 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpbrushselect</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="prev" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="next" href="libgimp-gimpfontselect.html" title="gimpfontselect"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-selectors.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-selectors.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpfontselect.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpbrushselect"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpbrushselect</span></h2><p>gimpbrushselect &#8212; Functions providing a brush selection dialog.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
void (<a href="libgimp-gimpbrushselect.html#GimpRunBrushCallback">*GimpRunBrushCallback</a>) (const gchar *brush_name,
gdouble opacity,
gint spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode,
gint width,
gint height,
const guchar *mask_data,
gboolean dialog_closing,
gpointer user_data);
const gchar* <a href="libgimp-gimpbrushselect.html#gimp-brush-select-new">gimp_brush_select_new</a> (const gchar *title,
const gchar *brush_name,
gdouble opacity,
gint spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode,
<a href="libgimp-gimpbrushselect.html#GimpRunBrushCallback">GimpRunBrushCallback</a> callback,
gpointer data);
void <a href="libgimp-gimpbrushselect.html#gimp-brush-select-destroy">gimp_brush_select_destroy</a> (const gchar *brush_callback);
gboolean <a href="libgimp-gimpbrushselect.html#gimp-brushes-popup">gimp_brushes_popup</a> (const gchar *brush_callback,
const gchar *popup_title,
const gchar *initial_brush,
gdouble opacity,
gint spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);
gboolean <a href="libgimp-gimpbrushselect.html#gimp-brushes-close-popup">gimp_brushes_close_popup</a> (const gchar *brush_callback);
gboolean <a href="libgimp-gimpbrushselect.html#gimp-brushes-set-popup">gimp_brushes_set_popup</a> (const gchar *brush_callback,
const gchar *brush_name,
gdouble opacity,
gint spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);
</pre></div><div class="refsect1" lang="en"><a name="id2656782"></a><h2>Description</h2><p>
Functions providing a brush selection dialog.
</p></div><div class="refsect1" lang="en"><a name="id2656793"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2656798"></a><h3><a name="GimpRunBrushCallback"></a>GimpRunBrushCallback ()</h3><a class="indexterm" name="id2656806"></a><pre class="programlisting">void (*GimpRunBrushCallback) (const gchar *brush_name,
gdouble opacity,
gint spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode,
gint width,
gint height,
const guchar *mask_data,
gboolean dialog_closing,
gpointer user_data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>brush_name</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>paint_mode</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mask_data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dialog_closing</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2662906"></a><h3><a name="gimp-brush-select-new"></a>gimp_brush_select_new ()</h3><a class="indexterm" name="id2662914"></a><pre class="programlisting">const gchar* gimp_brush_select_new (const gchar *title,
const gchar *brush_name,
gdouble opacity,
gint spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode,
<a href="libgimp-gimpbrushselect.html#GimpRunBrushCallback">GimpRunBrushCallback</a> callback,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>title</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>brush_name</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>paint_mode</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2655886"></a><h3><a name="gimp-brush-select-destroy"></a>gimp_brush_select_destroy ()</h3><a class="indexterm" name="id2655894"></a><pre class="programlisting">void gimp_brush_select_destroy (const gchar *brush_callback);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>brush_callback</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2655929"></a><h3><a name="gimp-brushes-popup"></a>gimp_brushes_popup ()</h3><a class="indexterm" name="id2655937"></a><pre class="programlisting">gboolean gimp_brushes_popup (const gchar *brush_callback,
const gchar *popup_title,
const gchar *initial_brush,
gdouble opacity,
gint spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);</pre><p>
Invokes the Gimp brush selection.
</p><p>
This procedure popups the brush selection dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>brush_callback</tt></i><EFBFBD>:</span></td><td> The callback PDB proc to call when brush selection is made.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>popup_title</tt></i><EFBFBD>:</span></td><td> Title to give the brush popup window.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>initial_brush</tt></i><EFBFBD>:</span></td><td> The name of the brush to set as the first selected.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The initial opacity of the brush.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td> The initial spacing of the brush (if &lt; 0 then use brush default spacing).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>paint_mode</tt></i><EFBFBD>:</span></td><td> The initial paint mode.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2656077"></a><h3><a name="gimp-brushes-close-popup"></a>gimp_brushes_close_popup ()</h3><a class="indexterm" name="id2656085"></a><pre class="programlisting">gboolean gimp_brushes_close_popup (const gchar *brush_callback);</pre><p>
Popdown the Gimp brush selection.
</p><p>
This procedure closes an opened brush selection dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>brush_callback</tt></i><EFBFBD>:</span></td><td> The name of the callback registered for this popup.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2664409"></a><h3><a name="gimp-brushes-set-popup"></a>gimp_brushes_set_popup ()</h3><a class="indexterm" name="id2664417"></a><pre class="programlisting">gboolean gimp_brushes_set_popup (const gchar *brush_callback,
const gchar *brush_name,
gdouble opacity,
gint spacing,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);</pre><p>
Sets the current brush selection in a popup.
</p><p>
Sets the current brush selection in a popup.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>brush_callback</tt></i><EFBFBD>:</span></td><td> The name of the callback registered for this popup.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>brush_name</tt></i><EFBFBD>:</span></td><td> The name of the brush to set as selected.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The initial opacity of the brush.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td> The initial spacing of the brush (if &lt; 0 then use brush default spacing).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>paint_mode</tt></i><EFBFBD>:</span></td><td> The initial paint mode.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-selectors.html"><b>&lt;&lt;<EFBFBD>Controlling the Core's Selection Dialogs</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpfontselect.html"><b>gimpfontselect<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,142 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpchannel</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="next" href="libgimp-gimpcolor.html" title="gimpcolor"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-image.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpcolor.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpchannel"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpchannel</span></h2><p>gimpchannel &#8212; Functions for manipulating channels.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gint32 <a href="libgimp-gimpchannel.html#gimp-channel-new">gimp_channel_new</a> (gint32 image_ID,
const gchar *name,
guint width,
guint height,
gdouble opacity,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);
gint32 <a href="libgimp-gimpchannel.html#gimp-channel-copy">gimp_channel_copy</a> (gint32 channel_ID);
gboolean <a href="libgimp-gimpchannel.html#gimp-channel-get-show-masked">gimp_channel_get_show_masked</a> (gint32 channel_ID);
gboolean <a href="libgimp-gimpchannel.html#gimp-channel-set-show-masked">gimp_channel_set_show_masked</a> (gint32 channel_ID,
gboolean show_masked);
gdouble <a href="libgimp-gimpchannel.html#gimp-channel-get-opacity">gimp_channel_get_opacity</a> (gint32 channel_ID);
gboolean <a href="libgimp-gimpchannel.html#gimp-channel-set-opacity">gimp_channel_set_opacity</a> (gint32 channel_ID,
gdouble opacity);
gboolean <a href="libgimp-gimpchannel.html#gimp-channel-get-color">gimp_channel_get_color</a> (gint32 channel_ID,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);
gboolean <a href="libgimp-gimpchannel.html#gimp-channel-set-color">gimp_channel_set_color</a> (gint32 channel_ID,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);
gboolean <a href="libgimp-gimpchannel.html#gimp-channel-combine-masks">gimp_channel_combine_masks</a> (gint32 channel1_ID,
gint32 channel2_ID,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation,
gint offx,
gint offy);
</pre></div><div class="refsect1" lang="en"><a name="id2584434"></a><h2>Description</h2><p>
Functions for manipulating channels.
</p></div><div class="refsect1" lang="en"><a name="id2584444"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2584449"></a><h3><a name="gimp-channel-new"></a>gimp_channel_new ()</h3><a class="indexterm" name="id2584457"></a><pre class="programlisting">gint32 gimp_channel_new (gint32 image_ID,
const gchar *name,
guint width,
guint height,
gdouble opacity,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);</pre><p>
Create a new channel.
</p><p>
This procedure creates a new channel with the specified width and
height. Name, opacity, and color are also supplied parameters. The
new channel still needs to be added to the image, as this is not
automatic. Add the new channel with the 'gimp_image_add_channel'
command. Other attributes such as channel show masked, should be set
with explicit procedure calls. The channel's contents are undefined
initially.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image to which to add the channel.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The channel name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The channel width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The channel height.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The channel opacity.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The channel compositing color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The newly created channel.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2591180"></a><h3><a name="gimp-channel-copy"></a>gimp_channel_copy ()</h3><a class="indexterm" name="id2591189"></a><pre class="programlisting">gint32 gimp_channel_copy (gint32 channel_ID);</pre><p>
Copy a channel.
</p><p>
This procedure copies the specified channel and returns the copy.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>channel_ID</tt></i><EFBFBD>:</span></td><td> The channel to copy.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The newly copied channel.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2591240"></a><h3><a name="gimp-channel-get-show-masked"></a>gimp_channel_get_show_masked ()</h3><a class="indexterm" name="id2591251"></a><pre class="programlisting">gboolean gimp_channel_get_show_masked (gint32 channel_ID);</pre><p>
Get the composite method of the specified channel.
</p><p>
This procedure returns the specified channel's composite method. If
it is non-zero, then the channel is composited with the image so
that masked regions are shown. Otherwise, selected regions are
shown.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>channel_ID</tt></i><EFBFBD>:</span></td><td> The channel.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The channel composite method.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2591307"></a><h3><a name="gimp-channel-set-show-masked"></a>gimp_channel_set_show_masked ()</h3><a class="indexterm" name="id2591318"></a><pre class="programlisting">gboolean gimp_channel_set_show_masked (gint32 channel_ID,
gboolean show_masked);</pre><p>
Set the composite method of the specified channel.
</p><p>
This procedure sets the specified channel's composite method. If it
is non-zero, then the channel is composited with the image so that
masked regions are shown. Otherwise, selected regions are shown.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>channel_ID</tt></i><EFBFBD>:</span></td><td> The channel.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>show_masked</tt></i><EFBFBD>:</span></td><td> The new channel composite method.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2589753"></a><h3><a name="gimp-channel-get-opacity"></a>gimp_channel_get_opacity ()</h3><a class="indexterm" name="id2589762"></a><pre class="programlisting">gdouble gimp_channel_get_opacity (gint32 channel_ID);</pre><p>
Get the opacity of the specified channel.
</p><p>
This procedure returns the specified channel's opacity.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>channel_ID</tt></i><EFBFBD>:</span></td><td> The channel.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The channel opacity.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2589814"></a><h3><a name="gimp-channel-set-opacity"></a>gimp_channel_set_opacity ()</h3><a class="indexterm" name="id2589822"></a><pre class="programlisting">gboolean gimp_channel_set_opacity (gint32 channel_ID,
gdouble opacity);</pre><p>
Set the opacity of the specified channel.
</p><p>
This procedure sets the specified channel's opacity.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>channel_ID</tt></i><EFBFBD>:</span></td><td> The channel.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The new channel opacity.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2589892"></a><h3><a name="gimp-channel-get-color"></a>gimp_channel_get_color ()</h3><a class="indexterm" name="id2589900"></a><pre class="programlisting">gboolean gimp_channel_get_color (gint32 channel_ID,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);</pre><p>
Get the compositing color of the specified channel.
</p><p>
This procedure returns the specified channel's compositing color.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>channel_ID</tt></i><EFBFBD>:</span></td><td> The channel.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The channel compositing color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2589970"></a><h3><a name="gimp-channel-set-color"></a>gimp_channel_set_color ()</h3><a class="indexterm" name="id2589979"></a><pre class="programlisting">gboolean gimp_channel_set_color (gint32 channel_ID,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);</pre><p>
Set the compositing color of the specified channel.
</p><p>
This procedure sets the specified channel's compositing color.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>channel_ID</tt></i><EFBFBD>:</span></td><td> The channel.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The new channel compositing color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2595067"></a><h3><a name="gimp-channel-combine-masks"></a>gimp_channel_combine_masks ()</h3><a class="indexterm" name="id2595076"></a><pre class="programlisting">gboolean gimp_channel_combine_masks (gint32 channel1_ID,
gint32 channel2_ID,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation,
gint offx,
gint offy);</pre><p>
Combine two channel masks.
</p><p>
This procedure combines two channel masks. The result is stored in
the first channel.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>channel1_ID</tt></i><EFBFBD>:</span></td><td> The channel1.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>channel2_ID</tt></i><EFBFBD>:</span></td><td> The channel2.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>operation</tt></i><EFBFBD>:</span></td><td> The selection operation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offx</tt></i><EFBFBD>:</span></td><td> x offset between upper left corner of channels: (second - first).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offy</tt></i><EFBFBD>:</span></td><td> y offset between upper left corner of channels: (second - first).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-image.html"><b>&lt;&lt;<EFBFBD>Manupulating Images and all their Properties</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpcolor.html"><b>gimpcolor<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,314 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpcolor</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpchannel.html" title="gimpchannel"><link rel="next" href="libgimp-gimpconvert.html" title="gimpconvert"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpchannel.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpconvert.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpcolor"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpcolor</span></h2><p>gimpcolor &#8212; Functions for manipulating color.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimpcolor.html#gimp-brightness-contrast">gimp_brightness_contrast</a> (gint32 drawable_ID,
gint brightness,
gint contrast);
gboolean <a href="libgimp-gimpcolor.html#gimp-levels">gimp_levels</a> (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpHistogramChannel">GimpHistogramChannel</a> channel,
gint low_input,
gint high_input,
gdouble gamma,
gint low_output,
gint high_output);
gboolean <a href="libgimp-gimpcolor.html#gimp-levels-auto">gimp_levels_auto</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpcolor.html#gimp-levels-stretch">gimp_levels_stretch</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpcolor.html#gimp-posterize">gimp_posterize</a> (gint32 drawable_ID,
gint levels);
gboolean <a href="libgimp-gimpcolor.html#gimp-desaturate">gimp_desaturate</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpcolor.html#gimp-equalize">gimp_equalize</a> (gint32 drawable_ID,
gboolean mask_only);
gboolean <a href="libgimp-gimpcolor.html#gimp-invert">gimp_invert</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpcolor.html#gimp-curves-spline">gimp_curves_spline</a> (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpHistogramChannel">GimpHistogramChannel</a> channel,
gint num_points,
const guint8 *control_pts);
gboolean <a href="libgimp-gimpcolor.html#gimp-curves-explicit">gimp_curves_explicit</a> (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpHistogramChannel">GimpHistogramChannel</a> channel,
gint num_bytes,
const guint8 *curve);
gboolean <a href="libgimp-gimpcolor.html#gimp-color-balance">gimp_color_balance</a> (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpTransferMode">GimpTransferMode</a> transfer_mode,
gboolean preserve_lum,
gdouble cyan_red,
gdouble magenta_green,
gdouble yellow_blue);
gboolean <a href="libgimp-gimpcolor.html#gimp-colorize">gimp_colorize</a> (gint32 drawable_ID,
gdouble hue,
gdouble saturation,
gdouble lightness);
gboolean <a href="libgimp-gimpcolor.html#gimp-histogram">gimp_histogram</a> (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpHistogramChannel">GimpHistogramChannel</a> channel,
gint start_range,
gint end_range,
gdouble *mean,
gdouble *std_dev,
gdouble *median,
gdouble *pixels,
gdouble *count,
gdouble *percentile);
gboolean <a href="libgimp-gimpcolor.html#gimp-hue-saturation">gimp_hue_saturation</a> (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpHueRange">GimpHueRange</a> hue_range,
gdouble hue_offset,
gdouble lightness,
gdouble saturation);
gboolean <a href="libgimp-gimpcolor.html#gimp-threshold">gimp_threshold</a> (gint32 drawable_ID,
gint low_threshold,
gint high_threshold);
</pre></div><div class="refsect1" lang="en"><a name="id2594254"></a><h2>Description</h2><p>
Functions for manipulating color, including curves and histograms.
</p></div><div class="refsect1" lang="en"><a name="id2594264"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2594270"></a><h3><a name="gimp-brightness-contrast"></a>gimp_brightness_contrast ()</h3><a class="indexterm" name="id2594278"></a><pre class="programlisting">gboolean gimp_brightness_contrast (gint32 drawable_ID,
gint brightness,
gint contrast);</pre><p>
Modify brightness/contrast in the specified drawable.
</p><p>
This procedures allows the brightness and contrast of the specified
drawable to be modified. Both 'brightness' and 'contrast' parameters
are defined between -127 and 127.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>brightness</tt></i><EFBFBD>:</span></td><td> Brightness adjustment.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>contrast</tt></i><EFBFBD>:</span></td><td> Contrast adjustment.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2590855"></a><h3><a name="gimp-levels"></a>gimp_levels ()</h3><a class="indexterm" name="id2590864"></a><pre class="programlisting">gboolean gimp_levels (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpHistogramChannel">GimpHistogramChannel</a> channel,
gint low_input,
gint high_input,
gdouble gamma,
gint low_output,
gint high_output);</pre><p>
Modifies intensity levels in the specified drawable.
</p><p>
This tool allows intensity levels in the specified drawable to be
remapped according to a set of parameters. The low/high input levels
specify an initial mapping from the source intensities. The gamma
value determines how intensities between the low and high input
intensities are interpolated. A gamma value of 1.0 results in a
linear interpolation. Higher gamma values result in more high-level
intensities. Lower gamma values result in more low-level
intensities. The low/high output levels constrain the final
intensity mapping--that is, no final intensity will be lower than
the low output level and no final intensity will be higher than the
high output level. This tool is only valid on RGB color and
grayscale images. It will not operate on indexed drawables.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>channel</tt></i><EFBFBD>:</span></td><td> The channel to modify.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>low_input</tt></i><EFBFBD>:</span></td><td> Intensity of lowest input.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>high_input</tt></i><EFBFBD>:</span></td><td> Intensity of highest input.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>gamma</tt></i><EFBFBD>:</span></td><td> Gamma correction factor.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>low_output</tt></i><EFBFBD>:</span></td><td> Intensity of lowest output.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>high_output</tt></i><EFBFBD>:</span></td><td> Intensity of highest output.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2590987"></a><h3><a name="gimp-levels-auto"></a>gimp_levels_auto ()</h3><a class="indexterm" name="id2590994"></a><pre class="programlisting">gboolean gimp_levels_auto (gint32 drawable_ID);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_levels_auto</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpcolor.html#gimp-levels-stretch"><tt class="function">gimp_levels_stretch()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2591052"></a><h3><a name="gimp-levels-stretch"></a>gimp_levels_stretch ()</h3><a class="indexterm" name="id2591059"></a><pre class="programlisting">gboolean gimp_levels_stretch (gint32 drawable_ID);</pre><p>
Automatically modifies intensity levels in the specified drawable.
</p><p>
This procedure allows intensity levels in the specified drawable to
be remapped according to a set of guessed parameters. It is
equivalent to clicking the \"Auto\" button in the Levels tool. This
procedure is only valid on RGB color and grayscale images. It will
not operate on indexed drawables.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2597728"></a><h3><a name="gimp-posterize"></a>gimp_posterize ()</h3><a class="indexterm" name="id2597736"></a><pre class="programlisting">gboolean gimp_posterize (gint32 drawable_ID,
gint levels);</pre><p>
Posterize the specified drawable.
</p><p>
This procedures reduces the number of shades allows in each
intensity channel to the specified 'levels' parameter.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>levels</tt></i><EFBFBD>:</span></td><td> Levels of posterization.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2597800"></a><h3><a name="gimp-desaturate"></a>gimp_desaturate ()</h3><a class="indexterm" name="id2597808"></a><pre class="programlisting">gboolean gimp_desaturate (gint32 drawable_ID);</pre><p>
Desaturate the contents of the specified drawable.
</p><p>
This procedure desaturates the contents of the specified drawable.
This procedure only works on drawables of type RGB color.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2597858"></a><h3><a name="gimp-equalize"></a>gimp_equalize ()</h3><a class="indexterm" name="id2597866"></a><pre class="programlisting">gboolean gimp_equalize (gint32 drawable_ID,
gboolean mask_only);</pre><p>
Equalize the contents of the specified drawable.
</p><p>
This procedure equalizes the contents of the specified drawable.
Each intensity channel is equalizeed independently. The equalized
intensity is given as inten' = (255 - inten). Indexed color
drawables are not valid for this operation. The 'mask_only' option
specifies whether to adjust only the area of the image within the
selection bounds, or the entire image based on the histogram of the
selected area. If there is no selection, the entire image is
adjusted based on the histogram for the entire image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mask_only</tt></i><EFBFBD>:</span></td><td> Equalization option.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2597938"></a><h3><a name="gimp-invert"></a>gimp_invert ()</h3><a class="indexterm" name="id2597946"></a><pre class="programlisting">gboolean gimp_invert (gint32 drawable_ID);</pre><p>
Invert the contents of the specified drawable.
</p><p>
This procedure inverts the contents of the specified drawable. Each
intensity channel is inverted independently. The inverted intensity
is given as inten' = (255 - inten). Indexed color drawables are not
valid for this operation.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2598001"></a><h3><a name="gimp-curves-spline"></a>gimp_curves_spline ()</h3><a class="indexterm" name="id2598010"></a><pre class="programlisting">gboolean gimp_curves_spline (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpHistogramChannel">GimpHistogramChannel</a> channel,
gint num_points,
const guint8 *control_pts);</pre><p>
Modifies the intensity curve(s) for specified drawable.
</p><p>
Modifies the intensity mapping for one channel in the specified
drawable. The drawable must be either grayscale or RGB, and the
channel can be either an intensity component, or the value. The
'control_pts' parameter is an array of integers which define a set
of control points which describe a Catmull Rom spline which yields
the final intensity curve. Use the 'gimp_curves_explicit' function
to explicitly modify intensity levels.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>channel</tt></i><EFBFBD>:</span></td><td> The channel to modify.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_points</tt></i><EFBFBD>:</span></td><td> The number of values in the control point array.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>control_pts</tt></i><EFBFBD>:</span></td><td> The spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2598121"></a><h3><a name="gimp-curves-explicit"></a>gimp_curves_explicit ()</h3><a class="indexterm" name="id2598129"></a><pre class="programlisting">gboolean gimp_curves_explicit (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpHistogramChannel">GimpHistogramChannel</a> channel,
gint num_bytes,
const guint8 *curve);</pre><p>
Modifies the intensity curve(s) for specified drawable.
</p><p>
Modifies the intensity mapping for one channel in the specified
drawable. The drawable must be either grayscale or RGB, and the
channel can be either an intensity component, or the value. The
'curve' parameter is an array of bytes which explicitly defines how
each pixel value in the drawable will be modified. Use the
'gimp_curves_spline' function to modify intensity levels with
Catmull Rom splines.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>channel</tt></i><EFBFBD>:</span></td><td> The channel to modify.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_bytes</tt></i><EFBFBD>:</span></td><td> The number of bytes in the new curve (always 256).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>curve</tt></i><EFBFBD>:</span></td><td> The explicit curve.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2598239"></a><h3><a name="gimp-color-balance"></a>gimp_color_balance ()</h3><a class="indexterm" name="id2598247"></a><pre class="programlisting">gboolean gimp_color_balance (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpTransferMode">GimpTransferMode</a> transfer_mode,
gboolean preserve_lum,
gdouble cyan_red,
gdouble magenta_green,
gdouble yellow_blue);</pre><p>
Modify the color balance of the specified drawable.
</p><p>
Modify the color balance of the specified drawable. There are three
axis which can be modified: cyan-red, magenta-green, and
yellow-blue. Negative values increase the amount of the former,
positive values increase the amount of the latter. Color balance can
be controlled with the 'transfer_mode' setting, which allows
shadows, midtones, and highlights in an image to be affected
differently. The 'preserve_lum' parameter, if non-zero, ensures that
the luminosity of each pixel remains fixed.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>transfer_mode</tt></i><EFBFBD>:</span></td><td> Transfer mode.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>preserve_lum</tt></i><EFBFBD>:</span></td><td> Preserve luminosity values at each pixel.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>cyan_red</tt></i><EFBFBD>:</span></td><td> Cyan-Red color balance.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>magenta_green</tt></i><EFBFBD>:</span></td><td> Magenta-Green color balance.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>yellow_blue</tt></i><EFBFBD>:</span></td><td> Yellow-Blue color balance.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2598391"></a><h3><a name="gimp-colorize"></a>gimp_colorize ()</h3><a class="indexterm" name="id2598400"></a><pre class="programlisting">gboolean gimp_colorize (gint32 drawable_ID,
gdouble hue,
gdouble saturation,
gdouble lightness);</pre><p>
Render the drawable as a grayscale image seen through a colored
glass.
</p><p>
Desatures the drawable, then tints it with the specified color. This
tool is only valid on RGB color images. It will not operate on
grayscale or indexed drawables.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>hue</tt></i><EFBFBD>:</span></td><td> Hue in degrees.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>saturation</tt></i><EFBFBD>:</span></td><td> Saturation in percent.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>lightness</tt></i><EFBFBD>:</span></td><td> Lightness in percent.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2598509"></a><h3><a name="gimp-histogram"></a>gimp_histogram ()</h3><a class="indexterm" name="id2598517"></a><pre class="programlisting">gboolean gimp_histogram (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpHistogramChannel">GimpHistogramChannel</a> channel,
gint start_range,
gint end_range,
gdouble *mean,
gdouble *std_dev,
gdouble *median,
gdouble *pixels,
gdouble *count,
gdouble *percentile);</pre><p>
Returns information on the intensity histogram for the specified
drawable.
</p><p>
This tool makes it possible to gather information about the
intensity histogram of a drawable. A channel to examine is first
specified. This can be either value, red, green, or blue, depending
on whether the drawable is of type color or grayscale. The drawable
may not be indexed. Second, a range of intensities are specified.
The gimp_histogram function returns statistics based on the pixels
in the drawable that fall under this range of values. Mean, standard
deviation, median, number of pixels, and percentile are all
returned. Additionally, the total count of pixels in the image is
returned. Counts of pixels are weighted by any associated alpha
values and by the current selection mask. That is, pixels that lie
outside an active selection mask will not be counted. Similarly,
pixels with transparent alpha values will not be counted.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>channel</tt></i><EFBFBD>:</span></td><td> The channel to modify.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start_range</tt></i><EFBFBD>:</span></td><td> Start of the intensity measurement range.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_range</tt></i><EFBFBD>:</span></td><td> End of the intensity measurement range.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mean</tt></i><EFBFBD>:</span></td><td> Mean intensity value.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>std_dev</tt></i><EFBFBD>:</span></td><td> Standard deviation of intensity values.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>median</tt></i><EFBFBD>:</span></td><td> Median intensity value.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pixels</tt></i><EFBFBD>:</span></td><td> Alpha-weighted pixel count for entire image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>count</tt></i><EFBFBD>:</span></td><td> Alpha-weighted pixel count for range.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>percentile</tt></i><EFBFBD>:</span></td><td> Percentile that range falls under.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2598736"></a><h3><a name="gimp-hue-saturation"></a>gimp_hue_saturation ()</h3><a class="indexterm" name="id2598744"></a><pre class="programlisting">gboolean gimp_hue_saturation (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpHueRange">GimpHueRange</a> hue_range,
gdouble hue_offset,
gdouble lightness,
gdouble saturation);</pre><p>
Modify hue, lightness, and saturation in the specified drawable.
</p><p>
This procedures allows the hue, lightness, and saturation in the
specified drawable to be modified. The 'hue_range' parameter
provides the capability to limit range of affected hues.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>hue_range</tt></i><EFBFBD>:</span></td><td> Range of affected hues.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>hue_offset</tt></i><EFBFBD>:</span></td><td> Hue offset in degrees.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>lightness</tt></i><EFBFBD>:</span></td><td> lightness modification.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>saturation</tt></i><EFBFBD>:</span></td><td> saturation modification.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2598866"></a><h3><a name="gimp-threshold"></a>gimp_threshold ()</h3><a class="indexterm" name="id2598874"></a><pre class="programlisting">gboolean gimp_threshold (gint32 drawable_ID,
gint low_threshold,
gint high_threshold);</pre><p>
Threshold the specified drawable.
</p><p>
This procedures generates a threshold map of the specified drawable.
All pixels between the values of 'low_threshold' and
'high_threshold' are replaced with white, and all other pixels with
black.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>low_threshold</tt></i><EFBFBD>:</span></td><td> The low threshold value.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>high_threshold</tt></i><EFBFBD>:</span></td><td> The high threshold value.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpchannel.html"><b>&lt;&lt;<EFBFBD>gimpchannel</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpconvert.html"><b>gimpconvert<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,281 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpcontext</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="prev" href="libgimp-gimp.html" title="gimp"><link rel="next" href="libgimp-gimpgimprc.html" title="gimpgimprc"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimp.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpgimprc.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpcontext"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpcontext</span></h2><p>gimpcontext &#8212; Functions to manipulate a plug-in's context.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimpcontext.html#gimp-context-push">gimp_context_push</a> (void);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-pop">gimp_context_pop</a> (void);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-get-foreground">gimp_context_get_foreground</a> (<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *foreground);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-set-foreground">gimp_context_set_foreground</a> (const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *foreground);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-get-background">gimp_context_get_background</a> (<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *background);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-set-background">gimp_context_set_background</a> (const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *background);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-set-default-colors">gimp_context_set_default_colors</a> (void);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-swap-colors">gimp_context_swap_colors</a> (void);
gdouble <a href="libgimp-gimpcontext.html#gimp-context-get-opacity">gimp_context_get_opacity</a> (void);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-set-opacity">gimp_context_set_opacity</a> (gdouble opacity);
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> <a href="libgimp-gimpcontext.html#gimp-context-get-paint-mode">gimp_context_get_paint_mode</a>
(void);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-set-paint-mode">gimp_context_set_paint_mode</a> (<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);
gchar* <a href="libgimp-gimpcontext.html#gimp-context-get-brush">gimp_context_get_brush</a> (void);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-set-brush">gimp_context_set_brush</a> (const gchar *name);
gchar* <a href="libgimp-gimpcontext.html#gimp-context-get-pattern">gimp_context_get_pattern</a> (void);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-set-pattern">gimp_context_set_pattern</a> (const gchar *name);
gchar* <a href="libgimp-gimpcontext.html#gimp-context-get-gradient">gimp_context_get_gradient</a> (void);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-set-gradient">gimp_context_set_gradient</a> (const gchar *name);
gchar* <a href="libgimp-gimpcontext.html#gimp-context-get-palette">gimp_context_get_palette</a> (void);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-set-palette">gimp_context_set_palette</a> (const gchar *name);
gchar* <a href="libgimp-gimpcontext.html#gimp-context-get-font">gimp_context_get_font</a> (void);
gboolean <a href="libgimp-gimpcontext.html#gimp-context-set-font">gimp_context_set_font</a> (const gchar *name);
</pre></div><div class="refsect1" lang="en"><a name="id2578552"></a><h2>Description</h2><p>
Functions to manipulate a plug-in's context.
</p></div><div class="refsect1" lang="en"><a name="id2543441"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2543446"></a><h3><a name="gimp-context-push"></a>gimp_context_push ()</h3><a class="indexterm" name="id2543454"></a><pre class="programlisting">gboolean gimp_context_push (void);</pre><p>
Pushes a context to the top of the plug-in's context stack.
</p><p>
This procedure creates a new context by copying the current context.
This copy becomes the new current context for the calling plug-in
until it is popped again.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2543496"></a><h3><a name="gimp-context-pop"></a>gimp_context_pop ()</h3><a class="indexterm" name="id2543505"></a><pre class="programlisting">gboolean gimp_context_pop (void);</pre><p>
Pops the topmost context from the plug-in's context stack.
</p><p>
This procedure creates a new context and makes it the current
context for the calling plug-in.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2543546"></a><h3><a name="gimp-context-get-foreground"></a>gimp_context_get_foreground ()</h3><a class="indexterm" name="id2543554"></a><pre class="programlisting">gboolean gimp_context_get_foreground (<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *foreground);</pre><p>
Get the current GIMP foreground color.
</p><p>
This procedure returns the current GIMP foreground color. The
foreground color is used in a variety of tools such as paint tools,
blending, and bucket fill.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>foreground</tt></i><EFBFBD>:</span></td><td> The foreground color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2543611"></a><h3><a name="gimp-context-set-foreground"></a>gimp_context_set_foreground ()</h3><a class="indexterm" name="id2543619"></a><pre class="programlisting">gboolean gimp_context_set_foreground (const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *foreground);</pre><p>
Set the current GIMP foreground color.
</p><p>
This procedure sets the current GIMP foreground color. After this is
set, operations which use foreground such as paint tools, blending,
and bucket fill will use the new value.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>foreground</tt></i><EFBFBD>:</span></td><td> The foreground color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2543677"></a><h3><a name="gimp-context-get-background"></a>gimp_context_get_background ()</h3><a class="indexterm" name="id2543686"></a><pre class="programlisting">gboolean gimp_context_get_background (<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *background);</pre><p>
Get the current GIMP background color.
</p><p>
This procedure returns the current GIMP background color. The
background color is used in a variety of tools such as blending,
erasing (with non-alpha images), and image filling.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>background</tt></i><EFBFBD>:</span></td><td> The background color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2570472"></a><h3><a name="gimp-context-set-background"></a>gimp_context_set_background ()</h3><a class="indexterm" name="id2570481"></a><pre class="programlisting">gboolean gimp_context_set_background (const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *background);</pre><p>
Set the current GIMP background color.
</p><p>
This procedure sets the current GIMP background color. After this is
set, operations which use background such as blending, filling
images, clearing, and erasing (in non-alpha images) will use the new
value.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>background</tt></i><EFBFBD>:</span></td><td> The background color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2570540"></a><h3><a name="gimp-context-set-default-colors"></a>gimp_context_set_default_colors ()</h3><a class="indexterm" name="id2570551"></a><pre class="programlisting">gboolean gimp_context_set_default_colors (void);</pre><p>
Set the current GIMP foreground and background colors to black and
white.
</p><p>
This procedure sets the current GIMP foreground and background
colors to their initial default values, black and white.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2570594"></a><h3><a name="gimp-context-swap-colors"></a>gimp_context_swap_colors ()</h3><a class="indexterm" name="id2570602"></a><pre class="programlisting">gboolean gimp_context_swap_colors (void);</pre><p>
Swap the current GIMP foreground and background colors.
</p><p>
This procedure swaps the current GIMP foreground and background
colors, so that the new foreground color becomes the old background
color and vice versa.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2570645"></a><h3><a name="gimp-context-get-opacity"></a>gimp_context_get_opacity ()</h3><a class="indexterm" name="id2570653"></a><pre class="programlisting">gdouble gimp_context_get_opacity (void);</pre><p>
Get the opacity.
</p><p>
This procedure returns the opacity setting. The return value is a
floating point number between 0 and 100.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The opacity.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2570694"></a><h3><a name="gimp-context-set-opacity"></a>gimp_context_set_opacity ()</h3><a class="indexterm" name="id2585463"></a><pre class="programlisting">gboolean gimp_context_set_opacity (gdouble opacity);</pre><p>
Set the opacity.
</p><p>
This procedure modifies the opacity setting. The value should be a
floating point number between 0 and 100.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The opacity.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2585520"></a><h3><a name="gimp-context-get-paint-mode"></a>gimp_context_get_paint_mode ()</h3><a class="indexterm" name="id2585528"></a><pre class="programlisting"><a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> gimp_context_get_paint_mode
(void);</pre><p>
Get the paint mode.
</p><p>
This procedure returns the paint-mode setting. The return value is
an integer which corresponds to the values listed in the argument
description.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The paint mode.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2585570"></a><h3><a name="gimp-context-set-paint-mode"></a>gimp_context_set_paint_mode ()</h3><a class="indexterm" name="id2585579"></a><pre class="programlisting">gboolean gimp_context_set_paint_mode (<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode);</pre><p>
Set the paint mode.
</p><p>
This procedure modifies the paint_mode setting.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>paint_mode</tt></i><EFBFBD>:</span></td><td> The paint mode.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2585635"></a><h3><a name="gimp-context-get-brush"></a>gimp_context_get_brush ()</h3><a class="indexterm" name="id2585643"></a><pre class="programlisting">gchar* gimp_context_get_brush (void);</pre><p>
Retrieve the currently active brush.
</p><p>
This procedure returns the nme of the currently active brush. All
paint operations and stroke operations use this brush to control the
application of paint to the image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The name of the active brush.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2585687"></a><h3><a name="gimp-context-set-brush"></a>gimp_context_set_brush ()</h3><a class="indexterm" name="id2585695"></a><pre class="programlisting">gboolean gimp_context_set_brush (const gchar *name);</pre><p>
Set the specified brush as the active brush.
</p><p>
This procedure allows the active brush to be set by specifying its
name. The name is simply a string which corresponds to one of the
names of the installed brushes. If there is no matching brush found,
this procedure will return an error. Otherwise, the specified brush
becomes active and will be used in all subsequent paint operations.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name o the brush.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2585756"></a><h3><a name="gimp-context-get-pattern"></a>gimp_context_get_pattern ()</h3><a class="indexterm" name="id2585765"></a><pre class="programlisting">gchar* gimp_context_get_pattern (void);</pre><p>
Retrieve the currently active pattern.
</p><p>
This procedure returns name of the the currently active pattern. All
clone and bucket-fill operations with patterns will use this pattern
to control the application of paint to the image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The name of the active pattern.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2585809"></a><h3><a name="gimp-context-set-pattern"></a>gimp_context_set_pattern ()</h3><a class="indexterm" name="id2585817"></a><pre class="programlisting">gboolean gimp_context_set_pattern (const gchar *name);</pre><p>
Set the specified pattern as the active pattern.
</p><p>
This procedure allows the active pattern to be set by specifying its
name. The name is simply a string which corresponds to one of the
names of the installed patterns. If there is no matching pattern
found, this procedure will return an error. Otherwise, the specified
pattern becomes active and will be used in all subsequent paint
operations.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the pattern.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2585878"></a><h3><a name="gimp-context-get-gradient"></a>gimp_context_get_gradient ()</h3><a class="indexterm" name="id2585888"></a><pre class="programlisting">gchar* gimp_context_get_gradient (void);</pre><p>
Retrieve the currently active gradient.
</p><p>
This procedure returns the name of the currently active gradient.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The name of the active gradient.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2585929"></a><h3><a name="gimp-context-set-gradient"></a>gimp_context_set_gradient ()</h3><a class="indexterm" name="id2585938"></a><pre class="programlisting">gboolean gimp_context_set_gradient (const gchar *name);</pre><p>
Sets the specified gradient as the active gradient.
</p><p>
This procedure lets you set the specified gradient as the active or
\"current\" one. The name is simply a string which corresponds to
one of the loaded gradients. If no matching gradient is found, this
procedure will return an error. Otherwise, the specified gradient
will become active and will be used for subsequent custom gradient
operations.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the gradient.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2586000"></a><h3><a name="gimp-context-get-palette"></a>gimp_context_get_palette ()</h3><a class="indexterm" name="id2586008"></a><pre class="programlisting">gchar* gimp_context_get_palette (void);</pre><p>
Retrieve the currently active palette.
</p><p>
This procedure returns the name of the the currently active palette.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The name of the active palette.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2586050"></a><h3><a name="gimp-context-set-palette"></a>gimp_context_set_palette ()</h3><a class="indexterm" name="id2586058"></a><pre class="programlisting">gboolean gimp_context_set_palette (const gchar *name);</pre><p>
Set the specified palette as the active palette.
</p><p>
This procedure allows the active palette to be set by specifying its
name. The name is simply a string which corresponds to one of the
names of the installed palettes. If no matching palette is found,
this procedure will return an error. Otherwise, the specified
palette becomes active and will be used in all subsequent palette
operations.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the palette.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2586120"></a><h3><a name="gimp-context-get-font"></a>gimp_context_get_font ()</h3><a class="indexterm" name="id2586128"></a><pre class="programlisting">gchar* gimp_context_get_font (void);</pre><p>
Retrieve the currently active font.
</p><p>
This procedure returns the name of the currently active font.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The name of the active font.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2586170"></a><h3><a name="gimp-context-set-font"></a>gimp_context_set_font ()</h3><a class="indexterm" name="id2586178"></a><pre class="programlisting">gboolean gimp_context_set_font (const gchar *name);</pre><p>
Set the specified font as the active font.
</p><p>
This procedure allows the active font to be set by specifying its
name. The name is simply a string which corresponds to one of the
names of the installed fonts. If no matching font is found, this
procedure will return an error. Otherwise, the specified font
becomes active and will be used in all subsequent font operations.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the font.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimp.html"><b>&lt;&lt;<EFBFBD>gimp</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpgimprc.html"><b>gimpgimprc<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,67 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpconvert</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpcolor.html" title="gimpcolor"><link rel="next" href="libgimp-gimpdisplay.html" title="gimpdisplay"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpcolor.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpdisplay.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpconvert"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpconvert</span></h2><p>gimpconvert &#8212; Conversions between RGB, indexed, and grayscale modes.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimpconvert.html#gimp-image-convert-rgb">gimp_image_convert_rgb</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpconvert.html#gimp-image-convert-grayscale">gimp_image_convert_grayscale</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpconvert.html#gimp-image-convert-indexed">gimp_image_convert_indexed</a> (gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpConvertDitherType">GimpConvertDitherType</a> dither_type,
<a href="libgimp-gimpenums.html#GimpConvertPaletteType">GimpConvertPaletteType</a> palette_type,
gint num_cols,
gboolean alpha_dither,
gboolean remove_unused,
const gchar *palette);
</pre></div><div class="refsect1" lang="en"><a name="id2590279"></a><h2>Description</h2><p>
Conversions between RGB, indexed, and grayscale modes.
</p></div><div class="refsect1" lang="en"><a name="id2590290"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2590295"></a><h3><a name="gimp-image-convert-rgb"></a>gimp_image_convert_rgb ()</h3><a class="indexterm" name="id2590303"></a><pre class="programlisting">gboolean gimp_image_convert_rgb (gint32 image_ID);</pre><p>
Convert specified image to RGB color
</p><p>
This procedure converts the specified image to RGB color. This
process requires an image of type GIMP_GRAY or GIMP_INDEXED. No
image content is lost in this process aside from the colormap for an
indexed image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2594814"></a><h3><a name="gimp-image-convert-grayscale"></a>gimp_image_convert_grayscale ()</h3><a class="indexterm" name="id2594823"></a><pre class="programlisting">gboolean gimp_image_convert_grayscale (gint32 image_ID);</pre><p>
Convert specified image to grayscale (256 intensity levels)
</p><p>
This procedure converts the specified image to grayscale with 8 bits
per pixel (256 intensity levels). This process requires an image of
type GIMP_RGB or GIMP_INDEXED.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2594877"></a><h3><a name="gimp-image-convert-indexed"></a>gimp_image_convert_indexed ()</h3><a class="indexterm" name="id2594886"></a><pre class="programlisting">gboolean gimp_image_convert_indexed (gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpConvertDitherType">GimpConvertDitherType</a> dither_type,
<a href="libgimp-gimpenums.html#GimpConvertPaletteType">GimpConvertPaletteType</a> palette_type,
gint num_cols,
gboolean alpha_dither,
gboolean remove_unused,
const gchar *palette);</pre><p>
Convert specified image to and Indexed image
</p><p>
This procedure converts the specified image to 'indexed' color. This
process requires an image of type GIMP_GRAY or GIMP_RGB. The
'palette_type' specifies what kind of palette to use, A type of '0'
means to use an optimal palette of 'num_cols' generated from the
colors in the image. A type of '1' means to re-use the previous
palette (not currently implemented). A type of '2' means to use the
so-called WWW-optimized palette. Type '3' means to use only black
and white colors. A type of '4' means to use a palette from the gimp
palettes directories. The 'dither type' specifies what kind of
dithering to use. '0' means no dithering, '1' means standard
Floyd-Steinberg error diffusion, '2' means Floyd-Steinberg error
diffusion with reduced bleeding, '3' means dithering based on pixel
location ('Fixed' dithering).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dither_type</tt></i><EFBFBD>:</span></td><td> The dither type to use.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>palette_type</tt></i><EFBFBD>:</span></td><td> The type of palette to use.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_cols</tt></i><EFBFBD>:</span></td><td> The number of colors to quantize to, ignored unless (palette_type == GIMP_MAKE_PALETTE).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>alpha_dither</tt></i><EFBFBD>:</span></td><td> Dither transparency to fake partial opacity.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>remove_unused</tt></i><EFBFBD>:</span></td><td> Remove unused or duplicate colour entries from final palette, ignored if (palette_type == GIMP_MAKE_PALETTE).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>palette</tt></i><EFBFBD>:</span></td><td> The name of the custom palette to use, ignored unless (palette_type == GIMP_CUSTOM_PALETTE).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpcolor.html"><b>&lt;&lt;<EFBFBD>gimpcolor</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpdisplay.html"><b>gimpdisplay<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,54 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpdisplay</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpconvert.html" title="gimpconvert"><link rel="next" href="libgimp-gimpdrawable.html" title="gimpdrawable"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpconvert.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpdrawable.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpdisplay"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpdisplay</span></h2><p>gimpdisplay &#8212; Functions to create, delete and flush new displays (views) on an image.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gint32 <a href="libgimp-gimpdisplay.html#gimp-display-new">gimp_display_new</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpdisplay.html#gimp-display-delete">gimp_display_delete</a> (gint32 display_ID);
gboolean <a href="libgimp-gimpdisplay.html#gimp-displays-flush">gimp_displays_flush</a> (void);
gboolean <a href="libgimp-gimpdisplay.html#gimp-displays-reconnect">gimp_displays_reconnect</a> (gint32 old_image_ID,
gint32 new_image_ID);
</pre></div><div class="refsect1" lang="en"><a name="id2597172"></a><h2>Description</h2><p>
Functions to create, delete and flush new displays (views) on an image.
</p></div><div class="refsect1" lang="en"><a name="id2597183"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2597188"></a><h3><a name="gimp-display-new"></a>gimp_display_new ()</h3><a class="indexterm" name="id2597196"></a><pre class="programlisting">gint32 gimp_display_new (gint32 image_ID);</pre><p>
Create a new display for the specified image.
</p><p>
Creates a new display for the specified image. If the image already
has a display, another is added. Multiple displays are handled
transparently by the GIMP. The newly created display is returned and
can be subsequently destroyed with a call to 'gimp-display-delete'.
This procedure only makes sense for use with the GIMP UI.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The new display.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2597253"></a><h3><a name="gimp-display-delete"></a>gimp_display_delete ()</h3><a class="indexterm" name="id2597261"></a><pre class="programlisting">gboolean gimp_display_delete (gint32 display_ID);</pre><p>
Delete the specified display.
</p><p>
This procedure removes the specified display. If this is the last
remaining display for the underlying image, then the image is
deleted also.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>display_ID</tt></i><EFBFBD>:</span></td><td> The display to delete.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2593908"></a><h3><a name="gimp-displays-flush"></a>gimp_displays_flush ()</h3><a class="indexterm" name="id2593916"></a><pre class="programlisting">gboolean gimp_displays_flush (void);</pre><p>
Flush all internal changes to the user interface
</p><p>
This procedure takes no arguments and returns nothing except a
success status. Its purpose is to flush all pending updates of image
manipulations to the user interface. It should be called whenever
appropriate.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2593955"></a><h3><a name="gimp-displays-reconnect"></a>gimp_displays_reconnect ()</h3><a class="indexterm" name="id2593963"></a><pre class="programlisting">gboolean gimp_displays_reconnect (gint32 old_image_ID,
gint32 new_image_ID);</pre><p>
Reconnect displays from one image to another image.
</p><p>
This procedure connects all displays of the old_image to the
new_image. If the old_image has no display or new_image already has
a display the reconnect is not performed and the procedure returns
without success. You should rarely need to use this function.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>old_image_ID</tt></i><EFBFBD>:</span></td><td> The old image (must have at least one display).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_image_ID</tt></i><EFBFBD>:</span></td><td> The new image (must not have a display).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpconvert.html"><b>&lt;&lt;<EFBFBD>gimpconvert</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpdrawable.html"><b>gimpdrawable<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,669 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpdrawable</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpdisplay.html" title="gimpdisplay"><link rel="next" href="libgimp-gimpdrawabletransform.html" title="gimpdrawabletransform"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpdisplay.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpdrawabletransform.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpdrawable"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpdrawable</span></h2><p>gimpdrawable &#8212; Functions to manipulate drawables.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a>;
<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a>* <a href="libgimp-gimpdrawable.html#gimp-drawable-get">gimp_drawable_get</a> (gint32 drawable_ID);
void <a href="libgimp-gimpdrawable.html#gimp-drawable-detach">gimp_drawable_detach</a> (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable);
void <a href="libgimp-gimpdrawable.html#gimp-drawable-flush">gimp_drawable_flush</a> (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-delete">gimp_drawable_delete</a> (gint32 drawable_ID);
gchar* <a href="libgimp-gimpdrawable.html#gimp-drawable-get-name">gimp_drawable_get_name</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-set-name">gimp_drawable_set_name</a> (gint32 drawable_ID,
const gchar *name);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-get-visible">gimp_drawable_get_visible</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-set-visible">gimp_drawable_set_visible</a> (gint32 drawable_ID,
gboolean visible);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-get-linked">gimp_drawable_get_linked</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-set-linked">gimp_drawable_set_linked</a> (gint32 drawable_ID,
gboolean linked);
gint <a href="libgimp-gimpdrawable.html#gimp-drawable-get-tattoo">gimp_drawable_get_tattoo</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-set-tattoo">gimp_drawable_set_tattoo</a> (gint32 drawable_ID,
gint tattoo);
guint8* <a href="libgimp-gimpdrawable.html#gimp-drawable-get-pixel">gimp_drawable_get_pixel</a> (gint32 drawable_ID,
gint x_coord,
gint y_coord,
gint *num_channels);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-set-pixel">gimp_drawable_set_pixel</a> (gint32 drawable_ID,
gint x_coord,
gint y_coord,
gint num_channels,
const guint8 *pixel);
<a href="libgimp-gimptile.html#GimpTile">GimpTile</a>* <a href="libgimp-gimpdrawable.html#gimp-drawable-get-tile">gimp_drawable_get_tile</a> (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
gint shadow,
gint row,
gint col);
<a href="libgimp-gimptile.html#GimpTile">GimpTile</a>* <a href="libgimp-gimpdrawable.html#gimp-drawable-get-tile2">gimp_drawable_get_tile2</a> (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
gint shadow,
gint x,
gint y);
guchar* <a href="libgimp-gimpdrawable.html#gimp-drawable-get-thumbnail-data">gimp_drawable_get_thumbnail_data</a>
(gint32 drawable_ID,
gint *width,
gint *height,
gint *bpp);
guchar* <a href="libgimp-gimpdrawable.html#gimp-drawable-get-sub-thumbnail-data">gimp_drawable_get_sub_thumbnail_data</a>
(gint32 drawable_ID,
gint src_x,
gint src_y,
gint src_width,
gint src_height,
gint *dest_width,
gint *dest_height,
gint *bpp);
void <a href="libgimp-gimpdrawable.html#gimp-drawable-get-color-uchar">gimp_drawable_get_color_uchar</a> (gint32 drawable_ID,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
guchar *color_uchar);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-merge-shadow">gimp_drawable_merge_shadow</a> (gint32 drawable_ID,
gboolean undo);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-fill">gimp_drawable_fill</a> (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpFillType">GimpFillType</a> fill_type);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-update">gimp_drawable_update</a> (gint32 drawable_ID,
gint x,
gint y,
gint width,
gint height);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-mask-bounds">gimp_drawable_mask_bounds</a> (gint32 drawable_ID,
gint *x1,
gint *y1,
gint *x2,
gint *y2);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-mask-intersect">gimp_drawable_mask_intersect</a> (gint32 drawable_ID,
gint *x,
gint *y,
gint *width,
gint *height);
gint32 <a href="libgimp-gimpdrawable.html#gimp-drawable-get-image">gimp_drawable_get_image</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-set-image">gimp_drawable_set_image</a> (gint32 drawable_ID,
gint32 image_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-has-alpha">gimp_drawable_has_alpha</a> (gint32 drawable_ID);
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageType"
>GimpImageType</a> <a href="libgimp-gimpdrawable.html#gimp-drawable-type-with-alpha">gimp_drawable_type_with_alpha</a> (gint32 drawable_ID);
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageType"
>GimpImageType</a> <a href="libgimp-gimpdrawable.html#gimp-drawable-type">gimp_drawable_type</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-is-rgb">gimp_drawable_is_rgb</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-is-gray">gimp_drawable_is_gray</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-is-indexed">gimp_drawable_is_indexed</a> (gint32 drawable_ID);
gint <a href="libgimp-gimpdrawable.html#gimp-drawable-bpp">gimp_drawable_bpp</a> (gint32 drawable_ID);
gint <a href="libgimp-gimpdrawable.html#gimp-drawable-width">gimp_drawable_width</a> (gint32 drawable_ID);
gint <a href="libgimp-gimpdrawable.html#gimp-drawable-height">gimp_drawable_height</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-offsets">gimp_drawable_offsets</a> (gint32 drawable_ID,
gint *offset_x,
gint *offset_y);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-is-layer">gimp_drawable_is_layer</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-is-layer-mask">gimp_drawable_is_layer_mask</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-is-channel">gimp_drawable_is_channel</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-offset">gimp_drawable_offset</a> (gint32 drawable_ID,
gboolean wrap_around,
<a href="libgimp-gimpenums.html#GimpOffsetType">GimpOffsetType</a> fill_type,
gint offset_x,
gint offset_y);
<a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a>* <a href="libgimp-gimpdrawable.html#gimp-drawable-parasite-find">gimp_drawable_parasite_find</a> (gint32 drawable_ID,
const gchar *name);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-parasite-list">gimp_drawable_parasite_list</a> (gint32 drawable_ID,
gint *num_parasites,
gchar ***parasites);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-parasite-attach">gimp_drawable_parasite_attach</a> (gint32 drawable_ID,
<a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a> *parasite);
gboolean <a href="libgimp-gimpdrawable.html#gimp-drawable-parasite-detach">gimp_drawable_parasite_detach</a> (gint32 drawable_ID,
const gchar *name);
void <a href="libgimp-gimpdrawable.html#gimp-drawable-attach-new-parasite">gimp_drawable_attach_new_parasite</a>
(gint32 drawable_ID,
const gchar *name,
gint flags,
gint size,
gconstpointer data);
</pre></div><div class="refsect1" lang="en"><a name="id2605239"></a><h2>Description</h2><p>
Functions to manipulate drawables.
</p></div><div class="refsect1" lang="en"><a name="id2605249"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2605254"></a><h3><a name="GimpDrawable"></a>GimpDrawable</h3><a class="indexterm" name="id2605263"></a><pre class="programlisting">typedef struct {
gint32 drawable_id; /* drawable ID */
guint width; /* width of drawble */
guint height; /* height of drawble */
guint bpp; /* bytes per pixel of drawable */
guint ntile_rows; /* # of tile rows */
guint ntile_cols; /* # of tile columns */
GimpTile *tiles; /* the normal tiles */
GimpTile *shadow_tiles; /* the shadow tiles */
} GimpDrawable;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2605280"></a><h3><a name="gimp-drawable-get"></a>gimp_drawable_get ()</h3><a class="indexterm" name="id2605288"></a><pre class="programlisting"><a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a>* gimp_drawable_get (gint32 drawable_ID);</pre><p>
This function creates a <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a> structure for the core
drawable identified by <i class="parameter"><tt>drawable_ID</tt></i>. The returned structure
contains some basic information about the drawable and can also
hold tile data for transfer to and from the core.
</p><p>
Note that the name of this function is somewhat misleading, because
it suggests that it simply returns a handle. This is not the case:
if the function is called multiple times, it creates separate tile
lists each time, which will usually produce undesired results.
</p><p>
When a plug-in has finished working with a drawable, before exiting
it should call <a href="libgimp-gimpdrawable.html#gimp-drawable-detach"><tt class="function">gimp_drawable_detach()</tt></a> to make sure that all tile data is
transferred back to the core.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> the ID of the drawable
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a new <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a> wrapper
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2605374"></a><h3><a name="gimp-drawable-detach"></a>gimp_drawable_detach ()</h3><a class="indexterm" name="id2605383"></a><pre class="programlisting">void gimp_drawable_detach (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable);</pre><p>
This function is called when a plug-in is finished working
with a drawable. It forces all tile data held in the tile
list of the <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a> to be transferred to the core, and
then frees all associated memory. You must not access the
<i class="parameter"><tt>drawable</tt></i> after having called <a href="libgimp-gimpdrawable.html#gimp-drawable-detach"><tt class="function">gimp_drawable_detach()</tt></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable</tt></i><EFBFBD>:</span></td><td> The <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a> to detach from the core
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2605446"></a><h3><a name="gimp-drawable-flush"></a>gimp_drawable_flush ()</h3><a class="indexterm" name="id2605454"></a><pre class="programlisting">void gimp_drawable_flush (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable);</pre><p>
This function causes all tile data in the tile list of <i class="parameter"><tt>drawable</tt></i> to be
transferred to the core. It is usually called in situations where a
plug-in acts on a drawable, and then needs to read the results of its
actions. Data transferred back from the core will not generally be valid
unless <a href="libgimp-gimpdrawable.html#gimp-drawable-flush"><tt class="function">gimp_drawable_flush()</tt></a> has been called beforehand.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable</tt></i><EFBFBD>:</span></td><td> The <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a> whose tile data is to be transferred
to the core.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2605514"></a><h3><a name="gimp-drawable-delete"></a>gimp_drawable_delete ()</h3><a class="indexterm" name="id2605522"></a><pre class="programlisting">gboolean gimp_drawable_delete (gint32 drawable_ID);</pre><p>
Delete a drawable.
</p><p>
This procedure deletes the specified drawable. This must not be done
if the gimage containing this drawable was already deleted or if the
drawable was already removed from the image. The only case in which
this procedure is useful is if you want to get rid of a drawable
which has not yet been added to an image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable to delete.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2605578"></a><h3><a name="gimp-drawable-get-name"></a>gimp_drawable_get_name ()</h3><a class="indexterm" name="id2605587"></a><pre class="programlisting">gchar* gimp_drawable_get_name (gint32 drawable_ID);</pre><p>
Get the name of the specified drawable.
</p><p>
This procedure returns the specified drawable's name.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The drawable name.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2605639"></a><h3><a name="gimp-drawable-set-name"></a>gimp_drawable_set_name ()</h3><a class="indexterm" name="id2605648"></a><pre class="programlisting">gboolean gimp_drawable_set_name (gint32 drawable_ID,
const gchar *name);</pre><p>
Set the name of the specified drawable.
</p><p>
This procedure sets the specified drawable's name.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The new drawable name.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2605717"></a><h3><a name="gimp-drawable-get-visible"></a>gimp_drawable_get_visible ()</h3><a class="indexterm" name="id2605726"></a><pre class="programlisting">gboolean gimp_drawable_get_visible (gint32 drawable_ID);</pre><p>
Get the visibility of the specified drawable.
</p><p>
This procedure returns the specified drawable's visibility.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The drawable visibility.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2605750"></a><h3><a name="gimp-drawable-set-visible"></a>gimp_drawable_set_visible ()</h3><a class="indexterm" name="id2605758"></a><pre class="programlisting">gboolean gimp_drawable_set_visible (gint32 drawable_ID,
gboolean visible);</pre><p>
Set the visibility of the specified drawable.
</p><p>
This procedure sets the specified drawable's visibility.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>visible</tt></i><EFBFBD>:</span></td><td> The new drawable visibility.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2605822"></a><h3><a name="gimp-drawable-get-linked"></a>gimp_drawable_get_linked ()</h3><a class="indexterm" name="id2605829"></a><pre class="programlisting">gboolean gimp_drawable_get_linked (gint32 drawable_ID);</pre><p>
Get the linked state of the specified drawable.
</p><p>
This procedure returns the specified drawable's linked state.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The drawable linked state (for moves).
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2605877"></a><h3><a name="gimp-drawable-set-linked"></a>gimp_drawable_set_linked ()</h3><a class="indexterm" name="id2605885"></a><pre class="programlisting">gboolean gimp_drawable_set_linked (gint32 drawable_ID,
gboolean linked);</pre><p>
Set the linked state of the specified drawable.
</p><p>
This procedure sets the specified drawable's linked state.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>linked</tt></i><EFBFBD>:</span></td><td> The new drawable linked state.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2605949"></a><h3><a name="gimp-drawable-get-tattoo"></a>gimp_drawable_get_tattoo ()</h3><a class="indexterm" name="id2605956"></a><pre class="programlisting">gint gimp_drawable_get_tattoo (gint32 drawable_ID);</pre><p>
Get the tattoo of the specified drawable.
</p><p>
This procedure returns the specified drawable's tattoo. A tattoo is
a unique and permanent identifier attached to a drawable that can be
used to uniquely identify a drawable within an image even between
sessions</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The drawable tattoo.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2606007"></a><h3><a name="gimp-drawable-set-tattoo"></a>gimp_drawable_set_tattoo ()</h3><a class="indexterm" name="id2606015"></a><pre class="programlisting">gboolean gimp_drawable_set_tattoo (gint32 drawable_ID,
gint tattoo);</pre><p>
Set the tattoo of the specified drawable.
</p><p>
This procedure sets the specified drawable's tattoo. A tattoo is a
unique and permanent identifier attached to a drawable that can be
used to uniquely identify a drawable within an image even between
sessions</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>tattoo</tt></i><EFBFBD>:</span></td><td> The new drawable tattoo.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2606085"></a><h3><a name="gimp-drawable-get-pixel"></a>gimp_drawable_get_pixel ()</h3><a class="indexterm" name="id2606094"></a><pre class="programlisting">guint8* gimp_drawable_get_pixel (gint32 drawable_ID,
gint x_coord,
gint y_coord,
gint *num_channels);</pre><p>
Gets the value of the pixel at the specified coordinates.
</p><p>
This procedure gets the pixel value at the specified coordinates.
The 'num_channels' argument must always be equal to the
bytes-per-pixel value for the specified drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x_coord</tt></i><EFBFBD>:</span></td><td> The x coordinate.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y_coord</tt></i><EFBFBD>:</span></td><td> The y coordinate.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_channels</tt></i><EFBFBD>:</span></td><td> The number of channels for the pixel.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The pixel value.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2606198"></a><h3><a name="gimp-drawable-set-pixel"></a>gimp_drawable_set_pixel ()</h3><a class="indexterm" name="id2606207"></a><pre class="programlisting">gboolean gimp_drawable_set_pixel (gint32 drawable_ID,
gint x_coord,
gint y_coord,
gint num_channels,
const guint8 *pixel);</pre><p>
Sets the value of the pixel at the specified coordinates.
</p><p>
This procedure sets the pixel value at the specified coordinates.
The 'num_channels' argument must always be equal to the
bytes-per-pixel value for the spec ified drawable. Note that this
function is not undoable, you should use it only on drawables you
just created yourself.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x_coord</tt></i><EFBFBD>:</span></td><td> The x coordinate.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y_coord</tt></i><EFBFBD>:</span></td><td> The y coordinate.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_channels</tt></i><EFBFBD>:</span></td><td> The number of channels for the pixel.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pixel</tt></i><EFBFBD>:</span></td><td> The pixel value.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2606330"></a><h3><a name="gimp-drawable-get-tile"></a>gimp_drawable_get_tile ()</h3><a class="indexterm" name="id2606339"></a><pre class="programlisting"><a href="libgimp-gimptile.html#GimpTile">GimpTile</a>* gimp_drawable_get_tile (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
gint shadow,
gint row,
gint col);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>shadow</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>row</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>col</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2606433"></a><h3><a name="gimp-drawable-get-tile2"></a>gimp_drawable_get_tile2 ()</h3><a class="indexterm" name="id2606441"></a><pre class="programlisting"><a href="libgimp-gimptile.html#GimpTile">GimpTile</a>* gimp_drawable_get_tile2 (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
gint shadow,
gint x,
gint y);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>shadow</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2606535"></a><h3><a name="gimp-drawable-get-thumbnail-data"></a>gimp_drawable_get_thumbnail_data ()</h3><a class="indexterm" name="id2606544"></a><pre class="programlisting">guchar* gimp_drawable_get_thumbnail_data
(gint32 drawable_ID,
gint *width,
gint *height,
gint *bpp);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>bpp</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2606639"></a><h3><a name="gimp-drawable-get-sub-thumbnail-data"></a>gimp_drawable_get_sub_thumbnail_data ()</h3><a class="indexterm" name="id2606648"></a><pre class="programlisting">guchar* gimp_drawable_get_sub_thumbnail_data
(gint32 drawable_ID,
gint src_x,
gint src_y,
gint src_width,
gint src_height,
gint *dest_width,
gint *dest_height,
gint *bpp);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_x</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_y</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_width</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_height</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_width</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_height</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>bpp</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2606811"></a><h3><a name="gimp-drawable-get-color-uchar"></a>gimp_drawable_get_color_uchar ()</h3><a class="indexterm" name="id2606820"></a><pre class="programlisting">void gimp_drawable_get_color_uchar (gint32 drawable_ID,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
guchar *color_uchar);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color_uchar</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2606887"></a><h3><a name="gimp-drawable-merge-shadow"></a>gimp_drawable_merge_shadow ()</h3><a class="indexterm" name="id2606896"></a><pre class="programlisting">gboolean gimp_drawable_merge_shadow (gint32 drawable_ID,
gboolean undo);</pre><p>
Merge the shadow buffer with the specified drawable.
</p><p>
This procedure combines the contents of the image's shadow buffer
(for temporary processing) with the specified drawable. The \"undo\"
parameter specifies whether to add an undo step for the operation.
Requesting no undo is useful for such applications as 'auto-apply'.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>undo</tt></i><EFBFBD>:</span></td><td> Push merge to undo stack?
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2606968"></a><h3><a name="gimp-drawable-fill"></a>gimp_drawable_fill ()</h3><a class="indexterm" name="id2606977"></a><pre class="programlisting">gboolean gimp_drawable_fill (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpFillType">GimpFillType</a> fill_type);</pre><p>
Fill the drawable with the specified fill mode.
</p><p>
This procedure fills the drawable with the fill mode. If the fill
mode is foreground the current foreground color is used. If the fill
mode is background, the current background color is used. If the
fill type is white, then white is used. Transparent fill only
affects layers with an alpha channel, in which case the alpha
channel is set to transparent. If the drawable has no alpha channel,
it is filled to white. No fill leaves the drawable's contents
undefined. This procedure is unlike the bucket fill tool because it
fills regardless of a selection</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>fill_type</tt></i><EFBFBD>:</span></td><td> The type of fill.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2607054"></a><h3><a name="gimp-drawable-update"></a>gimp_drawable_update ()</h3><a class="indexterm" name="id2607062"></a><pre class="programlisting">gboolean gimp_drawable_update (gint32 drawable_ID,
gint x,
gint y,
gint width,
gint height);</pre><p>
Update the specified region of the drawable.
</p><p>
This procedure updates the specified region of the drawable. The (x,
y) coordinate pair is relative to the drawable's origin, not to the
image origin. Therefore, the entire drawable can be updated using
(0, 0, width, height).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> x coordinate of upper left corner of update region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> y coordinate of upper left corner of update region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> Width of update region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> Height of update region.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2607186"></a><h3><a name="gimp-drawable-mask-bounds"></a>gimp_drawable_mask_bounds ()</h3><a class="indexterm" name="id2607194"></a><pre class="programlisting">gboolean gimp_drawable_mask_bounds (gint32 drawable_ID,
gint *x1,
gint *y1,
gint *x2,
gint *y2);</pre><p>
Find the bounding box of the current selection in relation to the
specified drawable.
</p><p>
This procedure returns whether there is a selection. If there is
one, the upper left and lower righthand corners of its bounding box
are returned. These coordinates are specified relative to the
drawable's origin, and bounded by the drawable's extents. Please
note that the pixel specified by the lower righthand coordinate of
the bounding box is not part of the selection. The selection ends at
the upper left corner of this pixel. This means the width of the
selection can be calculated as (x2 - x1), its height as (y2 - y1).
Note that the returned boolean does NOT correspond with the returned
region being empty or not, it always returns whether the selection
is non_empty. See <a href="libgimp-gimpdrawable.html#gimp-drawable-mask-intersect"><tt class="function">gimp_drawable_mask_intersect()</tt></a> for a boolean
return value which is more useful in most cases.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x1</tt></i><EFBFBD>:</span></td><td> x coordinate of the upper left corner of selection bounds.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y1</tt></i><EFBFBD>:</span></td><td> y coordinate of the upper left corner of selection bounds.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x2</tt></i><EFBFBD>:</span></td><td> x coordinate of the lower right corner of selection bounds.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y2</tt></i><EFBFBD>:</span></td><td> y coordinate of the lower right corner of selection bounds.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE if there is a selection.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2607337"></a><h3><a name="gimp-drawable-mask-intersect"></a>gimp_drawable_mask_intersect ()</h3><a class="indexterm" name="id2607345"></a><pre class="programlisting">gboolean gimp_drawable_mask_intersect (gint32 drawable_ID,
gint *x,
gint *y,
gint *width,
gint *height);</pre><p>
Find the bounding box of the current selection in relation to the
specified drawable.
</p><p>
This procedure returns whether there is an intersection between the
drawable and the selection. Unlike <a href="libgimp-gimpdrawable.html#gimp-drawable-mask-bounds"><tt class="function">gimp_drawable_mask_bounds()</tt></a>, the
intersection's bounds are returned as x, y, width, height. If there
is no selection this function returns TRUE and the returned bounds
are the extents of the whole drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> x coordinate of the upper left corner of the intersection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> y coordinate of the upper left corner of the intersection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> width of the intersection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> height of the intersection.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE if the returned area is not empty.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2607482"></a><h3><a name="gimp-drawable-get-image"></a>gimp_drawable_get_image ()</h3><a class="indexterm" name="id2607490"></a><pre class="programlisting">gint32 gimp_drawable_get_image (gint32 drawable_ID);</pre><p>
Returns the drawable's image.
</p><p>
This procedure returns the drawable's image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The drawable's image.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2607541"></a><h3><a name="gimp-drawable-set-image"></a>gimp_drawable_set_image ()</h3><a class="indexterm" name="id2607549"></a><pre class="programlisting">gboolean gimp_drawable_set_image (gint32 drawable_ID,
gint32 image_ID);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_drawable_set_image</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated!</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2607622"></a><h3><a name="gimp-drawable-has-alpha"></a>gimp_drawable_has_alpha ()</h3><a class="indexterm" name="id2607631"></a><pre class="programlisting">gboolean gimp_drawable_has_alpha (gint32 drawable_ID);</pre><p>
Returns non-zero if the drawable has an alpha channel.
</p><p>
This procedure returns whether the specified drawable has an alpha
channel. This can only be true for layers, and the associated type
will be one of: { RGBA , GRAYA, INDEXEDA }.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Does the drawable have an alpha channel?
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2607685"></a><h3><a name="gimp-drawable-type-with-alpha"></a>gimp_drawable_type_with_alpha ()</h3><a class="indexterm" name="id2607693"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageType"
>GimpImageType</a> gimp_drawable_type_with_alpha (gint32 drawable_ID);</pre><p>
Returns the drawable's type with alpha.
</p><p>
This procedure returns the drawable's type as if had an alpha
channel. If the type is currently Gray, for instance, the returned
type would be GrayA. If the drawable already has an alpha channel,
the drawable's type is simply returned.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The drawable's type with alpha.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2607747"></a><h3><a name="gimp-drawable-type"></a>gimp_drawable_type ()</h3><a class="indexterm" name="id2607755"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageType"
>GimpImageType</a> gimp_drawable_type (gint32 drawable_ID);</pre><p>
Returns the drawable's type.
</p><p>
This procedure returns the drawable's type.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The drawable's type.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2607806"></a><h3><a name="gimp-drawable-is-rgb"></a>gimp_drawable_is_rgb ()</h3><a class="indexterm" name="id2607814"></a><pre class="programlisting">gboolean gimp_drawable_is_rgb (gint32 drawable_ID);</pre><p>
Returns whether the drawable is an RGB type.
</p><p>
This procedure returns non-zero if the specified drawable is of type
{ RGB, RGBA }.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> non-zero if the drawable is an RGB type.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2607868"></a><h3><a name="gimp-drawable-is-gray"></a>gimp_drawable_is_gray ()</h3><a class="indexterm" name="id2607877"></a><pre class="programlisting">gboolean gimp_drawable_is_gray (gint32 drawable_ID);</pre><p>
Returns whether the drawable is a grayscale type.
</p><p>
This procedure returns non-zero if the specified drawable is of type
{ Gray, GrayA }.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> non-zero if the drawable is a grayscale type.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2607931"></a><h3><a name="gimp-drawable-is-indexed"></a>gimp_drawable_is_indexed ()</h3><a class="indexterm" name="id2607939"></a><pre class="programlisting">gboolean gimp_drawable_is_indexed (gint32 drawable_ID);</pre><p>
Returns whether the drawable is an indexed type.
</p><p>
This procedure returns non-zero if the specified drawable is of type
{ Indexed, IndexedA }.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> non-zero if the drawable is an indexed type.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2607993"></a><h3><a name="gimp-drawable-bpp"></a>gimp_drawable_bpp ()</h3><a class="indexterm" name="id2608002"></a><pre class="programlisting">gint gimp_drawable_bpp (gint32 drawable_ID);</pre><p>
Returns the bytes per pixel.
</p><p>
This procedure returns the number of bytes per pixel (or the number
of channels) for the specified drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Bytes per pixel.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2608055"></a><h3><a name="gimp-drawable-width"></a>gimp_drawable_width ()</h3><a class="indexterm" name="id2608063"></a><pre class="programlisting">gint gimp_drawable_width (gint32 drawable_ID);</pre><p>
Returns the width of the drawable.
</p><p>
This procedure returns the specified drawable's width in pixels.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Width of drawable.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2608119"></a><h3><a name="gimp-drawable-height"></a>gimp_drawable_height ()</h3><a class="indexterm" name="id2608132"></a><pre class="programlisting">gint gimp_drawable_height (gint32 drawable_ID);</pre><p>
Returns the height of the drawable.
</p><p>
This procedure returns the specified drawable's height in pixels.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Height of drawable.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2608197"></a><h3><a name="gimp-drawable-offsets"></a>gimp_drawable_offsets ()</h3><a class="indexterm" name="id2608210"></a><pre class="programlisting">gboolean gimp_drawable_offsets (gint32 drawable_ID,
gint *offset_x,
gint *offset_y);</pre><p>
Returns the offsets for the drawable.
</p><p>
This procedure returns the specified drawable's offsets. This only
makes sense if the drawable is a layer since channels are anchored.
The offsets of a channel will be returned as 0.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offset_x</tt></i><EFBFBD>:</span></td><td> x offset of drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offset_y</tt></i><EFBFBD>:</span></td><td> y offset of drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2608320"></a><h3><a name="gimp-drawable-is-layer"></a>gimp_drawable_is_layer ()</h3><a class="indexterm" name="id2608333"></a><pre class="programlisting">gboolean gimp_drawable_is_layer (gint32 drawable_ID);</pre><p>
Returns whether the drawable is a layer.
</p><p>
This procedure returns non-zero if the specified drawable is a
layer.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Non-zero if the drawable is a layer.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2608399"></a><h3><a name="gimp-drawable-is-layer-mask"></a>gimp_drawable_is_layer_mask ()</h3><a class="indexterm" name="id2608413"></a><pre class="programlisting">gboolean gimp_drawable_is_layer_mask (gint32 drawable_ID);</pre><p>
Returns whether the drawable is a layer mask.
</p><p>
This procedure returns non-zero if the specified drawable is a layer
mask.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Non-zero if the drawable is a layer mask.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2608478"></a><h3><a name="gimp-drawable-is-channel"></a>gimp_drawable_is_channel ()</h3><a class="indexterm" name="id2608491"></a><pre class="programlisting">gboolean gimp_drawable_is_channel (gint32 drawable_ID);</pre><p>
Returns whether the drawable is a channel.
</p><p>
This procedure returns non-zero if the specified drawable is a
channel.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Non-zero if the drawable is a channel.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2608558"></a><h3><a name="gimp-drawable-offset"></a>gimp_drawable_offset ()</h3><a class="indexterm" name="id2608571"></a><pre class="programlisting">gboolean gimp_drawable_offset (gint32 drawable_ID,
gboolean wrap_around,
<a href="libgimp-gimpenums.html#GimpOffsetType">GimpOffsetType</a> fill_type,
gint offset_x,
gint offset_y);</pre><p>
Offset the drawable by the specified amounts in the X and Y
directions
</p><p>
This procedure offsets the specified drawable by the amounts
specified by 'offset_x' and 'offset_y'. If 'wrap_around' is set to
TRUE, then portions of the drawable which are offset out of bounds
are wrapped around. Alternatively, the undefined regions of the
drawable can be filled with transparency or the background color, as
specified by the 'fill_type' parameter.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable to offset.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>wrap_around</tt></i><EFBFBD>:</span></td><td> wrap image around or fill vacated regions.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>fill_type</tt></i><EFBFBD>:</span></td><td> fill vacated regions of drawable with background or transparent.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offset_x</tt></i><EFBFBD>:</span></td><td> offset by this amount in X direction.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offset_y</tt></i><EFBFBD>:</span></td><td> offset by this amount in Y direction.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2608728"></a><h3><a name="gimp-drawable-parasite-find"></a>gimp_drawable_parasite_find ()</h3><a class="indexterm" name="id2608742"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a>* gimp_drawable_parasite_find (gint32 drawable_ID,
const gchar *name);</pre><p>
Finds the named parasite in a drawable
</p><p>
Finds and returns the named parasite that was previously attached to
a drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the parasite to find.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The found parasite.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2608828"></a><h3><a name="gimp-drawable-parasite-list"></a>gimp_drawable_parasite_list ()</h3><a class="indexterm" name="id2608842"></a><pre class="programlisting">gboolean gimp_drawable_parasite_list (gint32 drawable_ID,
gint *num_parasites,
gchar ***parasites);</pre><p>
List all parasites.
</p><p>
Returns a list of all currently attached parasites.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_parasites</tt></i><EFBFBD>:</span></td><td> The number of attached parasites.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>parasites</tt></i><EFBFBD>:</span></td><td> The names of currently attached parasites.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2608950"></a><h3><a name="gimp-drawable-parasite-attach"></a>gimp_drawable_parasite_attach ()</h3><a class="indexterm" name="id2608964"></a><pre class="programlisting">gboolean gimp_drawable_parasite_attach (gint32 drawable_ID,
<a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a> *parasite);</pre><p>
Add a parasite to a drawable.
</p><p>
This procedure attaches a parasite to a drawable. It has no return
values.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>parasite</tt></i><EFBFBD>:</span></td><td> The parasite to attach to a drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2609051"></a><h3><a name="gimp-drawable-parasite-detach"></a>gimp_drawable_parasite_detach ()</h3><a class="indexterm" name="id2609064"></a><pre class="programlisting">gboolean gimp_drawable_parasite_detach (gint32 drawable_ID,
const gchar *name);</pre><p>
Removes a parasite from a drawable.
</p><p>
This procedure detaches a parasite from a drawable. It has no return
values.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the parasite to detach from a drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2609152"></a><h3><a name="gimp-drawable-attach-new-parasite"></a>gimp_drawable_attach_new_parasite ()</h3><a class="indexterm" name="id2609166"></a><pre class="programlisting">void gimp_drawable_attach_new_parasite
(gint32 drawable_ID,
const gchar *name,
gint flags,
gint size,
gconstpointer data);</pre><p>
Convenience function that creates a parasite and attaches it
to the GIMP.
</p><p>
See Also: <a href="libgimp-gimpdrawable.html#gimp-drawable-parasite-attach"><tt class="function">gimp_drawable_parasite_attach()</tt></a></p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> the ID of the <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a> to attach the <a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
><span class="type">GimpParasite</span></a> to.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the name of the <a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
><span class="type">GimpParasite</span></a> to create and attach.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>flags</tt></i><EFBFBD>:</span></td><td> the flags set on the <a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
><span class="type">GimpParasite</span></a>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size</tt></i><EFBFBD>:</span></td><td> the size of the parasite data in bytes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> a pointer to the data attached with the <a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
><span class="type">GimpParasite</span></a>.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpdisplay.html"><b>&lt;&lt;<EFBFBD>gimpdisplay</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpdrawabletransform.html"><b>gimpdrawabletransform<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,81 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpdrawablecombobox</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="GimpDrawablePreview.html" title="GimpDrawablePreview"><link rel="next" href="libgimp-gimpimagecombobox.html" title="gimpimagecombobox"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="GimpDrawablePreview.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpimagecombobox.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpdrawablecombobox"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpdrawablecombobox</span></h2><p>gimpdrawablecombobox &#8212; A widget providing a popup menu of drawables.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean (<a href="libgimp-gimpdrawablecombobox.html#GimpDrawableConstraintFunc">*GimpDrawableConstraintFunc</a>) (gint32 image_id,
gint32 drawable_id,
gpointer data);
GtkWidget* <a href="libgimp-gimpdrawablecombobox.html#gimp-drawable-combo-box-new">gimp_drawable_combo_box_new</a> (<a href="libgimp-gimpdrawablecombobox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a> constraint,
gpointer data);
GtkWidget* <a href="libgimp-gimpdrawablecombobox.html#gimp-channel-combo-box-new">gimp_channel_combo_box_new</a> (<a href="libgimp-gimpdrawablecombobox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a> constraint,
gpointer data);
GtkWidget* <a href="libgimp-gimpdrawablecombobox.html#gimp-layer-combo-box-new">gimp_layer_combo_box_new</a> (<a href="libgimp-gimpdrawablecombobox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a> constraint,
gpointer data);
</pre></div><div class="refsect1" lang="en"><a name="id2666128"></a><h2>Description</h2><p>
A widget providing a popup menu of drawables.
</p></div><div class="refsect1" lang="en"><a name="id2666138"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2666144"></a><h3><a name="GimpDrawableConstraintFunc"></a>GimpDrawableConstraintFunc ()</h3><a class="indexterm" name="id2666152"></a><pre class="programlisting">gboolean (*GimpDrawableConstraintFunc) (gint32 image_id,
gint32 drawable_id,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_id</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>drawable_id</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2666229"></a><h3><a name="gimp-drawable-combo-box-new"></a>gimp_drawable_combo_box_new ()</h3><a class="indexterm" name="id2666238"></a><pre class="programlisting">GtkWidget* gimp_drawable_combo_box_new (<a href="libgimp-gimpdrawablecombobox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a> constraint,
gpointer data);</pre><p>
Creates a new <a
href="../libgimpwidgets/GimpIntComboBox.html"
><span class="type">GimpIntComboBox</span></a> filled with all currently opened
drawables. If a <i class="parameter"><tt>constraint</tt></i> function is specified, it is called for
each drawable and only if the function returns <tt class="literal">TRUE</tt>, the drawable
is added to the combobox.
</p><p>
You should use <a
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-connect"
><tt class="function">gimp_int_combo_box_connect()</tt></a> to initialize and connect
the combo. Use <a
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-set-active"
><tt class="function">gimp_int_combo_box_set_active()</tt></a> to get the active
drawable ID and <a
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-get-active"
><tt class="function">gimp_int_combo_box_get_active()</tt></a> to retrieve the ID
of the selected drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>constraint</tt></i><EFBFBD>:</span></td><td> a <a href="libgimp-gimpdrawablecombobox.html#GimpDrawableConstraintFunc"><span class="type">GimpDrawableConstraintFunc</span></a> or <tt class="literal">NULL</tt>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> a pointer that is passed to <i class="parameter"><tt>constraint</tt></i>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a new <a
href="../libgimpwidgets/GimpIntComboBox.html"
><span class="type">GimpIntComboBox</span></a>.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2670409"></a><h3><a name="gimp-channel-combo-box-new"></a>gimp_channel_combo_box_new ()</h3><a class="indexterm" name="id2670417"></a><pre class="programlisting">GtkWidget* gimp_channel_combo_box_new (<a href="libgimp-gimpdrawablecombobox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a> constraint,
gpointer data);</pre><p>
Creates a new <a
href="../libgimpwidgets/GimpIntComboBox.html"
><span class="type">GimpIntComboBox</span></a> filled with all currently opened
channels. See <tt class="function">gimp_drawable_combo_box()</tt> for more info.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>constraint</tt></i><EFBFBD>:</span></td><td> a <a href="libgimp-gimpdrawablecombobox.html#GimpDrawableConstraintFunc"><span class="type">GimpDrawableConstraintFunc</span></a> or <tt class="literal">NULL</tt>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> a pointer that is passed to <i class="parameter"><tt>constraint</tt></i>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a new <a
href="../libgimpwidgets/GimpIntComboBox.html"
><span class="type">GimpIntComboBox</span></a>.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2670517"></a><h3><a name="gimp-layer-combo-box-new"></a>gimp_layer_combo_box_new ()</h3><a class="indexterm" name="id2670526"></a><pre class="programlisting">GtkWidget* gimp_layer_combo_box_new (<a href="libgimp-gimpdrawablecombobox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a> constraint,
gpointer data);</pre><p>
Creates a new <a
href="../libgimpwidgets/GimpIntComboBox.html"
><span class="type">GimpIntComboBox</span></a> filled with all currently opened
layers. See <tt class="function">gimp_drawable_combo_box()</tt> for more info.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>constraint</tt></i><EFBFBD>:</span></td><td> a <a href="libgimp-gimpdrawablecombobox.html#GimpDrawableConstraintFunc"><span class="type">GimpDrawableConstraintFunc</span></a> or <tt class="literal">NULL</tt>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> a pointer that is passed to <i class="parameter"><tt>constraint</tt></i>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a new <a
href="../libgimpwidgets/GimpIntComboBox.html"
><span class="type">GimpIntComboBox</span></a>.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="GimpDrawablePreview.html"><b>&lt;&lt;<EFBFBD>GimpDrawablePreview</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpimagecombobox.html"><b>gimpimagecombobox<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,684 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpdrawabletransform</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpdrawable.html" title="gimpdrawable"><link rel="next" href="libgimp-gimpedit.html" title="gimpedit"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpdrawable.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpedit.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpdrawabletransform"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpdrawabletransform</span></h2><p>gimpdrawabletransform &#8212; </p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-flip-simple">gimp_drawable_transform_flip_simple</a>
(gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> flip_type,
gboolean auto_center,
gdouble axis,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-flip">gimp_drawable_transform_flip</a> (gint32 drawable_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-flip-default">gimp_drawable_transform_flip_default</a>
(gint32 drawable_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gboolean interpolate,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-perspective">gimp_drawable_transform_perspective</a>
(gint32 drawable_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2,
gdouble x3,
gdouble y3,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-perspective-default">gimp_drawable_transform_perspective_default</a>
(gint32 drawable_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2,
gdouble x3,
gdouble y3,
gboolean interpolate,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-rotate-simple">gimp_drawable_transform_rotate_simple</a>
(gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpRotationType">GimpRotationType</a> rotate_type,
gboolean auto_center,
gint center_x,
gint center_y,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-rotate">gimp_drawable_transform_rotate</a> (gint32 drawable_ID,
gdouble angle,
gboolean auto_center,
gint center_x,
gint center_y,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-rotate-default">gimp_drawable_transform_rotate_default</a>
(gint32 drawable_ID,
gdouble angle,
gboolean auto_center,
gint center_x,
gint center_y,
gboolean interpolate,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-scale">gimp_drawable_transform_scale</a> (gint32 drawable_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-scale-default">gimp_drawable_transform_scale_default</a>
(gint32 drawable_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gboolean interpolate,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-shear">gimp_drawable_transform_shear</a> (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> shear_type,
gdouble magnitude,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-shear-default">gimp_drawable_transform_shear_default</a>
(gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> shear_type,
gdouble magnitude,
gboolean interpolate,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-2d">gimp_drawable_transform_2d</a> (gint32 drawable_ID,
gdouble source_x,
gdouble source_y,
gdouble scale_x,
gdouble scale_y,
gdouble angle,
gdouble dest_x,
gdouble dest_y,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-2d-default">gimp_drawable_transform_2d_default</a>
(gint32 drawable_ID,
gdouble source_x,
gdouble source_y,
gdouble scale_x,
gdouble scale_y,
gdouble angle,
gdouble dest_x,
gdouble dest_y,
gboolean interpolate,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-matrix">gimp_drawable_transform_matrix</a> (gint32 drawable_ID,
gdouble coeff_0_0,
gdouble coeff_0_1,
gdouble coeff_0_2,
gdouble coeff_1_0,
gdouble coeff_1_1,
gdouble coeff_1_2,
gdouble coeff_2_0,
gdouble coeff_2_1,
gdouble coeff_2_2,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);
gint32 <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-matrix-default">gimp_drawable_transform_matrix_default</a>
(gint32 drawable_ID,
gdouble coeff_0_0,
gdouble coeff_0_1,
gdouble coeff_0_2,
gdouble coeff_1_0,
gdouble coeff_1_1,
gdouble coeff_1_2,
gdouble coeff_2_0,
gdouble coeff_2_1,
gdouble coeff_2_2,
gboolean interpolate,
gboolean clip_result);
</pre></div><div class="refsect1" lang="en"><a name="id2611320"></a><h2>Description</h2><p>
</p></div><div class="refsect1" lang="en"><a name="id2611330"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2611335"></a><h3><a name="gimp-drawable-transform-flip-simple"></a>gimp_drawable_transform_flip_simple ()</h3><a class="indexterm" name="id2611347"></a><pre class="programlisting">gint32 gimp_drawable_transform_flip_simple
(gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> flip_type,
gboolean auto_center,
gdouble axis,
gboolean clip_result);</pre><p>
Flip the specified drawable either vertically or horizontally.
</p><p>
This procedure flips the specified drawable if no selection exists.
If a selection exists, the portion of the drawable which lies under
the selection is cut from the drawable and made into a floating
selection which is then flipped. If auto_center is set to true, the
flip is around the selection's center. Otherwise, the coordinate of
the axis needs to be specified. The return value is the ID of the
flipped drawable. If there was no selection, this will be equal to
the drawable ID supplied as input. Otherwise, this will be the newly
created and flipped drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>flip_type</tt></i><EFBFBD>:</span></td><td> Type of flip.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>auto_center</tt></i><EFBFBD>:</span></td><td> Whether to automatically position the axis in the selection center.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>axis</tt></i><EFBFBD>:</span></td><td> coord. of flip axis.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The flipped drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2611442"></a><h3><a name="gimp-drawable-transform-flip"></a>gimp_drawable_transform_flip ()</h3><a class="indexterm" name="id2611450"></a><pre class="programlisting">gint32 gimp_drawable_transform_flip (gint32 drawable_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);</pre><p>
Flip the specified drawable around a given line.
</p><p>
This procedure flips the specified drawable if no selection exists.
If a selection exists, the portion of the drawable which lies under
the selection is cut from the drawable and made into a floating
selection which is then flipped. The axis to flip around is
specified by specifying two points from that line. The return value
is the ID of the flipped drawable. If there was no selection, this
will be equal to the drawable ID supplied as input. Otherwise, this
will be the newly created and flipped drawable. The clip results
parameter specifies wheter current selection will affect the
transform.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x0</tt></i><EFBFBD>:</span></td><td> horz. coord. of one end of axis.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y0</tt></i><EFBFBD>:</span></td><td> vert. coord. of one end of axis.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x1</tt></i><EFBFBD>:</span></td><td> horz. coord. of other end of axis.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y1</tt></i><EFBFBD>:</span></td><td> vert. coord. of other end of axis.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>transform_direction</tt></i><EFBFBD>:</span></td><td> Direction of Transformation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i><EFBFBD>:</span></td><td> Type of interpolation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>supersample</tt></i><EFBFBD>:</span></td><td> Whether to perform supersample.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>recursion_level</tt></i><EFBFBD>:</span></td><td> Level of recursion (3 is a nice default).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The flipped drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2611650"></a><h3><a name="gimp-drawable-transform-flip-default"></a>gimp_drawable_transform_flip_default ()</h3><a class="indexterm" name="id2611658"></a><pre class="programlisting">gint32 gimp_drawable_transform_flip_default
(gint32 drawable_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gboolean interpolate,
gboolean clip_result);</pre><p>
Flip the specified drawable around a given line.
</p><p>
This procedure is a variant of <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-flip"><tt class="function">gimp_drawable_transform_flip()</tt></a> which
uses no interpolation/supersampling at all, or default values
(depending on the 'interpolate' parameter).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x0</tt></i><EFBFBD>:</span></td><td> horz. coord. of one end of axis.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y0</tt></i><EFBFBD>:</span></td><td> vert. coord. of one end of axis.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x1</tt></i><EFBFBD>:</span></td><td> horz. coord. of other end of axis.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y1</tt></i><EFBFBD>:</span></td><td> vert. coord. of other end of axis.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolate</tt></i><EFBFBD>:</span></td><td> Whether to use interpolation and supersampling.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The flipped drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2611817"></a><h3><a name="gimp-drawable-transform-perspective"></a>gimp_drawable_transform_perspective ()</h3><a class="indexterm" name="id2611825"></a><pre class="programlisting">gint32 gimp_drawable_transform_perspective
(gint32 drawable_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2,
gdouble x3,
gdouble y3,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);</pre><p>
Perform a possibly non-affine transformation on the specified
drawable, with extra parameters.
</p><p>
This procedure performs a possibly non-affine transformation on the
specified drawable by allowing the corners of the original bounding
box to be arbitrarily remapped to any values. The specified drawable
is remapped if no selection exists. However, if a selection exists,
the portion of the drawable which lies under the selection is cut
from the drawable and made into a floating selection which is then
remapped as specified. The return value is the ID of the remapped
drawable. If there was no selection, this will be equal to the
drawable ID supplied as input. Otherwise, this will be the newly
created and remapped drawable. The 4 coordinates specify the new
locations of each corner of the original bounding box. By specifying
these values, any affine transformation (rotation, scaling,
translation) can be affected. Additionally, these values can be
specified such that the resulting transformed drawable will appear
to have been projected via a perspective transform.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x0</tt></i><EFBFBD>:</span></td><td> The new x coordinate of upper-left corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y0</tt></i><EFBFBD>:</span></td><td> The new y coordinate of upper-left corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x1</tt></i><EFBFBD>:</span></td><td> The new x coordinate of upper-right corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y1</tt></i><EFBFBD>:</span></td><td> The new y coordinate of upper-right corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x2</tt></i><EFBFBD>:</span></td><td> The new x coordinate of lower-left corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y2</tt></i><EFBFBD>:</span></td><td> The new y coordinate of lower-left corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x3</tt></i><EFBFBD>:</span></td><td> The new x coordinate of lower-right corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y3</tt></i><EFBFBD>:</span></td><td> The new y coordinate of lower-right corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>transform_direction</tt></i><EFBFBD>:</span></td><td> Direction of Transformation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i><EFBFBD>:</span></td><td> Type of interpolation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>supersample</tt></i><EFBFBD>:</span></td><td> Whether to perform supersample.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>recursion_level</tt></i><EFBFBD>:</span></td><td> Level of recursion (3 is a nice default).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The newly mapped drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2612129"></a><h3><a name="gimp-drawable-transform-perspective-default"></a>gimp_drawable_transform_perspective_default ()</h3><a class="indexterm" name="id2612138"></a><pre class="programlisting">gint32 gimp_drawable_transform_perspective_default
(gint32 drawable_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2,
gdouble x3,
gdouble y3,
gboolean interpolate,
gboolean clip_result);</pre><p>
Perform a possibly non-affine transformation on the specified
drawable, with extra parameters.
</p><p>
This procedure is a variant of <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-perspective"><tt class="function">gimp_drawable_transform_perspective()</tt></a>
which uses no interpolation/supersampling at all, or default values
(depending on the 'interpolate' parameter).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x0</tt></i><EFBFBD>:</span></td><td> The new x coordinate of upper-left corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y0</tt></i><EFBFBD>:</span></td><td> The new y coordinate of upper-left corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x1</tt></i><EFBFBD>:</span></td><td> The new x coordinate of upper-right corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y1</tt></i><EFBFBD>:</span></td><td> The new y coordinate of upper-right corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x2</tt></i><EFBFBD>:</span></td><td> The new x coordinate of lower-left corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y2</tt></i><EFBFBD>:</span></td><td> The new y coordinate of lower-left corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x3</tt></i><EFBFBD>:</span></td><td> The new x coordinate of lower-right corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y3</tt></i><EFBFBD>:</span></td><td> The new y coordinate of lower-right corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolate</tt></i><EFBFBD>:</span></td><td> Whether to use interpolation and supersampling.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The newly mapped drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2612384"></a><h3><a name="gimp-drawable-transform-rotate-simple"></a>gimp_drawable_transform_rotate_simple ()</h3><a class="indexterm" name="id2612392"></a><pre class="programlisting">gint32 gimp_drawable_transform_rotate_simple
(gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpRotationType">GimpRotationType</a> rotate_type,
gboolean auto_center,
gint center_x,
gint center_y,
gboolean clip_result);</pre><p>
Rotate the specified drawable about given coordinates through the
specified angle.
</p><p>
This function rotates the specified drawable if no selection exists.
If a selection exists, the portion of the drawable which lies under
the selection is cut from the drawable and made into a floating
selection which is then rotated by the specified amount. The return
value is the ID of the rotated drawable. If there was no selection,
this will be equal to the drawable ID supplied as input. Otherwise,
this will be the newly created and rotated drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>rotate_type</tt></i><EFBFBD>:</span></td><td> Type of rotation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>auto_center</tt></i><EFBFBD>:</span></td><td> Whether to automatically rotate around the selection center.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>center_x</tt></i><EFBFBD>:</span></td><td> The hor. coordinate of the center of rotation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>center_y</tt></i><EFBFBD>:</span></td><td> The vert. coordinate of the center of rotation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The rotated drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2612545"></a><h3><a name="gimp-drawable-transform-rotate"></a>gimp_drawable_transform_rotate ()</h3><a class="indexterm" name="id2612553"></a><pre class="programlisting">gint32 gimp_drawable_transform_rotate (gint32 drawable_ID,
gdouble angle,
gboolean auto_center,
gint center_x,
gint center_y,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);</pre><p>
Rotate the specified drawable about given coordinates through the
specified angle.
</p><p>
This function rotates the specified drawable if no selection exists.
If a selection exists, the portion of the drawable which lies under
the selection is cut from the drawable and made into a floating
selection which is then rotated by the specified amount. The return
value is the ID of the rotated drawable. If there was no selection,
this will be equal to the drawable ID supplied as input. Otherwise,
this will be the newly created and rotated drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>angle</tt></i><EFBFBD>:</span></td><td> The angle of rotation (radians).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>auto_center</tt></i><EFBFBD>:</span></td><td> Whether to automatically rotate around the selection center.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>center_x</tt></i><EFBFBD>:</span></td><td> The hor. coordinate of the center of rotation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>center_y</tt></i><EFBFBD>:</span></td><td> The vert. coordinate of the center of rotation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>transform_direction</tt></i><EFBFBD>:</span></td><td> Direction of Transformation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i><EFBFBD>:</span></td><td> Type of interpolation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>supersample</tt></i><EFBFBD>:</span></td><td> Whether to perform supersample.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>recursion_level</tt></i><EFBFBD>:</span></td><td> Level of recursion (3 is a nice default).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The rotated drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2612772"></a><h3><a name="gimp-drawable-transform-rotate-default"></a>gimp_drawable_transform_rotate_default ()</h3><a class="indexterm" name="id2612781"></a><pre class="programlisting">gint32 gimp_drawable_transform_rotate_default
(gint32 drawable_ID,
gdouble angle,
gboolean auto_center,
gint center_x,
gint center_y,
gboolean interpolate,
gboolean clip_result);</pre><p>
Rotate the specified drawable about given coordinates through the
specified angle.
</p><p>
This procedure is a variant of <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-rotate"><tt class="function">gimp_drawable_transform_rotate()</tt></a>
which uses no interpolation/supersampling at all, or default values
(depending on the 'interpolate' parameter).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>angle</tt></i><EFBFBD>:</span></td><td> The angle of rotation (radians).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>auto_center</tt></i><EFBFBD>:</span></td><td> Whether to automatically rotate around the selection center.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>center_x</tt></i><EFBFBD>:</span></td><td> The hor. coordinate of the center of rotation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>center_y</tt></i><EFBFBD>:</span></td><td> The vert. coordinate of the center of rotation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolate</tt></i><EFBFBD>:</span></td><td> Whether to use interpolation and supersampling.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The rotated drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2612952"></a><h3><a name="gimp-drawable-transform-scale"></a>gimp_drawable_transform_scale ()</h3><a class="indexterm" name="id2612960"></a><pre class="programlisting">gint32 gimp_drawable_transform_scale (gint32 drawable_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);</pre><p>
Scale the specified drawable with extra parameters
</p><p>
This procedure scales the specified drawable if no selection exists.
If a selection exists, the portion of the drawable which lies under
the selection is cut from the drawable and made into a floating
selection which is then scaled by the specified amount. The return
value is the ID of the scaled drawable. If there was no selection,
this will be equal to the drawable ID supplied as input. Otherwise,
this will be the newly created and scaled drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x0</tt></i><EFBFBD>:</span></td><td> The new x coordinate of upper-left corner of newly scaled region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y0</tt></i><EFBFBD>:</span></td><td> The new y coordinate of upper-left corner of newly scaled region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x1</tt></i><EFBFBD>:</span></td><td> The new x coordinate of lower-right corner of newly scaled region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y1</tt></i><EFBFBD>:</span></td><td> The new y coordinate of lower-right corner of newly scaled region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>transform_direction</tt></i><EFBFBD>:</span></td><td> Direction of Transformation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i><EFBFBD>:</span></td><td> Type of interpolation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>supersample</tt></i><EFBFBD>:</span></td><td> Whether to perform supersample.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>recursion_level</tt></i><EFBFBD>:</span></td><td> Level of recursion (3 is a nice default).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The scaled drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2613180"></a><h3><a name="gimp-drawable-transform-scale-default"></a>gimp_drawable_transform_scale_default ()</h3><a class="indexterm" name="id2613188"></a><pre class="programlisting">gint32 gimp_drawable_transform_scale_default
(gint32 drawable_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gboolean interpolate,
gboolean clip_result);</pre><p>
Scale the specified drawable with extra parameters
</p><p>
This procedure is a variant of <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-scale"><tt class="function">gimp_drawable_transform_scale()</tt></a> which
uses no interpolation/supersampling at all, or default values
(depending on the 'interpolate' parameter).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x0</tt></i><EFBFBD>:</span></td><td> The new x coordinate of upper-left corner of newly scaled region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y0</tt></i><EFBFBD>:</span></td><td> The new y coordinate of upper-left corner of newly scaled region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x1</tt></i><EFBFBD>:</span></td><td> The new x coordinate of lower-right corner of newly scaled region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y1</tt></i><EFBFBD>:</span></td><td> The new y coordinate of lower-right corner of newly scaled region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolate</tt></i><EFBFBD>:</span></td><td> Whether to use interpolation and supersampling.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The scaled drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2613360"></a><h3><a name="gimp-drawable-transform-shear"></a>gimp_drawable_transform_shear ()</h3><a class="indexterm" name="id2613369"></a><pre class="programlisting">gint32 gimp_drawable_transform_shear (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> shear_type,
gdouble magnitude,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);</pre><p>
Shear the specified drawable about its center by the specified
magnitude, with extra parameters.
</p><p>
This procedure shears the specified drawable if no selection exists.
If a selection exists, the portion of the drawable which lies under
the selection is cut from the drawable and made into a floating
selection which is then sheard by the specified amount. The return
value is the ID of the sheard drawable. If there was no selection,
this will be equal to the drawable ID supplied as input. Otherwise,
this will be the newly created and sheard drawable. The shear type
parameter indicates whether the shear will be applied horizontally
or vertically. The magnitude can be either positive or negative and
indicates the extent (in pixels) to shear by.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>shear_type</tt></i><EFBFBD>:</span></td><td> Type of shear.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>magnitude</tt></i><EFBFBD>:</span></td><td> The magnitude of the shear.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>transform_direction</tt></i><EFBFBD>:</span></td><td> Direction of Transformation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i><EFBFBD>:</span></td><td> Type of interpolation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>supersample</tt></i><EFBFBD>:</span></td><td> Whether to perform supersample.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>recursion_level</tt></i><EFBFBD>:</span></td><td> Level of recursion (3 is a nice default).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The sheared drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2613556"></a><h3><a name="gimp-drawable-transform-shear-default"></a>gimp_drawable_transform_shear_default ()</h3><a class="indexterm" name="id2613567"></a><pre class="programlisting">gint32 gimp_drawable_transform_shear_default
(gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> shear_type,
gdouble magnitude,
gboolean interpolate,
gboolean clip_result);</pre><p>
Shear the specified drawable about its center by the specified
magnitude, with extra parameters.
</p><p>
This procedure is a variant of <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-shear"><tt class="function">gimp_drawable_transform_shear()</tt></a> which
uses no interpolation/supersampling at all, or default values
(depending on the 'interpolate' parameter).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>shear_type</tt></i><EFBFBD>:</span></td><td> Type of shear.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>magnitude</tt></i><EFBFBD>:</span></td><td> The magnitude of the shear.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolate</tt></i><EFBFBD>:</span></td><td> Whether to use interpolation and supersampling.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The sheared drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2613705"></a><h3><a name="gimp-drawable-transform-2d"></a>gimp_drawable_transform_2d ()</h3><a class="indexterm" name="id2613714"></a><pre class="programlisting">gint32 gimp_drawable_transform_2d (gint32 drawable_ID,
gdouble source_x,
gdouble source_y,
gdouble scale_x,
gdouble scale_y,
gdouble angle,
gdouble dest_x,
gdouble dest_y,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);</pre><p>
Transform the specified drawable in 2d, with extra parameters.
</p><p>
This procedure transforms the specified drawable if no selection
exists. If a selection exists, the portion of the drawable which
lies under the selection is cut from the drawable and made into a
floating selection which is then transformed. The transformation is
done by scaling the image by the x and y scale factors about the
point (source_x, source_y), then rotating around the same point,
then translating that point to the new position (dest_x, dest_y).
The return value is the ID of the rotated drawable. If there was no
selection, this will be equal to the drawable ID supplied as input.
Otherwise, this will be the newly created and transformed drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>source_x</tt></i><EFBFBD>:</span></td><td> X coordinate of the transformation center.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>source_y</tt></i><EFBFBD>:</span></td><td> Y coordinate of the transformation center.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>scale_x</tt></i><EFBFBD>:</span></td><td> Amount to scale in x direction.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>scale_y</tt></i><EFBFBD>:</span></td><td> Amount to scale in y direction.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>angle</tt></i><EFBFBD>:</span></td><td> The angle of rotation (radians).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_x</tt></i><EFBFBD>:</span></td><td> X coordinate of where the center goes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_y</tt></i><EFBFBD>:</span></td><td> Y coordinate of where the center goes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>transform_direction</tt></i><EFBFBD>:</span></td><td> Direction of Transformation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i><EFBFBD>:</span></td><td> Type of interpolation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>supersample</tt></i><EFBFBD>:</span></td><td> Whether to perform supersample.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>recursion_level</tt></i><EFBFBD>:</span></td><td> Level of recursion (3 is a nice default).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The transformed drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2613993"></a><h3><a name="gimp-drawable-transform-2d-default"></a>gimp_drawable_transform_2d_default ()</h3><a class="indexterm" name="id2614005"></a><pre class="programlisting">gint32 gimp_drawable_transform_2d_default
(gint32 drawable_ID,
gdouble source_x,
gdouble source_y,
gdouble scale_x,
gdouble scale_y,
gdouble angle,
gdouble dest_x,
gdouble dest_y,
gboolean interpolate,
gboolean clip_result);</pre><p>
Transform the specified drawable in 2d, with extra parameters.
</p><p>
This procedure is a variant of <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-2d"><tt class="function">gimp_drawable_transform_2d()</tt></a> which
uses no interpolation/supersampling at all, or default values
(depending on the 'interpolate' parameter).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>source_x</tt></i><EFBFBD>:</span></td><td> X coordinate of the transformation center.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>source_y</tt></i><EFBFBD>:</span></td><td> Y coordinate of the transformation center.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>scale_x</tt></i><EFBFBD>:</span></td><td> Amount to scale in x direction.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>scale_y</tt></i><EFBFBD>:</span></td><td> Amount to scale in y direction.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>angle</tt></i><EFBFBD>:</span></td><td> The angle of rotation (radians).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_x</tt></i><EFBFBD>:</span></td><td> X coordinate of where the center goes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_y</tt></i><EFBFBD>:</span></td><td> Y coordinate of where the center goes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolate</tt></i><EFBFBD>:</span></td><td> Whether to use interpolation and supersampling.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The transformed drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2614230"></a><h3><a name="gimp-drawable-transform-matrix"></a>gimp_drawable_transform_matrix ()</h3><a class="indexterm" name="id2614242"></a><pre class="programlisting">gint32 gimp_drawable_transform_matrix (gint32 drawable_ID,
gdouble coeff_0_0,
gdouble coeff_0_1,
gdouble coeff_0_2,
gdouble coeff_1_0,
gdouble coeff_1_1,
gdouble coeff_1_2,
gdouble coeff_2_0,
gdouble coeff_2_1,
gdouble coeff_2_2,
<a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a> transform_direction,
<a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a> interpolation,
gboolean supersample,
gint recursion_level,
gboolean clip_result);</pre><p>
Transform the specified drawable in 2d, with extra parameters.
</p><p>
This procedure transforms the specified drawable if no selection
exists. If a selection exists, the portion of the drawable which
lies under the selection is cut from the drawable and made into a
floating selection which is then transformed. The transformation is
done by assembling a 3x3 matrix from the coefficients passed. The
return value is the ID of the rotated drawable. If there was no
selection, this will be equal to the drawable ID supplied as input.
Otherwise, this will be the newly created and transformed drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_0_0</tt></i><EFBFBD>:</span></td><td> coefficient (0,0) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_0_1</tt></i><EFBFBD>:</span></td><td> coefficient (0,1) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_0_2</tt></i><EFBFBD>:</span></td><td> coefficient (0,2) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_1_0</tt></i><EFBFBD>:</span></td><td> coefficient (1,0) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_1_1</tt></i><EFBFBD>:</span></td><td> coefficient (1,1) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_1_2</tt></i><EFBFBD>:</span></td><td> coefficient (1,2) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_2_0</tt></i><EFBFBD>:</span></td><td> coefficient (2,0) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_2_1</tt></i><EFBFBD>:</span></td><td> coefficient (2,1) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_2_2</tt></i><EFBFBD>:</span></td><td> coefficient (2,2) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>transform_direction</tt></i><EFBFBD>:</span></td><td> Direction of Transformation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i><EFBFBD>:</span></td><td> Type of interpolation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>supersample</tt></i><EFBFBD>:</span></td><td> Whether to perform supersample.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>recursion_level</tt></i><EFBFBD>:</span></td><td> Level of recursion (3 is a nice default).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The transformed drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2614556"></a><h3><a name="gimp-drawable-transform-matrix-default"></a>gimp_drawable_transform_matrix_default ()</h3><a class="indexterm" name="id2614567"></a><pre class="programlisting">gint32 gimp_drawable_transform_matrix_default
(gint32 drawable_ID,
gdouble coeff_0_0,
gdouble coeff_0_1,
gdouble coeff_0_2,
gdouble coeff_1_0,
gdouble coeff_1_1,
gdouble coeff_1_2,
gdouble coeff_2_0,
gdouble coeff_2_1,
gdouble coeff_2_2,
gboolean interpolate,
gboolean clip_result);</pre><p>
Transform the specified drawable in 2d, with extra parameters.
</p><p>
This procedure is a variant of <a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-matrix"><tt class="function">gimp_drawable_transform_matrix()</tt></a>
which uses no interpolation/supersampling at all, or default values
(depending on the 'interpolate' parameter).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_0_0</tt></i><EFBFBD>:</span></td><td> coefficient (0,0) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_0_1</tt></i><EFBFBD>:</span></td><td> coefficient (0,1) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_0_2</tt></i><EFBFBD>:</span></td><td> coefficient (0,2) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_1_0</tt></i><EFBFBD>:</span></td><td> coefficient (1,0) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_1_1</tt></i><EFBFBD>:</span></td><td> coefficient (1,1) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_1_2</tt></i><EFBFBD>:</span></td><td> coefficient (1,2) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_2_0</tt></i><EFBFBD>:</span></td><td> coefficient (2,0) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_2_1</tt></i><EFBFBD>:</span></td><td> coefficient (2,1) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coeff_2_2</tt></i><EFBFBD>:</span></td><td> coefficient (2,2) of the transformation matrix.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolate</tt></i><EFBFBD>:</span></td><td> Whether to use interpolation and supersampling.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clip_result</tt></i><EFBFBD>:</span></td><td> Whether to clip results.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The transformed drawable.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpdrawable.html"><b>&lt;&lt;<EFBFBD>gimpdrawable</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpedit.html"><b>gimpedit<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,212 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpedit</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpdrawabletransform.html" title="gimpdrawabletransform"><link rel="next" href="libgimp-gimpfileops.html" title="gimpfileops"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpdrawabletransform.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpfileops.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpedit"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpedit</span></h2><p>gimpedit &#8212; Edit menu functions (cut, copy, paste, clear, etc.)</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimpedit.html#gimp-edit-cut">gimp_edit_cut</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpedit.html#gimp-edit-copy">gimp_edit_copy</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpedit.html#gimp-edit-copy-visible">gimp_edit_copy_visible</a> (gint32 image_ID);
gint32 <a href="libgimp-gimpedit.html#gimp-edit-paste">gimp_edit_paste</a> (gint32 drawable_ID,
gboolean paste_into);
gboolean <a href="libgimp-gimpedit.html#gimp-edit-clear">gimp_edit_clear</a> (gint32 drawable_ID);
gboolean <a href="libgimp-gimpedit.html#gimp-edit-fill">gimp_edit_fill</a> (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpFillType">GimpFillType</a> fill_type);
gboolean <a href="libgimp-gimpedit.html#gimp-edit-bucket-fill">gimp_edit_bucket_fill</a> (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpBucketFillMode">GimpBucketFillMode</a> fill_mode,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode,
gdouble opacity,
gdouble threshold,
gboolean sample_merged,
gdouble x,
gdouble y);
gboolean <a href="libgimp-gimpedit.html#gimp-edit-blend">gimp_edit_blend</a> (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpBlendMode">GimpBlendMode</a> blend_mode,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode,
<a href="libgimp-gimpenums.html#GimpGradientType">GimpGradientType</a> gradient_type,
gdouble opacity,
gdouble offset,
<a href="libgimp-gimpenums.html#GimpRepeatMode">GimpRepeatMode</a> repeat,
gboolean reverse,
gboolean supersample,
gint max_depth,
gdouble threshold,
gboolean dither,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2);
gboolean <a href="libgimp-gimpedit.html#gimp-edit-stroke">gimp_edit_stroke</a> (gint32 drawable_ID);
</pre></div><div class="refsect1" lang="en"><a name="id2600382"></a><h2>Description</h2><p>
Edit menu functions (cut, copy, paste, clear, etc.)
</p></div><div class="refsect1" lang="en"><a name="id2601083"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2601088"></a><h3><a name="gimp-edit-cut"></a>gimp_edit_cut ()</h3><a class="indexterm" name="id2601096"></a><pre class="programlisting">gboolean gimp_edit_cut (gint32 drawable_ID);</pre><p>
Cut from the specified drawable.
</p><p>
If there is a selection in the image, then the area specified by the
selection is cut from the specified drawable and placed in an
internal GIMP edit buffer. It can subsequently be retrieved using
the 'gimp-edit-paste' command. If there is no selection, then the
specified drawable will be removed and its contents stored in the
internal GIMP edit buffer.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable to cut from.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE if the cut was successful, FALSE if the selection contained only transparent pixels.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2601154"></a><h3><a name="gimp-edit-copy"></a>gimp_edit_copy ()</h3><a class="indexterm" name="id2601162"></a><pre class="programlisting">gboolean gimp_edit_copy (gint32 drawable_ID);</pre><p>
Copy from the specified drawable.
</p><p>
If there is a selection in the image, then the area specified by the
selection is copied from the specified drawable and placed in an
internal GIMP edit buffer. It can subsequently be retrieved using
the 'gimp-edit-paste' command. If there is no selection, then the
specified drawable's contents will be stored in the internal GIMP
edit buffer.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable to copy from.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE if the copy was successful, FALSE if the selection contained only transparent pixels.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2601220"></a><h3><a name="gimp-edit-copy-visible"></a>gimp_edit_copy_visible ()</h3><a class="indexterm" name="id2601228"></a><pre class="programlisting">gboolean gimp_edit_copy_visible (gint32 image_ID);</pre><p>
Copy from the projection.
</p><p>
If there is a selection in the image, then the area specified by the
selection is copied from the projection and placed in an internal
GIMP edit buffer. It can subsequently be retrieved using the
'gimp-edit-paste' command. If there is no selection, then the
projection's contents will be stored in the internal GIMP edit
buffer.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image to copy from.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE if the copy was successful, FALSE if the selection contained only transparent pixels.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2601289"></a><h3><a name="gimp-edit-paste"></a>gimp_edit_paste ()</h3><a class="indexterm" name="id2601298"></a><pre class="programlisting">gint32 gimp_edit_paste (gint32 drawable_ID,
gboolean paste_into);</pre><p>
Paste buffer to the specified drawable.
</p><p>
This procedure pastes a copy of the internal GIMP edit buffer to the
specified drawable. The GIMP edit buffer will be empty unless a call
was previously made to either 'gimp-edit-cut' or 'gimp-edit-copy'.
The \"paste_into\" option specifies whether to clear the current
image selection, or to paste the buffer \"behind\" the selection.
This allows the selection to act as a mask for the pasted buffer.
Anywhere that the selection mask is non-zero, the pasted buffer will
show through. The pasted buffer will be a new layer in the image
which is designated as the image floating selection. If the image
has a floating selection at the time of pasting, the old floating
selection will be anchored to it's drawable before the new floating
selection is added. This procedure returns the new floating layer.
The resulting floating selection will already be attached to the
specified drawable, and a subsequent call to floating_sel_attach is
not needed.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable to paste to.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>paste_into</tt></i><EFBFBD>:</span></td><td> Clear selection, or paste behind it?
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The new floating selection.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2544187"></a><h3><a name="gimp-edit-clear"></a>gimp_edit_clear ()</h3><a class="indexterm" name="id2529708"></a><pre class="programlisting">gboolean gimp_edit_clear (gint32 drawable_ID);</pre><p>
Clear selected area of drawable.
</p><p>
This procedure clears the specified drawable. If the drawable has an
alpha channel, the cleared pixels will become transparent. If the
drawable does not have an alpha channel, cleared pixels will be set
to the background color. This procedure only affects regions within
a selection if there is a selection active.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable to clear from.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2596448"></a><h3><a name="gimp-edit-fill"></a>gimp_edit_fill ()</h3><a class="indexterm" name="id2596456"></a><pre class="programlisting">gboolean gimp_edit_fill (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpFillType">GimpFillType</a> fill_type);</pre><p>
Fill selected area of drawable.
</p><p>
This procedure fills the specified drawable with the fill mode. If
the fill mode is foreground, the current foreground color is used.
If the fill mode is background, the current background color is
used. Other fill modes should not be used. This procedure only
affects regions within a selection if there is a selection active.
If you want to fill the whole drawable, regardless of the selection,
use <a href="libgimp-gimpdrawable.html#gimp-drawable-fill"><tt class="function">gimp_drawable_fill()</tt></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable to fill to.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>fill_type</tt></i><EFBFBD>:</span></td><td> The type of fill.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2596531"></a><h3><a name="gimp-edit-bucket-fill"></a>gimp_edit_bucket_fill ()</h3><a class="indexterm" name="id2596538"></a><pre class="programlisting">gboolean gimp_edit_bucket_fill (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpBucketFillMode">GimpBucketFillMode</a> fill_mode,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode,
gdouble opacity,
gdouble threshold,
gboolean sample_merged,
gdouble x,
gdouble y);</pre><p>
Fill the area specified either by the current selection if there is
one, or by a seed fill starting at the specified coordinates.
</p><p>
This tool requires information on the paint application mode, and
the fill mode, which can either be in the foreground color, or in
the currently active pattern. If there is no selection, a seed fill
is executed at the specified coordinates and extends outward in
keeping with the threshold parameter. If there is a selection in the
target image, the threshold, sample merged, x, and y arguments are
unused. If the sample_merged parameter is non-zero, the data of the
composite image will be used instead of that for the specified
drawable. This is equivalent to sampling for colors after merging
all visible layers. In the case of merged sampling, the x and y
coordinates are relative to the image's origin; otherwise, they are
relative to the drawable's origin.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>fill_mode</tt></i><EFBFBD>:</span></td><td> The type of fill.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>paint_mode</tt></i><EFBFBD>:</span></td><td> The paint application mode.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The opacity of the final bucket fill.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>threshold</tt></i><EFBFBD>:</span></td><td> The threshold determines how extensive the seed fill will be. It's value is specified in terms of intensity levels . This parameter is only valid when there is no selection in the specified image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>sample_merged</tt></i><EFBFBD>:</span></td><td> Use the composite image, not the drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> The x coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> The y coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2596720"></a><h3><a name="gimp-edit-blend"></a>gimp_edit_blend ()</h3><a class="indexterm" name="id2596727"></a><pre class="programlisting">gboolean gimp_edit_blend (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpBlendMode">GimpBlendMode</a> blend_mode,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> paint_mode,
<a href="libgimp-gimpenums.html#GimpGradientType">GimpGradientType</a> gradient_type,
gdouble opacity,
gdouble offset,
<a href="libgimp-gimpenums.html#GimpRepeatMode">GimpRepeatMode</a> repeat,
gboolean reverse,
gboolean supersample,
gint max_depth,
gdouble threshold,
gboolean dither,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2);</pre><p>
Blend between the starting and ending coordinates with the specified
blend mode and gradient type.
</p><p>
This tool requires information on the paint application mode, the
blend mode, and the gradient type. It creates the specified variety
of blend using the starting and ending coordinates as defined for
each gradient type.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>blend_mode</tt></i><EFBFBD>:</span></td><td> The type of blend.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>paint_mode</tt></i><EFBFBD>:</span></td><td> The paint application mode.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>gradient_type</tt></i><EFBFBD>:</span></td><td> The type of gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The opacity of the final blend.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offset</tt></i><EFBFBD>:</span></td><td> Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode dependent.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>repeat</tt></i><EFBFBD>:</span></td><td> Repeat mode.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>reverse</tt></i><EFBFBD>:</span></td><td> Use the reverse gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>supersample</tt></i><EFBFBD>:</span></td><td> Do adaptive supersampling.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>max_depth</tt></i><EFBFBD>:</span></td><td> Maximum recursion levels for supersampling.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>threshold</tt></i><EFBFBD>:</span></td><td> Supersampling threshold.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dither</tt></i><EFBFBD>:</span></td><td> Use dithering to reduce banding.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x1</tt></i><EFBFBD>:</span></td><td> The x coordinate of this blend's starting point.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y1</tt></i><EFBFBD>:</span></td><td> The y coordinate of this blend's starting point.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x2</tt></i><EFBFBD>:</span></td><td> The x coordinate of this blend's ending point.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y2</tt></i><EFBFBD>:</span></td><td> The y coordinate of this blend's ending point.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2609633"></a><h3><a name="gimp-edit-stroke"></a>gimp_edit_stroke ()</h3><a class="indexterm" name="id2609641"></a><pre class="programlisting">gboolean gimp_edit_stroke (gint32 drawable_ID);</pre><p>
Stroke the current selection
</p><p>
This procedure strokes the current selection, painting along the
selection boundary with the active brush and foreground color. The
paint is applied to the specified drawable regardless of the active
selection.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable to stroke to.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpdrawabletransform.html"><b>&lt;&lt;<EFBFBD>gimpdrawabletransform</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpfileops.html"><b>gimpfileops<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,347 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpenums</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="prev" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="next" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="gimpdefinitions.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="gimpdefinitions.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpenums"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpenums</span></h2><p>gimpenums &#8212; Enums and definitions.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
enum <a href="libgimp-gimpenums.html#GimpAddMaskType">GimpAddMaskType</a>;
enum <a href="libgimp-gimpenums.html#GimpBlendMode">GimpBlendMode</a>;
enum <a href="libgimp-gimpenums.html#GimpBrushApplicationMode">GimpBrushApplicationMode</a>;
enum <a href="libgimp-gimpenums.html#GimpBucketFillMode">GimpBucketFillMode</a>;
enum <a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a>;
enum <a href="libgimp-gimpenums.html#GimpChannelType">GimpChannelType</a>;
enum <a href="libgimp-gimpenums.html#GimpCloneType">GimpCloneType</a>;
enum <a href="libgimp-gimpenums.html#GimpConvertDitherType">GimpConvertDitherType</a>;
enum <a href="libgimp-gimpenums.html#GimpConvertPaletteType">GimpConvertPaletteType</a>;
enum <a href="libgimp-gimpenums.html#GimpConvolutionType">GimpConvolutionType</a>;
enum <a href="libgimp-gimpenums.html#GimpConvolveType">GimpConvolveType</a>;
enum <a href="libgimp-gimpenums.html#GimpDodgeBurnType">GimpDodgeBurnType</a>;
enum <a href="libgimp-gimpenums.html#GimpFillType">GimpFillType</a>;
enum <a href="libgimp-gimpenums.html#GimpGradientSegmentColor">GimpGradientSegmentColor</a>;
enum <a href="libgimp-gimpenums.html#GimpGradientSegmentType">GimpGradientSegmentType</a>;
enum <a href="libgimp-gimpenums.html#GimpGradientType">GimpGradientType</a>;
enum <a href="libgimp-gimpenums.html#GimpHistogramChannel">GimpHistogramChannel</a>;
enum <a href="libgimp-gimpenums.html#GimpHueRange">GimpHueRange</a>;
enum <a href="libgimp-gimpenums.html#GimpIconType">GimpIconType</a>;
enum <a href="libgimp-gimpenums.html#GimpInterpolationType">GimpInterpolationType</a>;
enum <a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a>;
enum <a href="libgimp-gimpenums.html#GimpMaskApplyMode">GimpMaskApplyMode</a>;
enum <a href="libgimp-gimpenums.html#GimpMergeType">GimpMergeType</a>;
enum <a href="libgimp-gimpenums.html#GimpOffsetType">GimpOffsetType</a>;
enum <a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a>;
enum <a href="libgimp-gimpenums.html#GimpPaintApplicationMode">GimpPaintApplicationMode</a>;
enum <a href="libgimp-gimpenums.html#GimpRepeatMode">GimpRepeatMode</a>;
enum <a href="libgimp-gimpenums.html#GimpRotationType">GimpRotationType</a>;
enum <a href="libgimp-gimpenums.html#GimpRunMode">GimpRunMode</a>;
enum <a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a>;
enum <a href="libgimp-gimpenums.html#GimpTransferMode">GimpTransferMode</a>;
enum <a href="libgimp-gimpenums.html#GimpTransformDirection">GimpTransformDirection</a>;
const gchar** <a href="libgimp-gimpenums.html#gimp-enums-get-type-names">gimp_enums_get_type_names</a> (gint *n_type_names);
</pre></div><div class="refsect1" lang="en"><a name="id2581535"></a><h2>Description</h2><p>
Enums and definitions.
</p></div><div class="refsect1" lang="en"><a name="id2581545"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2495612"></a><h3><a name="GimpAddMaskType"></a>enum GimpAddMaskType</h3><a class="indexterm" name="id2495620"></a><pre class="programlisting">typedef enum
{
GIMP_ADD_WHITE_MASK,
GIMP_ADD_BLACK_MASK,
GIMP_ADD_ALPHA_MASK,
GIMP_ADD_ALPHA_TRANSFER_MASK,
GIMP_ADD_SELECTION_MASK,
GIMP_ADD_COPY_MASK
} GimpAddMaskType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2495633"></a><h3><a name="GimpBlendMode"></a>enum GimpBlendMode</h3><a class="indexterm" name="id2495642"></a><pre class="programlisting">typedef enum
{
GIMP_FG_BG_RGB_MODE,
GIMP_FG_BG_HSV_MODE,
GIMP_FG_TRANSPARENT_MODE,
GIMP_CUSTOM_MODE
} GimpBlendMode;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2495653"></a><h3><a name="GimpBrushApplicationMode"></a>enum GimpBrushApplicationMode</h3><a class="indexterm" name="id2495662"></a><pre class="programlisting">typedef enum
{
GIMP_BRUSH_HARD,
GIMP_BRUSH_SOFT
} GimpBrushApplicationMode;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2495673"></a><h3><a name="GimpBucketFillMode"></a>enum GimpBucketFillMode</h3><a class="indexterm" name="id2495681"></a><pre class="programlisting">typedef enum
{
GIMP_FG_BUCKET_FILL,
GIMP_BG_BUCKET_FILL,
GIMP_PATTERN_BUCKET_FILL
} GimpBucketFillMode;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2495693"></a><h3><a name="GimpChannelOps"></a>enum GimpChannelOps</h3><a class="indexterm" name="id2495701"></a><pre class="programlisting">typedef enum
{
GIMP_CHANNEL_OP_ADD,
GIMP_CHANNEL_OP_SUBTRACT,
GIMP_CHANNEL_OP_REPLACE,
GIMP_CHANNEL_OP_INTERSECT
} GimpChannelOps;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2495713"></a><h3><a name="GimpChannelType"></a>enum GimpChannelType</h3><a class="indexterm" name="id2495722"></a><pre class="programlisting">typedef enum
{
GIMP_RED_CHANNEL,
GIMP_GREEN_CHANNEL,
GIMP_BLUE_CHANNEL,
GIMP_GRAY_CHANNEL,
GIMP_INDEXED_CHANNEL,
GIMP_ALPHA_CHANNEL
} GimpChannelType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2495734"></a><h3><a name="GimpCloneType"></a>enum GimpCloneType</h3><a class="indexterm" name="id2495742"></a><pre class="programlisting">typedef enum
{
GIMP_IMAGE_CLONE,
GIMP_PATTERN_CLONE
} GimpCloneType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2495753"></a><h3><a name="GimpConvertDitherType"></a>enum GimpConvertDitherType</h3><a class="indexterm" name="id2495762"></a><pre class="programlisting">typedef enum
{
GIMP_NO_DITHER,
GIMP_FS_DITHER,
GIMP_FSLOWBLEED_DITHER,
GIMP_FIXED_DITHER
} GimpConvertDitherType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2495774"></a><h3><a name="GimpConvertPaletteType"></a>enum GimpConvertPaletteType</h3><a class="indexterm" name="id2495782"></a><pre class="programlisting">typedef enum
{
GIMP_MAKE_PALETTE,
GIMP_REUSE_PALETTE,
GIMP_WEB_PALETTE,
GIMP_MONO_PALETTE,
GIMP_CUSTOM_PALETTE
} GimpConvertPaletteType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2495794"></a><h3><a name="GimpConvolutionType"></a>enum GimpConvolutionType</h3><a class="indexterm" name="id2495802"></a><pre class="programlisting">typedef enum
{
GIMP_NORMAL_CONVOL,
GIMP_ABSOLUTE_CONVOL,
GIMP_NEGATIVE_CONVOL
} GimpConvolutionType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2495814"></a><h3><a name="GimpConvolveType"></a>enum GimpConvolveType</h3><a class="indexterm" name="id2495822"></a><pre class="programlisting">typedef enum
{
GIMP_BLUR_CONVOLVE,
GIMP_SHARPEN_CONVOLVE
} GimpConvolveType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2495833"></a><h3><a name="GimpDodgeBurnType"></a>enum GimpDodgeBurnType</h3><a class="indexterm" name="id2495842"></a><pre class="programlisting">typedef enum
{
GIMP_DODGE,
GIMP_BURN
} GimpDodgeBurnType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2495853"></a><h3><a name="GimpFillType"></a>enum GimpFillType</h3><a class="indexterm" name="id2495861"></a><pre class="programlisting">typedef enum
{
GIMP_FOREGROUND_FILL,
GIMP_BACKGROUND_FILL,
GIMP_WHITE_FILL,
GIMP_TRANSPARENT_FILL,
GIMP_PATTERN_FILL
} GimpFillType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550639"></a><h3><a name="GimpGradientSegmentColor"></a>enum GimpGradientSegmentColor</h3><a class="indexterm" name="id2550648"></a><pre class="programlisting">typedef enum
{
GIMP_GRADIENT_SEGMENT_RGB,
GIMP_GRADIENT_SEGMENT_HSV_CCW,
GIMP_GRADIENT_SEGMENT_HSV_CW
} GimpGradientSegmentColor;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550660"></a><h3><a name="GimpGradientSegmentType"></a>enum GimpGradientSegmentType</h3><a class="indexterm" name="id2550668"></a><pre class="programlisting">typedef enum
{
GIMP_GRADIENT_SEGMENT_LINEAR,
GIMP_GRADIENT_SEGMENT_CURVED,
GIMP_GRADIENT_SEGMENT_SINE,
GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING,
GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING
} GimpGradientSegmentType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550682"></a><h3><a name="GimpGradientType"></a>enum GimpGradientType</h3><a class="indexterm" name="id2550690"></a><pre class="programlisting">typedef enum
{
GIMP_GRADIENT_LINEAR,
GIMP_GRADIENT_BILINEAR,
GIMP_GRADIENT_RADIAL,
GIMP_GRADIENT_SQUARE,
GIMP_GRADIENT_CONICAL_SYMMETRIC,
GIMP_GRADIENT_CONICAL_ASYMMETRIC,
GIMP_GRADIENT_SHAPEBURST_ANGULAR,
GIMP_GRADIENT_SHAPEBURST_SPHERICAL,
GIMP_GRADIENT_SHAPEBURST_DIMPLED,
GIMP_GRADIENT_SPIRAL_CLOCKWISE,
GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE
} GimpGradientType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550706"></a><h3><a name="GimpHistogramChannel"></a>enum GimpHistogramChannel</h3><a class="indexterm" name="id2550714"></a><pre class="programlisting">typedef enum
{
GIMP_HISTOGRAM_VALUE,
GIMP_HISTOGRAM_RED,
GIMP_HISTOGRAM_GREEN,
GIMP_HISTOGRAM_BLUE,
GIMP_HISTOGRAM_ALPHA
} GimpHistogramChannel;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550727"></a><h3><a name="GimpHueRange"></a>enum GimpHueRange</h3><a class="indexterm" name="id2550735"></a><pre class="programlisting">typedef enum
{
GIMP_ALL_HUES,
GIMP_RED_HUES,
GIMP_YELLOW_HUES,
GIMP_GREEN_HUES,
GIMP_CYAN_HUES,
GIMP_BLUE_HUES,
GIMP_MAGENTA_HUES
} GimpHueRange;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550748"></a><h3><a name="GimpIconType"></a>enum GimpIconType</h3><a class="indexterm" name="id2550756"></a><pre class="programlisting">typedef enum
{
GIMP_ICON_TYPE_STOCK_ID,
GIMP_ICON_TYPE_INLINE_PIXBUF,
GIMP_ICON_TYPE_IMAGE_FILE
} GimpIconType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550768"></a><h3><a name="GimpInterpolationType"></a>enum GimpInterpolationType</h3><a class="indexterm" name="id2550776"></a><pre class="programlisting">typedef enum
{
GIMP_INTERPOLATION_NONE,
GIMP_INTERPOLATION_LINEAR,
GIMP_INTERPOLATION_CUBIC
} GimpInterpolationType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550788"></a><h3><a name="GimpLayerModeEffects"></a>enum GimpLayerModeEffects</h3><a class="indexterm" name="id2550796"></a><pre class="programlisting">typedef enum
{
GIMP_NORMAL_MODE,
GIMP_DISSOLVE_MODE,
GIMP_BEHIND_MODE,
GIMP_MULTIPLY_MODE,
GIMP_SCREEN_MODE,
GIMP_OVERLAY_MODE,
GIMP_DIFFERENCE_MODE,
GIMP_ADDITION_MODE,
GIMP_SUBTRACT_MODE,
GIMP_DARKEN_ONLY_MODE,
GIMP_LIGHTEN_ONLY_MODE,
GIMP_HUE_MODE,
GIMP_SATURATION_MODE,
GIMP_COLOR_MODE,
GIMP_VALUE_MODE,
GIMP_DIVIDE_MODE,
GIMP_DODGE_MODE,
GIMP_BURN_MODE,
GIMP_HARDLIGHT_MODE,
GIMP_SOFTLIGHT_MODE,
GIMP_GRAIN_EXTRACT_MODE,
GIMP_GRAIN_MERGE_MODE,
GIMP_COLOR_ERASE_MODE
} GimpLayerModeEffects;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2578424"></a><h3><a name="GimpMaskApplyMode"></a>enum GimpMaskApplyMode</h3><a class="indexterm" name="id2565326"></a><pre class="programlisting">typedef enum
{
GIMP_MASK_APPLY,
GIMP_MASK_DISCARD
} GimpMaskApplyMode;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2546675"></a><h3><a name="GimpMergeType"></a>enum GimpMergeType</h3><a class="indexterm" name="id2578410"></a><pre class="programlisting">typedef enum
{
GIMP_EXPAND_AS_NECESSARY,
GIMP_CLIP_TO_IMAGE,
GIMP_CLIP_TO_BOTTOM_LAYER,
GIMP_FLATTEN_IMAGE
} GimpMergeType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2570385"></a><h3><a name="GimpOffsetType"></a>enum GimpOffsetType</h3><a class="indexterm" name="id2576431"></a><pre class="programlisting">typedef enum
{
GIMP_OFFSET_BACKGROUND,
GIMP_OFFSET_TRANSPARENT
} GimpOffsetType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2555626"></a><h3><a name="GimpOrientationType"></a>enum GimpOrientationType</h3><a class="indexterm" name="id2569853"></a><pre class="programlisting">typedef enum
{
GIMP_ORIENTATION_HORIZONTAL,
GIMP_ORIENTATION_VERTICAL,
GIMP_ORIENTATION_UNKNOWN
} GimpOrientationType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2538450"></a><h3><a name="GimpPaintApplicationMode"></a>enum GimpPaintApplicationMode</h3><a class="indexterm" name="id2562961"></a><pre class="programlisting">typedef enum
{
GIMP_PAINT_CONSTANT,
GIMP_PAINT_INCREMENTAL
} GimpPaintApplicationMode;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2577002"></a><h3><a name="GimpRepeatMode"></a>enum GimpRepeatMode</h3><a class="indexterm" name="id2549512"></a><pre class="programlisting">typedef enum
{
GIMP_REPEAT_NONE,
GIMP_REPEAT_SAWTOOTH,
GIMP_REPEAT_TRIANGULAR
} GimpRepeatMode;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550815"></a><h3><a name="GimpRotationType"></a>enum GimpRotationType</h3><a class="indexterm" name="id2550822"></a><pre class="programlisting">typedef enum
{
GIMP_ROTATE_90,
GIMP_ROTATE_180,
GIMP_ROTATE_270
} GimpRotationType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550833"></a><h3><a name="GimpRunMode"></a>enum GimpRunMode</h3><a class="indexterm" name="id2550841"></a><pre class="programlisting">typedef enum
{
GIMP_RUN_INTERACTIVE,
GIMP_RUN_NONINTERACTIVE,
GIMP_RUN_WITH_LAST_VALS
} GimpRunMode;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550850"></a><h3><a name="GimpSizeType"></a>enum GimpSizeType</h3><a class="indexterm" name="id2550858"></a><pre class="programlisting">typedef enum
{
GIMP_PIXELS,
GIMP_POINTS
} GimpSizeType;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550867"></a><h3><a name="GimpTransferMode"></a>enum GimpTransferMode</h3><a class="indexterm" name="id2550875"></a><pre class="programlisting">typedef enum
{
GIMP_SHADOWS,
GIMP_MIDTONES,
GIMP_HIGHLIGHTS
} GimpTransferMode;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2550886"></a><h3><a name="GimpTransformDirection"></a>enum GimpTransformDirection</h3><a class="indexterm" name="id2562686"></a><pre class="programlisting">typedef enum
{
GIMP_TRANSFORM_FORWARD,
GIMP_TRANSFORM_BACKWARD
} GimpTransformDirection;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2467952"></a><h3><a name="gimp-enums-get-type-names"></a>gimp_enums_get_type_names ()</h3><a class="indexterm" name="id2467960"></a><pre class="programlisting">const gchar** gimp_enums_get_type_names (gint *n_type_names);</pre><p>
This function gives access to the list of enums registered by libgimp.
The returned array is static and must not be modified.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>n_type_names</tt></i><EFBFBD>:</span></td><td> return location for the number of names
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> an array with type names
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="gimpdefinitions.html"><b>&lt;&lt;<EFBFBD>Part<EFBFBD>I.<2E>GIMP Constants</b></a></td><td align="right"><a accesskey="n" href="libgimp.html"><b>Part<EFBFBD>II.<2E>GIMP Library<72>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,73 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpexport</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="libgimp-gimpui.html" title="gimpui"><link rel="next" href="GimpAspectPreview.html" title="GimpAspectPreview"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpui.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="GimpAspectPreview.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpexport"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpexport</span></h2><p>gimpexport &#8212; Export an image before it is saved.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
enum <a href="libgimp-gimpexport.html#GimpExportCapabilities">GimpExportCapabilities</a>;
enum <a href="libgimp-gimpexport.html#GimpExportReturn">GimpExportReturn</a>;
<a href="libgimp-gimpexport.html#GimpExportReturn">GimpExportReturn</a> <a href="libgimp-gimpexport.html#gimp-export-image">gimp_export_image</a> (gint32 *image_ID,
gint32 *drawable_ID,
const gchar *format_name,
<a href="libgimp-gimpexport.html#GimpExportCapabilities">GimpExportCapabilities</a> capabilities);
</pre></div><div class="refsect1" lang="en"><a name="id2655621"></a><h2>Description</h2><p>
This function should be called by all save_plugins unless they are
able to save all image formats the GIMP knows about. It takes care
of asking the user if she wishes to export the image to a format the
save_plugin can handle. It then performs the necessary conversions
(e.g. Flatten) on a copy of the image so that the image can be saved
without changing the original image.
The capabilities of the save_plugin are specified by combining
<a href="libgimp-gimpexport.html#GimpExportCapabilities"><span class="type">GimpExportCapabilities</span></a> using a bitwise OR.
Make sure you have initialized GTK+ before you call this function
as it will most probably have to open a dialog.
</p></div><div class="refsect1" lang="en"><a name="id2655647"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2655652"></a><h3><a name="GimpExportCapabilities"></a>enum GimpExportCapabilities</h3><a class="indexterm" name="id2665145"></a><pre class="programlisting">typedef enum
{
GIMP_EXPORT_CAN_HANDLE_RGB = 1 &lt;&lt; 0,
GIMP_EXPORT_CAN_HANDLE_GRAY = 1 &lt;&lt; 1,
GIMP_EXPORT_CAN_HANDLE_INDEXED = 1 &lt;&lt; 2,
GIMP_EXPORT_CAN_HANDLE_BITMAP = 1 &lt;&lt; 3,
GIMP_EXPORT_CAN_HANDLE_ALPHA = 1 &lt;&lt; 4,
GIMP_EXPORT_CAN_HANDLE_LAYERS = 1 &lt;&lt; 5,
GIMP_EXPORT_CAN_HANDLE_LAYERS_AS_ANIMATION = 1 &lt;&lt; 6,
GIMP_EXPORT_CAN_HANDLE_LAYER_MASKS = 1 &lt;&lt; 7,
GIMP_EXPORT_NEEDS_ALPHA = 1 &lt;&lt; 8
} GimpExportCapabilities;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2565941"></a><h3><a name="GimpExportReturn"></a>enum GimpExportReturn</h3><a class="indexterm" name="id2557792"></a><pre class="programlisting">typedef enum
{
GIMP_EXPORT_CANCEL,
GIMP_EXPORT_IGNORE,
GIMP_EXPORT_EXPORT
} GimpExportReturn;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2560562"></a><h3><a name="gimp-export-image"></a>gimp_export_image ()</h3><a class="indexterm" name="id2578825"></a><pre class="programlisting"><a href="libgimp-gimpexport.html#GimpExportReturn">GimpExportReturn</a> gimp_export_image (gint32 *image_ID,
gint32 *drawable_ID,
const gchar *format_name,
<a href="libgimp-gimpexport.html#GimpExportCapabilities">GimpExportCapabilities</a> capabilities);</pre><p>
Takes an image and a drawable to be saved together with a
description of the capabilities of the image_format. If the
type of image doesn't match the capabilities of the format
a dialog is opened that informs the user that the image has
to be exported and offers to do the necessary conversions.
</p><p>
If the user chooses to export the image, a copy is created.
This copy is then converted, the image_ID and drawable_ID
are changed to point to the new image and the procedure returns
GIMP_EXPORT_EXPORT. The save_plugin has to take care of deleting the
created image using <a href="libgimp-gimpimage.html#gimp-image-delete"><tt class="function">gimp_image_delete()</tt></a> when it has saved it.
</p><p>
If the user chooses to Ignore the export problem, the image_ID
and drawable_ID is not altered, GIMP_EXPORT_IGNORE is returned and
the save_plugin should try to save the original image. If the
user chooses Cancel, GIMP_EXPORT_CANCEL is returned and the
save_plugin should quit itself with status <span class="type">GIMP_PDB_CANCEL</span>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> Pointer to the image_ID.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> Pointer to the drawable_ID.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>format_name</tt></i><EFBFBD>:</span></td><td> The (short) name of the image_format (e.g. JPEG or GIF).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>capabilities</tt></i><EFBFBD>:</span></td><td> What can the image_format do?
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> An enum of <a href="libgimp-gimpexport.html#GimpExportReturn"><span class="type">GimpExportReturn</span></a> describing the user_action.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpui.html"><b>&lt;&lt;<EFBFBD>gimpui</b></a></td><td align="right"><a accesskey="n" href="GimpAspectPreview.html"><b>GimpAspectPreview<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,145 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpfileops</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpedit.html" title="gimpedit"><link rel="next" href="libgimp-gimpfloatingsel.html" title="gimpfloatingsel"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpedit.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpfloatingsel.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpfileops"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpfileops</span></h2><p>gimpfileops &#8212; File operations (load, save, etc.)</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gchar* <a href="libgimp-gimpfileops.html#gimp-temp-name">gimp_temp_name</a> (const gchar *extension);
gint32 <a href="libgimp-gimpfileops.html#gimp-file-load">gimp_file_load</a> (<a href="libgimp-gimpenums.html#GimpRunMode">GimpRunMode</a> run_mode,
const gchar *filename,
const gchar *raw_filename);
gboolean <a href="libgimp-gimpfileops.html#gimp-file-save">gimp_file_save</a> (<a href="libgimp-gimpenums.html#GimpRunMode">GimpRunMode</a> run_mode,
gint32 image_ID,
gint32 drawable_ID,
const gchar *filename,
const gchar *raw_filename);
gboolean <a href="libgimp-gimpfileops.html#gimp-register-magic-load-handler">gimp_register_magic_load_handler</a>
(const gchar *procedure_name,
const gchar *extensions,
const gchar *prefixes,
const gchar *magics);
gboolean <a href="libgimp-gimpfileops.html#gimp-register-load-handler">gimp_register_load_handler</a> (const gchar *procedure_name,
const gchar *extensions,
const gchar *prefixes);
gboolean <a href="libgimp-gimpfileops.html#gimp-register-save-handler">gimp_register_save_handler</a> (const gchar *procedure_name,
const gchar *extensions,
const gchar *prefixes);
gboolean <a href="libgimp-gimpfileops.html#gimp-register-file-handler-mime">gimp_register_file_handler_mime</a> (const gchar *procedure_name,
const gchar *mime_type);
gboolean <a href="libgimp-gimpfileops.html#gimp-register-thumbnail-loader">gimp_register_thumbnail_loader</a> (const gchar *load_proc,
const gchar *thumb_proc);
</pre></div><div class="refsect1" lang="en"><a name="id2593153"></a><h2>Description</h2><p>
File operations (load, save, etc.)
</p></div><div class="refsect1" lang="en"><a name="id2593163"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2593168"></a><h3><a name="gimp-temp-name"></a>gimp_temp_name ()</h3><a class="indexterm" name="id2593176"></a><pre class="programlisting">gchar* gimp_temp_name (const gchar *extension);</pre><p>
Generates a unique filename.
</p><p>
Generates a unique filename using the temp path supplied in the
user's gimprc.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>extension</tt></i><EFBFBD>:</span></td><td> The extension the file will have.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The new temp filename.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2598982"></a><h3><a name="gimp-file-load"></a>gimp_file_load ()</h3><a class="indexterm" name="id2598990"></a><pre class="programlisting">gint32 gimp_file_load (<a href="libgimp-gimpenums.html#GimpRunMode">GimpRunMode</a> run_mode,
const gchar *filename,
const gchar *raw_filename);</pre><p>
Loads a file by invoking the right load handler.
</p><p>
This procedure invokes the correct file load handler using magic if
possible, and falling back on the file's extension and/or prefix if
not. The name of the file to load is typically a full pathname, and
the name entered is what the user actually typed before prepending a
directory path. The reason for this is that if the user types
http://www.xcf/~gimp/ he wants to fetch a URL, and the full pathname
will not look like a URL.\"</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>run_mode</tt></i><EFBFBD>:</span></td><td> The run mode.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>filename</tt></i><EFBFBD>:</span></td><td> The name of the file to load.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>raw_filename</tt></i><EFBFBD>:</span></td><td> The name as entered by the user.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The output image.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2599083"></a><h3><a name="gimp-file-save"></a>gimp_file_save ()</h3><a class="indexterm" name="id2599092"></a><pre class="programlisting">gboolean gimp_file_save (<a href="libgimp-gimpenums.html#GimpRunMode">GimpRunMode</a> run_mode,
gint32 image_ID,
gint32 drawable_ID,
const gchar *filename,
const gchar *raw_filename);</pre><p>
Saves a file by extension.
</p><p>
This procedure invokes the correct file save handler according to
the file's extension and/or prefix. The name of the file to save is
typically a full pathname, and the name entered is what the user
actually typed before prepending a directory path. The reason for
this is that if the user types http://www.xcf/~gimp/ she wants to
fetch a URL, and the full pathname will not look like a URL.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>run_mode</tt></i><EFBFBD>:</span></td><td> The run mode.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> Input image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> Drawable to save.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>filename</tt></i><EFBFBD>:</span></td><td> The name of the file to save the image in.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>raw_filename</tt></i><EFBFBD>:</span></td><td> The name as entered by the user.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2599218"></a><h3><a name="gimp-register-magic-load-handler"></a>gimp_register_magic_load_handler ()</h3><a class="indexterm" name="id2599230"></a><pre class="programlisting">gboolean gimp_register_magic_load_handler
(const gchar *procedure_name,
const gchar *extensions,
const gchar *prefixes,
const gchar *magics);</pre><p>
Registers a file load handler procedure.
</p><p>
Registers a procedural database procedure to be called to load files
of a particular file format using magic file information.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>procedure_name</tt></i><EFBFBD>:</span></td><td> The name of the procedure to be used for loading.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>extensions</tt></i><EFBFBD>:</span></td><td> comma separated list of extensions this handler can load (i.e. \"jpg,jpeg\").
</td></tr><tr><td><span class="term"><i class="parameter"><tt>prefixes</tt></i><EFBFBD>:</span></td><td> comma separated list of prefixes this handler can load (i.e. \"http:,ftp:\").
</td></tr><tr><td><span class="term"><i class="parameter"><tt>magics</tt></i><EFBFBD>:</span></td><td> comma separated list of magic file information this handler can load (i.e. \"0,string,GIF\").
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2599964"></a><h3><a name="gimp-register-load-handler"></a>gimp_register_load_handler ()</h3><a class="indexterm" name="id2599974"></a><pre class="programlisting">gboolean gimp_register_load_handler (const gchar *procedure_name,
const gchar *extensions,
const gchar *prefixes);</pre><p>
Registers a file load handler procedure.
</p><p>
Registers a procedural database procedure to be called to load files
of a particular file format.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>procedure_name</tt></i><EFBFBD>:</span></td><td> The name of the procedure to be used for loading.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>extensions</tt></i><EFBFBD>:</span></td><td> comma separated list of extensions this handler can load (i.e. \"jpg,jpeg\").
</td></tr><tr><td><span class="term"><i class="parameter"><tt>prefixes</tt></i><EFBFBD>:</span></td><td> comma separated list of prefixes this handler can load (i.e. \"http:,ftp:\").
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2600063"></a><h3><a name="gimp-register-save-handler"></a>gimp_register_save_handler ()</h3><a class="indexterm" name="id2600072"></a><pre class="programlisting">gboolean gimp_register_save_handler (const gchar *procedure_name,
const gchar *extensions,
const gchar *prefixes);</pre><p>
Registers a file save handler procedure.
</p><p>
Registers a procedural database procedure to be called to save files
in a particular file format.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>procedure_name</tt></i><EFBFBD>:</span></td><td> The name of the procedure to be used for saving.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>extensions</tt></i><EFBFBD>:</span></td><td> comma separated list of extensions this handler can save (i.e. \"jpg,jpeg\").
</td></tr><tr><td><span class="term"><i class="parameter"><tt>prefixes</tt></i><EFBFBD>:</span></td><td> comma separated list of prefixes this handler can save (i.e. \"http:,ftp:\").
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2599515"></a><h3><a name="gimp-register-file-handler-mime"></a>gimp_register_file_handler_mime ()</h3><a class="indexterm" name="id2599525"></a><pre class="programlisting">gboolean gimp_register_file_handler_mime (const gchar *procedure_name,
const gchar *mime_type);</pre><p>
Associates a MIME type with a file handler procedure.
</p><p>
Registers a MIME type for a file handler procedure. This allows GIMP
to determine the MIME type of the file opened or saved using this
procedure.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>procedure_name</tt></i><EFBFBD>:</span></td><td> The name of the procedure to associate a MIME type with.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mime_type</tt></i><EFBFBD>:</span></td><td> A single MIME type, like for example \"image/jpeg\".
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2599604"></a><h3><a name="gimp-register-thumbnail-loader"></a>gimp_register_thumbnail_loader ()</h3><a class="indexterm" name="id2599615"></a><pre class="programlisting">gboolean gimp_register_thumbnail_loader (const gchar *load_proc,
const gchar *thumb_proc);</pre><p>
Associates a thumbnail loader with a file load procedure.
</p><p>
Some file formats allow for embedded thumbnails, other file formats
contain a scalable image or provide the image data in different
resolutions. A file plug-in for such a format may register a special
procedure that allows GIMP to load a thumbnail preview of the image.
This procedure is then associated with the standard load procedure
using this function.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>load_proc</tt></i><EFBFBD>:</span></td><td> The name of the procedure the thumbnail loader with.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>thumb_proc</tt></i><EFBFBD>:</span></td><td> The name of the thumbnail load procedure.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpedit.html"><b>&lt;&lt;<EFBFBD>gimpedit</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpfloatingsel.html"><b>gimpfloatingsel<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,78 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpfloatingsel</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpfileops.html" title="gimpfileops"><link rel="next" href="libgimp-gimpguides.html" title="gimpguides"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpfileops.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpguides.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpfloatingsel"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpfloatingsel</span></h2><p>gimpfloatingsel &#8212; Functions for removing or attaching floating selections.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimpfloatingsel.html#gimp-floating-sel-remove">gimp_floating_sel_remove</a> (gint32 floating_sel_ID);
gboolean <a href="libgimp-gimpfloatingsel.html#gimp-floating-sel-anchor">gimp_floating_sel_anchor</a> (gint32 floating_sel_ID);
gboolean <a href="libgimp-gimpfloatingsel.html#gimp-floating-sel-to-layer">gimp_floating_sel_to_layer</a> (gint32 floating_sel_ID);
gboolean <a href="libgimp-gimpfloatingsel.html#gimp-floating-sel-attach">gimp_floating_sel_attach</a> (gint32 layer_ID,
gint32 drawable_ID);
gboolean <a href="libgimp-gimpfloatingsel.html#gimp-floating-sel-rigor">gimp_floating_sel_rigor</a> (gint32 floating_sel_ID,
gboolean undo);
gboolean <a href="libgimp-gimpfloatingsel.html#gimp-floating-sel-relax">gimp_floating_sel_relax</a> (gint32 floating_sel_ID,
gboolean undo);
</pre></div><div class="refsect1" lang="en"><a name="id2601031"></a><h2>Description</h2><p>
Functions for removing or attaching floating selections.
</p></div><div class="refsect1" lang="en"><a name="id2601041"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2601047"></a><h3><a name="gimp-floating-sel-remove"></a>gimp_floating_sel_remove ()</h3><a class="indexterm" name="id2601055"></a><pre class="programlisting">gboolean gimp_floating_sel_remove (gint32 floating_sel_ID);</pre><p>
Remove the specified floating selection from its associated
drawable.
</p><p>
This procedure removes the floating selection completely, without
any side effects. The associated drawable is then set to active.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>floating_sel_ID</tt></i><EFBFBD>:</span></td><td> The floating selection.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2599729"></a><h3><a name="gimp-floating-sel-anchor"></a>gimp_floating_sel_anchor ()</h3><a class="indexterm" name="id2599737"></a><pre class="programlisting">gboolean gimp_floating_sel_anchor (gint32 floating_sel_ID);</pre><p>
Anchor the specified floating selection to its associated drawable.
</p><p>
This procedure anchors the floating selection to its associated
drawable. This is similar to merging with a merge type of
ClipToBottomLayer. The floating selection layer is no longer valid
after this operation.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>floating_sel_ID</tt></i><EFBFBD>:</span></td><td> The floating selection.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2599792"></a><h3><a name="gimp-floating-sel-to-layer"></a>gimp_floating_sel_to_layer ()</h3><a class="indexterm" name="id2599800"></a><pre class="programlisting">gboolean gimp_floating_sel_to_layer (gint32 floating_sel_ID);</pre><p>
Transforms the specified floating selection into a layer.
</p><p>
This procedure transforms the specified floating selection into a
layer with the same offsets and extents. The composited image will
look precisely the same, but the floating selection layer will no
longer be clipped to the extents of the drawable it was attached to.
The floating selection will become the active layer. This procedure
will not work if the floating selection has a different base type
from the underlying image. This might be the case if the floating
selection is above an auxillary channel or a layer mask.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>floating_sel_ID</tt></i><EFBFBD>:</span></td><td> The floating selection.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2574937"></a><h3><a name="gimp-floating-sel-attach"></a>gimp_floating_sel_attach ()</h3><a class="indexterm" name="id2579205"></a><pre class="programlisting">gboolean gimp_floating_sel_attach (gint32 layer_ID,
gint32 drawable_ID);</pre><p>
Attach the specified layer as floating to the specified drawable.
</p><p>
This procedure attaches the layer as floating selection to the
drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer (is attached as floating selection).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable (where to attach the floating selection).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2603415"></a><h3><a name="gimp-floating-sel-rigor"></a>gimp_floating_sel_rigor ()</h3><a class="indexterm" name="id2603422"></a><pre class="programlisting">gboolean gimp_floating_sel_rigor (gint32 floating_sel_ID,
gboolean undo);</pre><p>
Rigor the floating selection.
</p><p>
This procedure rigors the floating selection.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>floating_sel_ID</tt></i><EFBFBD>:</span></td><td> The floating selection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>undo</tt></i><EFBFBD>:</span></td><td> %<tt class="literal">desc</tt>%%.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2603489"></a><h3><a name="gimp-floating-sel-relax"></a>gimp_floating_sel_relax ()</h3><a class="indexterm" name="id2603496"></a><pre class="programlisting">gboolean gimp_floating_sel_relax (gint32 floating_sel_ID,
gboolean undo);</pre><p>
Relax the floating selection.
</p><p>
This procedure relaxes the floating selection.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>floating_sel_ID</tt></i><EFBFBD>:</span></td><td> The floating selection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>undo</tt></i><EFBFBD>:</span></td><td> %<tt class="literal">desc</tt>%%.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpfileops.html"><b>&lt;&lt;<EFBFBD>gimpfileops</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpguides.html"><b>gimpguides<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,40 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpfontmenu</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="libgimp-gimpbrushmenu.html" title="gimpbrushmenu"><link rel="next" href="libgimp-gimpgradientmenu.html" title="gimpgradientmenu"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpbrushmenu.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpgradientmenu.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpfontmenu"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpfontmenu</span></h2><p>gimpfontmenu &#8212; A widget for selecting fonts.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
GtkWidget* <a href="libgimp-gimpfontmenu.html#gimp-font-select-widget-new">gimp_font_select_widget_new</a> (const gchar *title,
const gchar *font_name,
<a href="libgimp-gimpfontselect.html#GimpRunFontCallback">GimpRunFontCallback</a> callback,
gpointer data);
void <a href="libgimp-gimpfontmenu.html#gimp-font-select-widget-close">gimp_font_select_widget_close</a> (GtkWidget *widget);
void <a href="libgimp-gimpfontmenu.html#gimp-font-select-widget-set">gimp_font_select_widget_set</a> (GtkWidget *widget,
const gchar *font_name);
</pre></div><div class="refsect1" lang="en"><a name="id2671123"></a><h2>Description</h2><p>
A widget for selecting fonts.
</p></div><div class="refsect1" lang="en"><a name="id2671132"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2671138"></a><h3><a name="gimp-font-select-widget-new"></a>gimp_font_select_widget_new ()</h3><a class="indexterm" name="id2671146"></a><pre class="programlisting">GtkWidget* gimp_font_select_widget_new (const gchar *title,
const gchar *font_name,
<a href="libgimp-gimpfontselect.html#GimpRunFontCallback">GimpRunFontCallback</a> callback,
gpointer data);</pre><p>
Creates a new <span class="type">GtkWidget</span> that completely controls the selection of
a font. This widget is suitable for placement in a table in a
plug-in dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>title</tt></i><EFBFBD>:</span></td><td> Title of the dialog to use or <tt class="literal">NULL</tt> means to use the default
title.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>font_name</tt></i><EFBFBD>:</span></td><td> Initial font name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td> A function to call when the selected font changes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> A pointer to arbitary data to be used in the call to <i class="parameter"><tt>callback</tt></i>.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> A <span class="type">GtkWidget</span> that you can use in your UI.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2670765"></a><h3><a name="gimp-font-select-widget-close"></a>gimp_font_select_widget_close ()</h3><a class="indexterm" name="id2670773"></a><pre class="programlisting">void gimp_font_select_widget_close (GtkWidget *widget);</pre><p>
Closes the popup window associated with <i class="parameter"><tt>widget</tt></i>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i><EFBFBD>:</span></td><td> A font select widget.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2670814"></a><h3><a name="gimp-font-select-widget-set"></a>gimp_font_select_widget_set ()</h3><a class="indexterm" name="id2670822"></a><pre class="programlisting">void gimp_font_select_widget_set (GtkWidget *widget,
const gchar *font_name);</pre><p>
Sets the current font for the font select widget. Calls the
callback function if one was supplied in the call to
<a href="libgimp-gimpfontmenu.html#gimp-font-select-widget-new"><tt class="function">gimp_font_select_widget_new()</tt></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i><EFBFBD>:</span></td><td> A font select widget.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>font_name</tt></i><EFBFBD>:</span></td><td> Font name to set; <tt class="literal">NULL</tt> means no change.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpbrushmenu.html"><b>&lt;&lt;<EFBFBD>gimpbrushmenu</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpgradientmenu.html"><b>gimpgradientmenu<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,27 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpfonts</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-data.html" title="Data Objects"><link rel="prev" href="libgimp-gimpbrushes.html" title="gimpbrushes"><link rel="next" href="libgimp-gimpgradient.html" title="gimpgradient"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpbrushes.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-data.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpgradient.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpfonts"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpfonts</span></h2><p>gimpfonts &#8212; Operations related to fonts.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimpfonts.html#gimp-fonts-refresh">gimp_fonts_refresh</a> (void);
gchar** <a href="libgimp-gimpfonts.html#gimp-fonts-get-list">gimp_fonts_get_list</a> (const gchar *filter,
gint *num_fonts);
</pre></div><div class="refsect1" lang="en"><a name="id2641691"></a><h2>Description</h2><p>
</p></div><div class="refsect1" lang="en"><a name="id2552642"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2643269"></a><h3><a name="gimp-fonts-refresh"></a>gimp_fonts_refresh ()</h3><a class="indexterm" name="id2643276"></a><pre class="programlisting">gboolean gimp_fonts_refresh (void);</pre><p>
Refresh current fonts. This function always succeeds.
</p><p>
This procedure retrieves all fonts currently in the user's font path
and updates the font dialogs accordingly.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2646957"></a><h3><a name="gimp-fonts-get-list"></a>gimp_fonts_get_list ()</h3><a class="indexterm" name="id2646966"></a><pre class="programlisting">gchar** gimp_fonts_get_list (const gchar *filter,
gint *num_fonts);</pre><p>
Retrieve the list of loaded fonts.
</p><p>
This procedure returns a list of the fonts that are currently
available.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>filter</tt></i><EFBFBD>:</span></td><td> An optional regular expression used to filter the list.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_fonts</tt></i><EFBFBD>:</span></td><td> The number of available fonts.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The list of font names.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpbrushes.html"><b>&lt;&lt;<EFBFBD>gimpbrushes</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpgradient.html"><b>gimpgradient<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,74 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpfontselect</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="prev" href="libgimp-gimpbrushselect.html" title="gimpbrushselect"><link rel="next" href="libgimp-gimpgradientselect.html" title="gimpgradientselect"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpbrushselect.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-selectors.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpgradientselect.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpfontselect"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpfontselect</span></h2><p>gimpfontselect &#8212; Functions providing a font selection dialog.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
void (<a href="libgimp-gimpfontselect.html#GimpRunFontCallback">*GimpRunFontCallback</a>) (const gchar *font_name,
gboolean dialog_closing,
gpointer user_data);
const gchar* <a href="libgimp-gimpfontselect.html#gimp-font-select-new">gimp_font_select_new</a> (const gchar *title,
const gchar *font_name,
<a href="libgimp-gimpfontselect.html#GimpRunFontCallback">GimpRunFontCallback</a> callback,
gpointer data);
void <a href="libgimp-gimpfontselect.html#gimp-font-select-destroy">gimp_font_select_destroy</a> (const gchar *font_callback);
gboolean <a href="libgimp-gimpfontselect.html#gimp-fonts-popup">gimp_fonts_popup</a> (const gchar *font_callback,
const gchar *popup_title,
const gchar *initial_font);
gboolean <a href="libgimp-gimpfontselect.html#gimp-fonts-close-popup">gimp_fonts_close_popup</a> (const gchar *font_callback);
gboolean <a href="libgimp-gimpfontselect.html#gimp-fonts-set-popup">gimp_fonts_set_popup</a> (const gchar *font_callback,
const gchar *font_name);
</pre></div><div class="refsect1" lang="en"><a name="id2664345"></a><h2>Description</h2><p>
Functions providing a font selection dialog.
</p></div><div class="refsect1" lang="en"><a name="id2657016"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2657022"></a><h3><a name="GimpRunFontCallback"></a>GimpRunFontCallback ()</h3><a class="indexterm" name="id2657030"></a><pre class="programlisting">void (*GimpRunFontCallback) (const gchar *font_name,
gboolean dialog_closing,
gpointer user_data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>font_name</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dialog_closing</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2657099"></a><h3><a name="gimp-font-select-new"></a>gimp_font_select_new ()</h3><a class="indexterm" name="id2657107"></a><pre class="programlisting">const gchar* gimp_font_select_new (const gchar *title,
const gchar *font_name,
<a href="libgimp-gimpfontselect.html#GimpRunFontCallback">GimpRunFontCallback</a> callback,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>title</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>font_name</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2655380"></a><h3><a name="gimp-font-select-destroy"></a>gimp_font_select_destroy ()</h3><a class="indexterm" name="id2655388"></a><pre class="programlisting">void gimp_font_select_destroy (const gchar *font_callback);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>font_callback</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2655423"></a><h3><a name="gimp-fonts-popup"></a>gimp_fonts_popup ()</h3><a class="indexterm" name="id2655431"></a><pre class="programlisting">gboolean gimp_fonts_popup (const gchar *font_callback,
const gchar *popup_title,
const gchar *initial_font);</pre><p>
Invokes the Gimp font selection.
</p><p>
This procedure popups the font selection dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>font_callback</tt></i><EFBFBD>:</span></td><td> The callback PDB proc to call when font selection is made.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>popup_title</tt></i><EFBFBD>:</span></td><td> Title to give the font popup window.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>initial_font</tt></i><EFBFBD>:</span></td><td> The name of the font to set as the first selected.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2663101"></a><h3><a name="gimp-fonts-close-popup"></a>gimp_fonts_close_popup ()</h3><a class="indexterm" name="id2663109"></a><pre class="programlisting">gboolean gimp_fonts_close_popup (const gchar *font_callback);</pre><p>
Popdown the Gimp font selection.
</p><p>
This procedure closes an opened font selection dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>font_callback</tt></i><EFBFBD>:</span></td><td> The name of the callback registered for this popup.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2663161"></a><h3><a name="gimp-fonts-set-popup"></a>gimp_fonts_set_popup ()</h3><a class="indexterm" name="id2663170"></a><pre class="programlisting">gboolean gimp_fonts_set_popup (const gchar *font_callback,
const gchar *font_name);</pre><p>
Sets the current font selection in a popup.
</p><p>
Sets the current font selection in a popup.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>font_callback</tt></i><EFBFBD>:</span></td><td> The name of the callback registered for this popup.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>font_name</tt></i><EFBFBD>:</span></td><td> The name of the font to set as selected.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpbrushselect.html"><b>&lt;&lt;<EFBFBD>gimpbrushselect</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpgradientselect.html"><b>gimpgradientselect<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,74 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpgimprc</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="prev" href="libgimp-gimpcontext.html" title="gimpcontext"><link rel="next" href="libgimp-gimphelp.html" title="gimphelp"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpcontext.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimphelp.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpgimprc"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpgimprc</span></h2><p>gimpgimprc &#8212; Interactions with settings from .gimprc.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gchar* <a href="libgimp-gimpgimprc.html#gimp-gimprc-query">gimp_gimprc_query</a> (const gchar *token);
gboolean <a href="libgimp-gimpgimprc.html#gimp-gimprc-set">gimp_gimprc_set</a> (const gchar *token,
const gchar *value);
gchar* <a href="libgimp-gimpgimprc.html#gimp-get-default-comment">gimp_get_default_comment</a> (void);
gchar* <a href="libgimp-gimpgimprc.html#gimp-get-module-load-inhibit">gimp_get_module_load_inhibit</a> (void);
gboolean <a href="libgimp-gimpgimprc.html#gimp-get-monitor-resolution">gimp_get_monitor_resolution</a> (gdouble *xres,
gdouble *yres);
gchar* <a href="libgimp-gimpgimprc.html#gimp-get-theme-dir">gimp_get_theme_dir</a> (void);
</pre></div><div class="refsect1" lang="en"><a name="id2528106"></a><h2>Description</h2><p>
Interactions with settings from .gimprc.
</p></div><div class="refsect1" lang="en"><a name="id2528116"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2528121"></a><h3><a name="gimp-gimprc-query"></a>gimp_gimprc_query ()</h3><a class="indexterm" name="id2528130"></a><pre class="programlisting">gchar* gimp_gimprc_query (const gchar *token);</pre><p>
Queries the gimprc file parser for information on a specified token.
</p><p>
This procedure is used to locate additional information contained in
the gimprc file considered extraneous to the operation of the GIMP.
Plug-ins that need configuration information can expect it will be
stored in the user gimprc file and can use this procedure to
retrieve it. This query procedure will return the value associated
with the specified token. This corresponds _only_ to entries with
the format: (&lt;token&gt; &lt;value&gt;). The value must be a
string. Entries not corresponding to this format will cause warnings
to be issued on gimprc parsing and will not be queryable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>token</tt></i><EFBFBD>:</span></td><td> The token to query for.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The value associated with the queried token.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2531459"></a><h3><a name="gimp-gimprc-set"></a>gimp_gimprc_set ()</h3><a class="indexterm" name="id2536404"></a><pre class="programlisting">gboolean gimp_gimprc_set (const gchar *token,
const gchar *value);</pre><p>
Sets a gimprc token to a value and saves it in the gimprc.
</p><p>
This procedure is used to add or change additional information in
the gimprc file that is considered extraneous to the operation of
the GIMP. Plug-ins that need configuration information can use this
function to store it, and gimp_gimprc_query to retrieve it. This
will accept _only_ string values in UTF-8 encoding.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>token</tt></i><EFBFBD>:</span></td><td> The token to add or modify.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>value</tt></i><EFBFBD>:</span></td><td> The value to set the token to.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2545948"></a><h3><a name="gimp-get-default-comment"></a>gimp_get_default_comment ()</h3><a class="indexterm" name="id2545955"></a><pre class="programlisting">gchar* gimp_get_default_comment (void);</pre><p>
Get the default image comment as specified in the Preferences.
</p><p>
Returns a copy of the default image comment.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Default Image Comment.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2545988"></a><h3><a name="gimp-get-module-load-inhibit"></a>gimp_get_module_load_inhibit ()</h3><a class="indexterm" name="id2545996"></a><pre class="programlisting">gchar* gimp_get_module_load_inhibit (void);</pre><p>
Get the list of modules which should not be loaded.
</p><p>
Returns a copy of the list of modules which should not be loaded.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The list of modules.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2546030"></a><h3><a name="gimp-get-monitor-resolution"></a>gimp_get_monitor_resolution ()</h3><a class="indexterm" name="id2546038"></a><pre class="programlisting">gboolean gimp_get_monitor_resolution (gdouble *xres,
gdouble *yres);</pre><p>
Get the monitor resolution as specified in the Preferences.
</p><p>
Returns the resolution of the monitor in pixels/inch. This value is
taken from the Preferences (or the windowing system if this is set
in the Preferences) and there's no guarantee for the value to be
reasonable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>xres</tt></i><EFBFBD>:</span></td><td> X resolution.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>yres</tt></i><EFBFBD>:</span></td><td> Y resolution.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2577158"></a><h3><a name="gimp-get-theme-dir"></a>gimp_get_theme_dir ()</h3><a class="indexterm" name="id2577165"></a><pre class="programlisting">gchar* gimp_get_theme_dir (void);</pre><p>
Get the directory of the current GUI theme.
</p><p>
Returns a copy of the current GUI theme dir.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The GUI theme dir.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpcontext.html"><b>&lt;&lt;<EFBFBD>gimpcontext</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimphelp.html"><b>gimphelp<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,623 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpgradient</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-data.html" title="Data Objects"><link rel="prev" href="libgimp-gimpfonts.html" title="gimpfonts"><link rel="next" href="libgimp-gimpgradients.html" title="gimpgradients"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpfonts.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-data.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpgradients.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpgradient"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpgradient</span></h2><p>gimpgradient &#8212; Functions operating on a single gradient.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gchar* <a href="libgimp-gimpgradient.html#gimp-gradient-new">gimp_gradient_new</a> (const gchar *name);
gchar* <a href="libgimp-gimpgradient.html#gimp-gradient-duplicate">gimp_gradient_duplicate</a> (const gchar *name);
gchar* <a href="libgimp-gimpgradient.html#gimp-gradient-rename">gimp_gradient_rename</a> (const gchar *name,
const gchar *new_name);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-delete">gimp_gradient_delete</a> (const gchar *name);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-get-uniform-samples">gimp_gradient_get_uniform_samples</a>
(const gchar *name,
gint num_samples,
gboolean reverse,
gint *num_color_samples,
gdouble **color_samples);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-get-custom-samples">gimp_gradient_get_custom_samples</a>
(const gchar *name,
gint num_samples,
const gdouble *positions,
gboolean reverse,
gint *num_color_samples,
gdouble **color_samples);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-get-left-color">gimp_gradient_segment_get_left_color</a>
(const gchar *name,
gint segment,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
gdouble *opacity);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-set-left-color">gimp_gradient_segment_set_left_color</a>
(const gchar *name,
gint segment,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
gdouble opacity);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-get-right-color">gimp_gradient_segment_get_right_color</a>
(const gchar *name,
gint segment,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
gdouble *opacity);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-set-right-color">gimp_gradient_segment_set_right_color</a>
(const gchar *name,
gint segment,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
gdouble opacity);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-get-left-pos">gimp_gradient_segment_get_left_pos</a>
(const gchar *name,
gint segment,
gdouble *pos);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-set-left-pos">gimp_gradient_segment_set_left_pos</a>
(const gchar *name,
gint segment,
gdouble pos,
gdouble *final_pos);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-get-middle-pos">gimp_gradient_segment_get_middle_pos</a>
(const gchar *name,
gint segment,
gdouble *pos);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-set-middle-pos">gimp_gradient_segment_set_middle_pos</a>
(const gchar *name,
gint segment,
gdouble pos,
gdouble *final_pos);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-get-right-pos">gimp_gradient_segment_get_right_pos</a>
(const gchar *name,
gint segment,
gdouble *pos);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-set-right-pos">gimp_gradient_segment_set_right_pos</a>
(const gchar *name,
gint segment,
gdouble pos,
gdouble *final_pos);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-get-blending-function">gimp_gradient_segment_get_blending_function</a>
(const gchar *name,
gint segment,
<a href="libgimp-gimpenums.html#GimpGradientSegmentType">GimpGradientSegmentType</a> *blend_func);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-get-coloring-type">gimp_gradient_segment_get_coloring_type</a>
(const gchar *name,
gint segment,
<a href="libgimp-gimpenums.html#GimpGradientSegmentColor">GimpGradientSegmentColor</a> *coloring_type);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-range-set-blending-function">gimp_gradient_segment_range_set_blending_function</a>
(const gchar *name,
gint start_segment,
gint end_segment,
<a href="libgimp-gimpenums.html#GimpGradientSegmentType">GimpGradientSegmentType</a> blending_function);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-range-set-coloring-type">gimp_gradient_segment_range_set_coloring_type</a>
(const gchar *name,
gint start_segment,
gint end_segment,
<a href="libgimp-gimpenums.html#GimpGradientSegmentColor">GimpGradientSegmentColor</a> coloring_type);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-range-flip">gimp_gradient_segment_range_flip</a>
(const gchar *name,
gint start_segment,
gint end_segment);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-range-replicate">gimp_gradient_segment_range_replicate</a>
(const gchar *name,
gint start_segment,
gint end_segment,
gint replicate_times);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-range-split-midpoint">gimp_gradient_segment_range_split_midpoint</a>
(const gchar *name,
gint start_segment,
gint end_segment);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-range-split-uniform">gimp_gradient_segment_range_split_uniform</a>
(const gchar *name,
gint start_segment,
gint end_segment,
gint split_parts);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-range-delete">gimp_gradient_segment_range_delete</a>
(const gchar *name,
gint start_segment,
gint end_segment);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-range-redistribute-handles">gimp_gradient_segment_range_redistribute_handles</a>
(const gchar *name,
gint start_segment,
gint end_segment);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-range-blend-colors">gimp_gradient_segment_range_blend_colors</a>
(const gchar *name,
gint start_segment,
gint end_segment);
gboolean <a href="libgimp-gimpgradient.html#gimp-gradient-segment-range-blend-opacity">gimp_gradient_segment_range_blend_opacity</a>
(const gchar *name,
gint start_segment,
gint end_segment);
gdouble <a href="libgimp-gimpgradient.html#gimp-gradient-segment-range-move">gimp_gradient_segment_range_move</a>
(const gchar *name,
gint start_segment,
gint end_segment,
gdouble delta,
gboolean control_compress);
</pre></div><div class="refsect1" lang="en"><a name="id2657624"></a><h2>Description</h2><p>
Functions operating on a single gradient.
</p></div><div class="refsect1" lang="en"><a name="id2657635"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2657640"></a><h3><a name="gimp-gradient-new"></a>gimp_gradient_new ()</h3><a class="indexterm" name="id2657648"></a><pre class="programlisting">gchar* gimp_gradient_new (const gchar *name);</pre><p>
Creates a new gradient
</p><p>
This procedure creates a new, uninitialized gradient</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The requested name of the new gradient.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The actual new gradient name.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2657706"></a><h3><a name="gimp-gradient-duplicate"></a>gimp_gradient_duplicate ()</h3><a class="indexterm" name="id2657714"></a><pre class="programlisting">gchar* gimp_gradient_duplicate (const gchar *name);</pre><p>
Duplicates a gradient
</p><p>
This procedure creates an identical gradient by a different name</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The name of the gradient's copy.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2657771"></a><h3><a name="gimp-gradient-rename"></a>gimp_gradient_rename ()</h3><a class="indexterm" name="id2657779"></a><pre class="programlisting">gchar* gimp_gradient_rename (const gchar *name,
const gchar *new_name);</pre><p>
Rename a gradient
</p><p>
This procedure renames a gradient</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_name</tt></i><EFBFBD>:</span></td><td> The new name of the gradient.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The actual new name of the gradient.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2657853"></a><h3><a name="gimp-gradient-delete"></a>gimp_gradient_delete ()</h3><a class="indexterm" name="id2657861"></a><pre class="programlisting">gboolean gimp_gradient_delete (const gchar *name);</pre><p>
Deletes a gradient
</p><p>
This procedure deletes a gradient</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2620090"></a><h3><a name="gimp-gradient-get-uniform-samples"></a>gimp_gradient_get_uniform_samples ()</h3><a class="indexterm" name="id2657895"></a><pre class="programlisting">gboolean gimp_gradient_get_uniform_samples
(const gchar *name,
gint num_samples,
gboolean reverse,
gint *num_color_samples,
gdouble **color_samples);</pre><p>
Sample the specified in uniform parts.
</p><p>
This procedure samples the active gradient in the specified number
of uniform parts. It returns a list of floating-point values which
correspond to the RGBA values for each sample. The minimum number of
samples to take is 2, in which case the returned colors will
correspond to the { 0.0, 1.0 } positions in the gradient. For
example, if the number of samples is 3, the procedure will return
the colors at positions { 0.0, 0.5, 1.0 }.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_samples</tt></i><EFBFBD>:</span></td><td> The number of samples to take.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>reverse</tt></i><EFBFBD>:</span></td><td> Use the reverse gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_color_samples</tt></i><EFBFBD>:</span></td><td> Length of the color_samples array (4 * num_samples).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color_samples</tt></i><EFBFBD>:</span></td><td> Color samples: { R1, G1, B1, A1, ..., Rn, Gn, Bn, An }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2658021"></a><h3><a name="gimp-gradient-get-custom-samples"></a>gimp_gradient_get_custom_samples ()</h3><a class="indexterm" name="id2658028"></a><pre class="programlisting">gboolean gimp_gradient_get_custom_samples
(const gchar *name,
gint num_samples,
const gdouble *positions,
gboolean reverse,
gint *num_color_samples,
gdouble **color_samples);</pre><p>
Sample the spacified gradient in custom positions.
</p><p>
This procedure samples the active gradient in the specified number
of points. The procedure will sample the gradient in the specified
positions from the list. The left endpoint of the gradient
corresponds to position 0.0, and the right endpoint corresponds to
1.0. The procedure returns a list of floating-point values which
correspond to the RGBA values for each sample.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_samples</tt></i><EFBFBD>:</span></td><td> The number of samples to take.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>positions</tt></i><EFBFBD>:</span></td><td> The list of positions to sample along the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>reverse</tt></i><EFBFBD>:</span></td><td> Use the reverse gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_color_samples</tt></i><EFBFBD>:</span></td><td> Length of the color_samples array (4 * num_samples).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color_samples</tt></i><EFBFBD>:</span></td><td> Color samples: { R1, G1, B1, A1, ..., Rn, Gn, Bn, An }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2658171"></a><h3><a name="gimp-gradient-segment-get-left-color"></a>gimp_gradient_segment_get_left_color ()</h3><a class="indexterm" name="id2658178"></a><pre class="programlisting">gboolean gimp_gradient_segment_get_left_color
(const gchar *name,
gint segment,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
gdouble *opacity);</pre><p>
Retrieves the left endpoint color of the specified gradient and
segment
</p><p>
This procedure retrieves the left endpoint color of the specified
segment of the specified gradient.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segment</tt></i><EFBFBD>:</span></td><td> The index of the segment within the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The return color.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The opacity of the endpoint.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2658283"></a><h3><a name="gimp-gradient-segment-set-left-color"></a>gimp_gradient_segment_set_left_color ()</h3><a class="indexterm" name="id2658292"></a><pre class="programlisting">gboolean gimp_gradient_segment_set_left_color
(const gchar *name,
gint segment,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
gdouble opacity);</pre><p>
Retrieves the left endpoint color of the specified gradient and
segment
</p><p>
This procedure retrieves the left endpoint color of the specified
segment of the specified gradient.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segment</tt></i><EFBFBD>:</span></td><td> The index of the segment within the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The color to set.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The opacity to set for the endpoint.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2658402"></a><h3><a name="gimp-gradient-segment-get-right-color"></a>gimp_gradient_segment_get_right_color ()</h3><a class="indexterm" name="id2658411"></a><pre class="programlisting">gboolean gimp_gradient_segment_get_right_color
(const gchar *name,
gint segment,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
gdouble *opacity);</pre><p>
Retrieves the right endpoint color of the specified gradient and
segment
</p><p>
This procedure retrieves the right endpoint color of the specified
segment of the specified gradient.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segment</tt></i><EFBFBD>:</span></td><td> The index of the segment within the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The return color.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The opacity of the endpoint.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2658521"></a><h3><a name="gimp-gradient-segment-set-right-color"></a>gimp_gradient_segment_set_right_color ()</h3><a class="indexterm" name="id2658530"></a><pre class="programlisting">gboolean gimp_gradient_segment_set_right_color
(const gchar *name,
gint segment,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
gdouble opacity);</pre><p>
Retrieves the right endpoint color of the specified gradient and
segment
</p><p>
This procedure retrieves the right endpoint color of the specified
segment of the specified gradient.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segment</tt></i><EFBFBD>:</span></td><td> The index of the segment within the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The color to set.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The opacity to set for the endpoint.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2658640"></a><h3><a name="gimp-gradient-segment-get-left-pos"></a>gimp_gradient_segment_get_left_pos ()</h3><a class="indexterm" name="id2658649"></a><pre class="programlisting">gboolean gimp_gradient_segment_get_left_pos
(const gchar *name,
gint segment,
gdouble *pos);</pre><p>
Retrieves the left endpoint position of the specified gradient and
segment
</p><p>
This procedure retrieves the left endpoint position of the specified
segment of the specified gradient.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segment</tt></i><EFBFBD>:</span></td><td> The index of the segment within the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pos</tt></i><EFBFBD>:</span></td><td> The return position.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2658742"></a><h3><a name="gimp-gradient-segment-set-left-pos"></a>gimp_gradient_segment_set_left_pos ()</h3><a class="indexterm" name="id2658751"></a><pre class="programlisting">gboolean gimp_gradient_segment_set_left_pos
(const gchar *name,
gint segment,
gdouble pos,
gdouble *final_pos);</pre><p>
Sets the left endpoint position of the specified gradient and
segment
</p><p>
This procedure sets the left endpoint position of the specified
segment of the specified gradient. The final position will be
between the position of the middle point to the left to the middle
point of the current segement. This procedure returns the final
position.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segment</tt></i><EFBFBD>:</span></td><td> The index of the segment within the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pos</tt></i><EFBFBD>:</span></td><td> The position to set the guidepoint in.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>final_pos</tt></i><EFBFBD>:</span></td><td> The return position.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2658864"></a><h3><a name="gimp-gradient-segment-get-middle-pos"></a>gimp_gradient_segment_get_middle_pos ()</h3><a class="indexterm" name="id2658872"></a><pre class="programlisting">gboolean gimp_gradient_segment_get_middle_pos
(const gchar *name,
gint segment,
gdouble *pos);</pre><p>
Retrieves the middle point position of the specified gradient and
segment
</p><p>
This procedure retrieves the middle point position of the specified
segment of the specified gradient.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segment</tt></i><EFBFBD>:</span></td><td> The index of the segment within the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pos</tt></i><EFBFBD>:</span></td><td> The return position.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2658966"></a><h3><a name="gimp-gradient-segment-set-middle-pos"></a>gimp_gradient_segment_set_middle_pos ()</h3><a class="indexterm" name="id2658974"></a><pre class="programlisting">gboolean gimp_gradient_segment_set_middle_pos
(const gchar *name,
gint segment,
gdouble pos,
gdouble *final_pos);</pre><p>
Sets the middle point position of the specified gradient and segment
</p><p>
This procedure sets the middle point position of the specified
segment of the specified gradient. The final position will be
between the two endpoints of the segment. This procedure returns the
final position.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segment</tt></i><EFBFBD>:</span></td><td> The index of the segment within the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pos</tt></i><EFBFBD>:</span></td><td> The position to set the guidepoint in.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>final_pos</tt></i><EFBFBD>:</span></td><td> The return position.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2659086"></a><h3><a name="gimp-gradient-segment-get-right-pos"></a>gimp_gradient_segment_get_right_pos ()</h3><a class="indexterm" name="id2659095"></a><pre class="programlisting">gboolean gimp_gradient_segment_get_right_pos
(const gchar *name,
gint segment,
gdouble *pos);</pre><p>
Retrieves the right endpoint position of the specified gradient and
segment
</p><p>
This procedure retrieves the right endpoint position of the
specified segment of the specified gradient.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segment</tt></i><EFBFBD>:</span></td><td> The index of the segment within the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pos</tt></i><EFBFBD>:</span></td><td> The return position.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2659188"></a><h3><a name="gimp-gradient-segment-set-right-pos"></a>gimp_gradient_segment_set_right_pos ()</h3><a class="indexterm" name="id2659197"></a><pre class="programlisting">gboolean gimp_gradient_segment_set_right_pos
(const gchar *name,
gint segment,
gdouble pos,
gdouble *final_pos);</pre><p>
Sets the right endpoint position of the specified gradient and
segment
</p><p>
This procedure sets the right endpoint position of the specified
segment of the specified gradient. The final position will be
between the position of the middle point of the current segment and
the middle point of the segment to the right. This procedure returns
the final position.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segment</tt></i><EFBFBD>:</span></td><td> The index of the segment within the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pos</tt></i><EFBFBD>:</span></td><td> The position to set the guidepoint in.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>final_pos</tt></i><EFBFBD>:</span></td><td> The return position.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2659310"></a><h3><a name="gimp-gradient-segment-get-blending-function"></a>gimp_gradient_segment_get_blending_function ()</h3><a class="indexterm" name="id2659319"></a><pre class="programlisting">gboolean gimp_gradient_segment_get_blending_function
(const gchar *name,
gint segment,
<a href="libgimp-gimpenums.html#GimpGradientSegmentType">GimpGradientSegmentType</a> *blend_func);</pre><p>
Retrieves the gradient segment's blending function
</p><p>
This procedure retrieves the blending function of the segment at the
specified gradient name and segment index.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segment</tt></i><EFBFBD>:</span></td><td> The index of the segment within the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>blend_func</tt></i><EFBFBD>:</span></td><td> The blending function of the segment.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2659413"></a><h3><a name="gimp-gradient-segment-get-coloring-type"></a>gimp_gradient_segment_get_coloring_type ()</h3><a class="indexterm" name="id2659424"></a><pre class="programlisting">gboolean gimp_gradient_segment_get_coloring_type
(const gchar *name,
gint segment,
<a href="libgimp-gimpenums.html#GimpGradientSegmentColor">GimpGradientSegmentColor</a> *coloring_type);</pre><p>
Retrieves the gradient segment's coloring type
</p><p>
This procedure retrieves the coloring type of the segment at the
specified gradient name and segment index.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segment</tt></i><EFBFBD>:</span></td><td> The index of the segment within the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coloring_type</tt></i><EFBFBD>:</span></td><td> The coloring type of the segment.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2659519"></a><h3><a name="gimp-gradient-segment-range-set-blending-function"></a>gimp_gradient_segment_range_set_blending_function ()</h3><a class="indexterm" name="id2659532"></a><pre class="programlisting">gboolean gimp_gradient_segment_range_set_blending_function
(const gchar *name,
gint start_segment,
gint end_segment,
<a href="libgimp-gimpenums.html#GimpGradientSegmentType">GimpGradientSegmentType</a> blending_function);</pre><p>
Change the blending function of a segments range
</p><p>
This function changes the blending function of a segment range to
the specified blending function.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start_segment</tt></i><EFBFBD>:</span></td><td> The index of the first segment to operate on.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_segment</tt></i><EFBFBD>:</span></td><td> The index of the last segment to operate on. If negative, the selection will extend to the end of the string.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>blending_function</tt></i><EFBFBD>:</span></td><td> The Blending Function.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2659645"></a><h3><a name="gimp-gradient-segment-range-set-coloring-type"></a>gimp_gradient_segment_range_set_coloring_type ()</h3><a class="indexterm" name="id2659657"></a><pre class="programlisting">gboolean gimp_gradient_segment_range_set_coloring_type
(const gchar *name,
gint start_segment,
gint end_segment,
<a href="libgimp-gimpenums.html#GimpGradientSegmentColor">GimpGradientSegmentColor</a> coloring_type);</pre><p>
Change the coloring type of a segments range
</p><p>
This function changes the coloring type of a segment range to the
specified coloring type.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start_segment</tt></i><EFBFBD>:</span></td><td> The index of the first segment to operate on.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_segment</tt></i><EFBFBD>:</span></td><td> The index of the last segment to operate on. If negative, the selection will extend to the end of the string.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>coloring_type</tt></i><EFBFBD>:</span></td><td> The Coloring Type.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2659770"></a><h3><a name="gimp-gradient-segment-range-flip"></a>gimp_gradient_segment_range_flip ()</h3><a class="indexterm" name="id2659781"></a><pre class="programlisting">gboolean gimp_gradient_segment_range_flip
(const gchar *name,
gint start_segment,
gint end_segment);</pre><p>
Flip the segment range
</p><p>
This function flips a segment range.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start_segment</tt></i><EFBFBD>:</span></td><td> The index of the first segment to operate on.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_segment</tt></i><EFBFBD>:</span></td><td> The index of the last segment to operate on. If negative, the selection will extend to the end of the string.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2659875"></a><h3><a name="gimp-gradient-segment-range-replicate"></a>gimp_gradient_segment_range_replicate ()</h3><a class="indexterm" name="id2659886"></a><pre class="programlisting">gboolean gimp_gradient_segment_range_replicate
(const gchar *name,
gint start_segment,
gint end_segment,
gint replicate_times);</pre><p>
Replicate the segment range
</p><p>
This function replicates a segment range a given number of times.
Instead of the original segment range, several smaller scaled copies
of it will appear in equal widths.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start_segment</tt></i><EFBFBD>:</span></td><td> The index of the first segment to operate on.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_segment</tt></i><EFBFBD>:</span></td><td> The index of the last segment to operate on. If negative, the selection will extend to the end of the string.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>replicate_times</tt></i><EFBFBD>:</span></td><td> The number of times to replicate.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2660001"></a><h3><a name="gimp-gradient-segment-range-split-midpoint"></a>gimp_gradient_segment_range_split_midpoint ()</h3><a class="indexterm" name="id2660013"></a><pre class="programlisting">gboolean gimp_gradient_segment_range_split_midpoint
(const gchar *name,
gint start_segment,
gint end_segment);</pre><p>
Splits each segment in the segment range at midpoint
</p><p>
This function splits each segment in the segment range at its
midpoint.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start_segment</tt></i><EFBFBD>:</span></td><td> The index of the first segment to operate on.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_segment</tt></i><EFBFBD>:</span></td><td> The index of the last segment to operate on. If negative, the selection will extend to the end of the string.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2660108"></a><h3><a name="gimp-gradient-segment-range-split-uniform"></a>gimp_gradient_segment_range_split_uniform ()</h3><a class="indexterm" name="id2660121"></a><pre class="programlisting">gboolean gimp_gradient_segment_range_split_uniform
(const gchar *name,
gint start_segment,
gint end_segment,
gint split_parts);</pre><p>
Splits each segment in the segment range uniformly
</p><p>
This function splits each segment in the segment range uniformly
according to the number of times specified by the parameter.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start_segment</tt></i><EFBFBD>:</span></td><td> The index of the first segment to operate on.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_segment</tt></i><EFBFBD>:</span></td><td> The index of the last segment to operate on. If negative, the selection will extend to the end of the string.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>split_parts</tt></i><EFBFBD>:</span></td><td> The number of uniform divisions to split each segment to.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2660235"></a><h3><a name="gimp-gradient-segment-range-delete"></a>gimp_gradient_segment_range_delete ()</h3><a class="indexterm" name="id2660247"></a><pre class="programlisting">gboolean gimp_gradient_segment_range_delete
(const gchar *name,
gint start_segment,
gint end_segment);</pre><p>
Delete the segment range
</p><p>
This function deletes a segment range.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start_segment</tt></i><EFBFBD>:</span></td><td> The index of the first segment to operate on.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_segment</tt></i><EFBFBD>:</span></td><td> The index of the last segment to operate on. If negative, the selection will extend to the end of the string.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2660340"></a><h3><a name="gimp-gradient-segment-range-redistribute-handles"></a>gimp_gradient_segment_range_redistribute_handles ()</h3><a class="indexterm" name="id2660352"></a><pre class="programlisting">gboolean gimp_gradient_segment_range_redistribute_handles
(const gchar *name,
gint start_segment,
gint end_segment);</pre><p>
Uniformly redistribute the segment range's handles
</p><p>
This function redistributes the handles of the specified segment
range of the specified gradient, so they'll be evenly spaced.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start_segment</tt></i><EFBFBD>:</span></td><td> The index of the first segment to operate on.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_segment</tt></i><EFBFBD>:</span></td><td> The index of the last segment to operate on. If negative, the selection will extend to the end of the string.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2660449"></a><h3><a name="gimp-gradient-segment-range-blend-colors"></a>gimp_gradient_segment_range_blend_colors ()</h3><a class="indexterm" name="id2660460"></a><pre class="programlisting">gboolean gimp_gradient_segment_range_blend_colors
(const gchar *name,
gint start_segment,
gint end_segment);</pre><p>
Blend the colors of the segment range.
</p><p>
This function blends the colors (but not the opacity) of the
segments' range of the gradient. Using it, the colors' transition
will be uniform across the range.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start_segment</tt></i><EFBFBD>:</span></td><td> The index of the first segment to operate on.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_segment</tt></i><EFBFBD>:</span></td><td> The index of the last segment to operate on. If negative, the selection will extend to the end of the string.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2660557"></a><h3><a name="gimp-gradient-segment-range-blend-opacity"></a>gimp_gradient_segment_range_blend_opacity ()</h3><a class="indexterm" name="id2660570"></a><pre class="programlisting">gboolean gimp_gradient_segment_range_blend_opacity
(const gchar *name,
gint start_segment,
gint end_segment);</pre><p>
Blend the opacity of the segment range.
</p><p>
This function blends the opacity (but not the colors) of the
segments' range of the gradient. Using it, the opacity's transition
will be uniform across the range.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start_segment</tt></i><EFBFBD>:</span></td><td> The index of the first segment to operate on.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_segment</tt></i><EFBFBD>:</span></td><td> The index of the last segment to operate on. If negative, the selection will extend to the end of the string.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2660666"></a><h3><a name="gimp-gradient-segment-range-move"></a>gimp_gradient_segment_range_move ()</h3><a class="indexterm" name="id2660677"></a><pre class="programlisting">gdouble gimp_gradient_segment_range_move
(const gchar *name,
gint start_segment,
gint end_segment,
gdouble delta,
gboolean control_compress);</pre><p>
Move the position of an entire segment range by a delta.
</p><p>
This funtions moves the position of an entire segment range by a
delta. The actual delta (which is returned) will be limited by the
control points of the neighboring segments.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start_segment</tt></i><EFBFBD>:</span></td><td> The index of the first segment to operate on.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_segment</tt></i><EFBFBD>:</span></td><td> The index of the last segment to operate on. If negative, the selection will extend to the end of the string.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>delta</tt></i><EFBFBD>:</span></td><td> The delta to move the segment range.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>control_compress</tt></i><EFBFBD>:</span></td><td> Whether or not to compress the neighboring segments.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The final delta by which the range moved.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpfonts.html"><b>&lt;&lt;<EFBFBD>gimpfonts</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpgradients.html"><b>gimpgradients<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,42 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpgradientmenu</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="libgimp-gimpfontmenu.html" title="gimpfontmenu"><link rel="next" href="libgimp-gimppalettemenu.html" title="gimppalettemenu"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpfontmenu.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimppalettemenu.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpgradientmenu"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpgradientmenu</span></h2><p>gimpgradientmenu &#8212; A widget for selecting gradients.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
GtkWidget* <a href="libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-new">gimp_gradient_select_widget_new</a> (const gchar *title,
const gchar *gradient_name,
<a href="libgimp-gimpgradientselect.html#GimpRunGradientCallback">GimpRunGradientCallback</a> callback,
gpointer data);
void <a href="libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-close">gimp_gradient_select_widget_close</a>
(GtkWidget *widget);
void <a href="libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-set">gimp_gradient_select_widget_set</a> (GtkWidget *widget,
const gchar *gradient_name);
</pre></div><div class="refsect1" lang="en"><a name="id2672130"></a><h2>Description</h2><p>
A widget for selecting gradients.
</p></div><div class="refsect1" lang="en"><a name="id2668787"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2668792"></a><h3><a name="gimp-gradient-select-widget-new"></a>gimp_gradient_select_widget_new ()</h3><a class="indexterm" name="id2668800"></a><pre class="programlisting">GtkWidget* gimp_gradient_select_widget_new (const gchar *title,
const gchar *gradient_name,
<a href="libgimp-gimpgradientselect.html#GimpRunGradientCallback">GimpRunGradientCallback</a> callback,
gpointer data);</pre><p>
Creates a new <span class="type">GtkWidget</span> that completely controls the selection of
a gradient. This widget is suitable for placement in a table in a
plug-in dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>title</tt></i><EFBFBD>:</span></td><td> Title of the dialog to use or <tt class="literal">NULL</tt> to use the default title.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>gradient_name</tt></i><EFBFBD>:</span></td><td> Initial gradient name or <tt class="literal">NULL</tt> to use current selection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td> A function to call when the selected gradient changes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> A pointer to arbitary data to be used in the call to
<i class="parameter"><tt>callback</tt></i>.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> A <span class="type">GtkWidget</span> that you can use in your UI.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2672349"></a><h3><a name="gimp-gradient-select-widget-close"></a>gimp_gradient_select_widget_close ()</h3><a class="indexterm" name="id2672357"></a><pre class="programlisting">void gimp_gradient_select_widget_close
(GtkWidget *widget);</pre><p>
Closes the popup window associated with <i class="parameter"><tt>widget</tt></i>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i><EFBFBD>:</span></td><td> A gradient select widget.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2672399"></a><h3><a name="gimp-gradient-select-widget-set"></a>gimp_gradient_select_widget_set ()</h3><a class="indexterm" name="id2672407"></a><pre class="programlisting">void gimp_gradient_select_widget_set (GtkWidget *widget,
const gchar *gradient_name);</pre><p>
Sets the current gradient for the gradient select widget. Calls
the callback function if one was supplied in the call to
<a href="libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-new"><tt class="function">gimp_gradient_select_widget_new()</tt></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i><EFBFBD>:</span></td><td> A gradient select widget.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>gradient_name</tt></i><EFBFBD>:</span></td><td> Gradient name to set.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpfontmenu.html"><b>&lt;&lt;<EFBFBD>gimpfontmenu</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimppalettemenu.html"><b>gimppalettemenu<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,84 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpgradients</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-data.html" title="Data Objects"><link rel="prev" href="libgimp-gimpgradient.html" title="gimpgradient"><link rel="next" href="libgimp-gimppalette.html" title="gimppalette"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpgradient.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-data.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimppalette.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpgradients"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpgradients</span></h2><p>gimpgradients &#8212; Operations related to gradients.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimpgradients.html#gimp-gradients-refresh">gimp_gradients_refresh</a> (void);
gchar** <a href="libgimp-gimpgradients.html#gimp-gradients-get-list">gimp_gradients_get_list</a> (const gchar *filter,
gint *num_gradients);
gchar* <a href="libgimp-gimpgradients.html#gimp-gradients-get-gradient">gimp_gradients_get_gradient</a> (void);
gboolean <a href="libgimp-gimpgradients.html#gimp-gradients-set-gradient">gimp_gradients_set_gradient</a> (const gchar *name);
gdouble* <a href="libgimp-gimpgradients.html#gimp-gradients-sample-uniform">gimp_gradients_sample_uniform</a> (gint num_samples,
gboolean reverse);
gdouble* <a href="libgimp-gimpgradients.html#gimp-gradients-sample-custom">gimp_gradients_sample_custom</a> (gint num_samples,
const gdouble *positions,
gboolean reverse);
gchar* <a href="libgimp-gimpgradients.html#gimp-gradients-get-gradient-data">gimp_gradients_get_gradient_data</a>
(const gchar *name,
gint sample_size,
gboolean reverse,
gint *width,
gdouble **grad_data);
</pre></div><div class="refsect1" lang="en"><a name="id2647144"></a><h2>Description</h2><p>
Operations related to gradients.
</p></div><div class="refsect1" lang="en"><a name="id2647154"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2647159"></a><h3><a name="gimp-gradients-refresh"></a>gimp_gradients_refresh ()</h3><a class="indexterm" name="id2647168"></a><pre class="programlisting">gboolean gimp_gradients_refresh (void);</pre><p>
Refresh current gradients. This function always succeeds.
</p><p>
This procedure retrieves all gradients currently in the user's
gradient path and updates the gradient dialogs accordingly.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2652998"></a><h3><a name="gimp-gradients-get-list"></a>gimp_gradients_get_list ()</h3><a class="indexterm" name="id2653006"></a><pre class="programlisting">gchar** gimp_gradients_get_list (const gchar *filter,
gint *num_gradients);</pre><p>
Retrieve the list of loaded gradients.
</p><p>
This procedure returns a list of the gradients that are currently
loaded. You can later use the 'gimp_context_set_gradient' function
to set the active gradient.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>filter</tt></i><EFBFBD>:</span></td><td> An optional regular expression used to filter the list.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_gradients</tt></i><EFBFBD>:</span></td><td> The number of loaded gradients.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The list of gradient names.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2653078"></a><h3><a name="gimp-gradients-get-gradient"></a>gimp_gradients_get_gradient ()</h3><a class="indexterm" name="id2653086"></a><pre class="programlisting">gchar* gimp_gradients_get_gradient (void);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_gradients_get_gradient</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpcontext.html#gimp-context-get-gradient"><tt class="function">gimp_context_get_gradient()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The name of the active gradient.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2653134"></a><h3><a name="gimp-gradients-set-gradient"></a>gimp_gradients_set_gradient ()</h3><a class="indexterm" name="id2653142"></a><pre class="programlisting">gboolean gimp_gradients_set_gradient (const gchar *name);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_gradients_set_gradient</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpcontext.html#gimp-context-set-gradient"><tt class="function">gimp_context_set_gradient()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the gradient to set.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2653205"></a><h3><a name="gimp-gradients-sample-uniform"></a>gimp_gradients_sample_uniform ()</h3><a class="indexterm" name="id2653213"></a><pre class="programlisting">gdouble* gimp_gradients_sample_uniform (gint num_samples,
gboolean reverse);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_gradients_sample_uniform</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use
<a href="libgimp-gimpgradient.html#gimp-gradient-get-uniform-samples"><tt class="function">gimp_gradient_get_uniform_samples()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>num_samples</tt></i><EFBFBD>:</span></td><td> The number of samples to take.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>reverse</tt></i><EFBFBD>:</span></td><td> Use the reverse gradient.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Color samples: { R1, G1, B1, A1, ..., Rn, Gn, Bn, An }.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2632513"></a><h3><a name="gimp-gradients-sample-custom"></a>gimp_gradients_sample_custom ()</h3><a class="indexterm" name="id2632521"></a><pre class="programlisting">gdouble* gimp_gradients_sample_custom (gint num_samples,
const gdouble *positions,
gboolean reverse);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_gradients_sample_custom</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpgradient.html#gimp-gradient-get-custom-samples"><tt class="function">gimp_gradient_get_custom_samples()</tt></a>
instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>num_samples</tt></i><EFBFBD>:</span></td><td> The number of samples to take.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>positions</tt></i><EFBFBD>:</span></td><td> The list of positions to sample along the gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>reverse</tt></i><EFBFBD>:</span></td><td> Use the reverse gradient.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Color samples: { R1, G1, B1, A1, ..., Rn, Gn, Bn, An }.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2632621"></a><h3><a name="gimp-gradients-get-gradient-data"></a>gimp_gradients_get_gradient_data ()</h3><a class="indexterm" name="id2632629"></a><pre class="programlisting">gchar* gimp_gradients_get_gradient_data
(const gchar *name,
gint sample_size,
gboolean reverse,
gint *width,
gdouble **grad_data);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_gradients_get_gradient_data</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use
<a href="libgimp-gimpgradient.html#gimp-gradient-get-uniform-samples"><tt class="function">gimp_gradient_get_uniform_samples()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The gradient name (\"\" means current active gradient).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>sample_size</tt></i><EFBFBD>:</span></td><td> Size of the sample to return when the gradient is changed.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>reverse</tt></i><EFBFBD>:</span></td><td> Use the reverse gradient.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The gradient sample width (r,g,b,a).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>grad_data</tt></i><EFBFBD>:</span></td><td> The gradient sample data.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The gradient name.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpgradient.html"><b>&lt;&lt;<EFBFBD>gimpgradient</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimppalette.html"><b>gimppalette<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,86 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpgradientselect</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="prev" href="libgimp-gimpfontselect.html" title="gimpfontselect"><link rel="next" href="libgimp-gimppaletteselect.html" title="gimppaletteselect"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpfontselect.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-selectors.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimppaletteselect.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpgradientselect"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpgradientselect</span></h2><p>gimpgradientselect &#8212; Functions providing a gradient selection dialog.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
void (<a href="libgimp-gimpgradientselect.html#GimpRunGradientCallback">*GimpRunGradientCallback</a>) (const gchar *gradient_name,
gint width,
const gdouble *grad_data,
gboolean dialog_closing,
gpointer user_data);
const gchar* <a href="libgimp-gimpgradientselect.html#gimp-gradient-select-new">gimp_gradient_select_new</a> (const gchar *title,
const gchar *gradient_name,
gint sample_size,
<a href="libgimp-gimpgradientselect.html#GimpRunGradientCallback">GimpRunGradientCallback</a> callback,
gpointer data);
void <a href="libgimp-gimpgradientselect.html#gimp-gradient-select-destroy">gimp_gradient_select_destroy</a> (const gchar *gradient_callback);
gboolean <a href="libgimp-gimpgradientselect.html#gimp-gradients-popup">gimp_gradients_popup</a> (const gchar *gradient_callback,
const gchar *popup_title,
const gchar *initial_gradient,
gint sample_size);
gboolean <a href="libgimp-gimpgradientselect.html#gimp-gradients-close-popup">gimp_gradients_close_popup</a> (const gchar *gradient_callback);
gboolean <a href="libgimp-gimpgradientselect.html#gimp-gradients-set-popup">gimp_gradients_set_popup</a> (const gchar *gradient_callback,
const gchar *gradient_name);
</pre></div><div class="refsect1" lang="en"><a name="id2663404"></a><h2>Description</h2><p>
Functions providing a gradient selection dialog.
</p></div><div class="refsect1" lang="en"><a name="id2663414"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2663420"></a><h3><a name="GimpRunGradientCallback"></a>GimpRunGradientCallback ()</h3><a class="indexterm" name="id2663428"></a><pre class="programlisting">void (*GimpRunGradientCallback) (const gchar *gradient_name,
gint width,
const gdouble *grad_data,
gboolean dialog_closing,
gpointer user_data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>gradient_name</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>grad_data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dialog_closing</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2664541"></a><h3><a name="gimp-gradient-select-new"></a>gimp_gradient_select_new ()</h3><a class="indexterm" name="id2664550"></a><pre class="programlisting">const gchar* gimp_gradient_select_new (const gchar *title,
const gchar *gradient_name,
gint sample_size,
<a href="libgimp-gimpgradientselect.html#GimpRunGradientCallback">GimpRunGradientCallback</a> callback,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>title</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>gradient_name</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>sample_size</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2664662"></a><h3><a name="gimp-gradient-select-destroy"></a>gimp_gradient_select_destroy ()</h3><a class="indexterm" name="id2664670"></a><pre class="programlisting">void gimp_gradient_select_destroy (const gchar *gradient_callback);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>gradient_callback</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2664705"></a><h3><a name="gimp-gradients-popup"></a>gimp_gradients_popup ()</h3><a class="indexterm" name="id2664713"></a><pre class="programlisting">gboolean gimp_gradients_popup (const gchar *gradient_callback,
const gchar *popup_title,
const gchar *initial_gradient,
gint sample_size);</pre><p>
Invokes the Gimp gradients selection.
</p><p>
This procedure popups the gradients selection dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>gradient_callback</tt></i><EFBFBD>:</span></td><td> The callback PDB proc to call when gradient selection is made.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>popup_title</tt></i><EFBFBD>:</span></td><td> Title to give the gradient popup window.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>initial_gradient</tt></i><EFBFBD>:</span></td><td> The name of the pattern to set as the first selected.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>sample_size</tt></i><EFBFBD>:</span></td><td> Size of the sample to return when the gradient is changed.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2663975"></a><h3><a name="gimp-gradients-close-popup"></a>gimp_gradients_close_popup ()</h3><a class="indexterm" name="id2663983"></a><pre class="programlisting">gboolean gimp_gradients_close_popup (const gchar *gradient_callback);</pre><p>
Popdown the Gimp gradient selection.
</p><p>
This procedure closes an opened gradient selection dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>gradient_callback</tt></i><EFBFBD>:</span></td><td> The name of the callback registered for this popup.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2664036"></a><h3><a name="gimp-gradients-set-popup"></a>gimp_gradients_set_popup ()</h3><a class="indexterm" name="id2664044"></a><pre class="programlisting">gboolean gimp_gradients_set_popup (const gchar *gradient_callback,
const gchar *gradient_name);</pre><p>
Sets the current gradient selection in a popup.
</p><p>
Sets the current gradient selection in a popup.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>gradient_callback</tt></i><EFBFBD>:</span></td><td> The name of the callback registered for this popup.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>gradient_name</tt></i><EFBFBD>:</span></td><td> The name of the gradient to set as selected.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpfontselect.html"><b>&lt;&lt;<EFBFBD>gimpfontselect</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimppaletteselect.html"><b>gimppaletteselect<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,87 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpguides</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpfloatingsel.html" title="gimpfloatingsel"><link rel="next" href="libgimp-gimpimage.html" title="gimpimage"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpfloatingsel.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpimage.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpguides"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpguides</span></h2><p>gimpguides &#8212; Functions for manipulating guides.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gint32 <a href="libgimp-gimpguides.html#gimp-image-add-hguide">gimp_image_add_hguide</a> (gint32 image_ID,
gint yposition);
gint32 <a href="libgimp-gimpguides.html#gimp-image-add-vguide">gimp_image_add_vguide</a> (gint32 image_ID,
gint xposition);
gboolean <a href="libgimp-gimpguides.html#gimp-image-delete-guide">gimp_image_delete_guide</a> (gint32 image_ID,
gint32 guide_ID);
gint32 <a href="libgimp-gimpguides.html#gimp-image-find-next-guide">gimp_image_find_next_guide</a> (gint32 image_ID,
gint32 guide_ID);
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> <a href="libgimp-gimpguides.html#gimp-image-get-guide-orientation">gimp_image_get_guide_orientation</a>
(gint32 image_ID,
gint32 guide_ID);
gint <a href="libgimp-gimpguides.html#gimp-image-get-guide-position">gimp_image_get_guide_position</a> (gint32 image_ID,
gint32 guide_ID);
</pre></div><div class="refsect1" lang="en"><a name="id2602234"></a><h2>Description</h2><p>
Functions for manipulating guides.
</p></div><div class="refsect1" lang="en"><a name="id2602244"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2602249"></a><h3><a name="gimp-image-add-hguide"></a>gimp_image_add_hguide ()</h3><a class="indexterm" name="id2602258"></a><pre class="programlisting">gint32 gimp_image_add_hguide (gint32 image_ID,
gint yposition);</pre><p>
Add a horizontal guide to an image.
</p><p>
This procedure adds a horizontal guide to an image. It takes the
input image and the y-position of the new guide as parameters. It
returns the guide ID of the new guide.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>yposition</tt></i><EFBFBD>:</span></td><td> The guide's y-offset from top of image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The new guide.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2600615"></a><h3><a name="gimp-image-add-vguide"></a>gimp_image_add_vguide ()</h3><a class="indexterm" name="id2600623"></a><pre class="programlisting">gint32 gimp_image_add_vguide (gint32 image_ID,
gint xposition);</pre><p>
Add a vertical guide to an image.
</p><p>
This procedure adds a vertical guide to an image. It takes the input
image and the x-position of the new guide as parameters. It returns
the guide ID of the new guide.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>xposition</tt></i><EFBFBD>:</span></td><td> The guide's x-offset from left of image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The new guide.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2603946"></a><h3><a name="gimp-image-delete-guide"></a>gimp_image_delete_guide ()</h3><a class="indexterm" name="id2603954"></a><pre class="programlisting">gboolean gimp_image_delete_guide (gint32 image_ID,
gint32 guide_ID);</pre><p>
Deletes a guide from an image.
</p><p>
This procedure takes an image and a guide ID as input and removes
the specified guide from the specified image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>guide_ID</tt></i><EFBFBD>:</span></td><td> The ID of the guide to be removed.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2604024"></a><h3><a name="gimp-image-find-next-guide"></a>gimp_image_find_next_guide ()</h3><a class="indexterm" name="id2604033"></a><pre class="programlisting">gint32 gimp_image_find_next_guide (gint32 image_ID,
gint32 guide_ID);</pre><p>
Find next guide on an image.
</p><p>
This procedure takes an image and a guide ID as input and finds the
guide ID of the successor of the given guide ID in the image's guide
list. If the supplied guide ID is 0, the procedure will return the
first Guide. The procedure will return 0 if given the final guide ID
as an argument or the image has no guides.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>guide_ID</tt></i><EFBFBD>:</span></td><td> The ID of the current guide (0 if first invocation).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The next guide's ID.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2614912"></a><h3><a name="gimp-image-get-guide-orientation"></a>gimp_image_get_guide_orientation ()</h3><a class="indexterm" name="id2614921"></a><pre class="programlisting"><a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> gimp_image_get_guide_orientation
(gint32 image_ID,
gint32 guide_ID);</pre><p>
Get orientation of a guide on an image.
</p><p>
This procedure takes an image and a guide ID as input and returns
the orientations of the guide.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>guide_ID</tt></i><EFBFBD>:</span></td><td> The guide.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The guide's orientation.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2614991"></a><h3><a name="gimp-image-get-guide-position"></a>gimp_image_get_guide_position ()</h3><a class="indexterm" name="id2615002"></a><pre class="programlisting">gint gimp_image_get_guide_position (gint32 image_ID,
gint32 guide_ID);</pre><p>
Get position of a guide on an image.
</p><p>
This procedure takes an image and a guide ID as input and returns
the position of the guide relative to the top or left of the image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>guide_ID</tt></i><EFBFBD>:</span></td><td> The guide.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The guide's position relative to top or left of image.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpfloatingsel.html"><b>&lt;&lt;<EFBFBD>gimpfloatingsel</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpimage.html"><b>gimpimage<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,24 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimphelp</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="prev" href="libgimp-gimpgimprc.html" title="gimpgimprc"><link rel="next" href="libgimp-gimpmessage.html" title="gimpmessage"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpgimprc.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpmessage.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimphelp"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimphelp</span></h2><p>gimphelp &#8212; Loading help pages using gimp_help.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimphelp.html#gimp-help">gimp_help</a> (const gchar *help_domain,
const gchar *help_id);
</pre></div><div class="refsect1" lang="en"><a name="id2543699"></a><h2>Description</h2><p>
Loading help pages using gimp_help.
</p></div><div class="refsect1" lang="en"><a name="id2564879"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2553010"></a><h3><a name="gimp-help"></a>gimp_help ()</h3><a class="indexterm" name="id2530224"></a><pre class="programlisting">gboolean gimp_help (const gchar *help_domain,
const gchar *help_id);</pre><p>
Load a help page.
</p><p>
This procedure loads the specified help page into the helpbrowser or
what ever is configured as help viewer. The help page is identified
by its domain and ID: if help_domain is NULL, we use the help_domain
which was registered using the gimp-plugin-help-register procedure.
If help_domain is NULL and no help domain was registered, the help
domain of the main GIMP installation is used.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>help_domain</tt></i><EFBFBD>:</span></td><td> The help domain in which help_id is registered.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>help_id</tt></i><EFBFBD>:</span></td><td> The help page's ID.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpgimprc.html"><b>&lt;&lt;<EFBFBD>gimpgimprc</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpmessage.html"><b>gimpmessage<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,982 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpimage</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpguides.html" title="gimpguides"><link rel="next" href="libgimp-gimplayer.html" title="gimplayer"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpguides.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimplayer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpimage"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpimage</span></h2><p>gimpimage &#8212; Operations on complete images.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gint* <a href="libgimp-gimpimage.html#gimp-image-list">gimp_image_list</a> (gint *num_images);
gint32 <a href="libgimp-gimpimage.html#gimp-image-new">gimp_image_new</a> (gint width,
gint height,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageBaseType"
>GimpImageBaseType</a> type);
gint32 <a href="libgimp-gimpimage.html#gimp-image-duplicate">gimp_image_duplicate</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-delete">gimp_image_delete</a> (gint32 image_ID);
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageBaseType"
>GimpImageBaseType</a> <a href="libgimp-gimpimage.html#gimp-image-base-type">gimp_image_base_type</a> (gint32 image_ID);
gint <a href="libgimp-gimpimage.html#gimp-image-width">gimp_image_width</a> (gint32 image_ID);
gint <a href="libgimp-gimpimage.html#gimp-image-height">gimp_image_height</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-free-shadow">gimp_image_free_shadow</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-flip">gimp_image_flip</a> (gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> flip_type);
gboolean <a href="libgimp-gimpimage.html#gimp-image-rotate">gimp_image_rotate</a> (gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpRotationType">GimpRotationType</a> rotate_type);
gboolean <a href="libgimp-gimpimage.html#gimp-image-resize">gimp_image_resize</a> (gint32 image_ID,
gint new_width,
gint new_height,
gint offx,
gint offy);
gboolean <a href="libgimp-gimpimage.html#gimp-image-resize-to-layers">gimp_image_resize_to_layers</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-scale">gimp_image_scale</a> (gint32 image_ID,
gint new_width,
gint new_height);
gboolean <a href="libgimp-gimpimage.html#gimp-image-crop">gimp_image_crop</a> (gint32 image_ID,
gint new_width,
gint new_height,
gint offx,
gint offy);
gint* <a href="libgimp-gimpimage.html#gimp-image-get-layers">gimp_image_get_layers</a> (gint32 image_ID,
gint *num_layers);
gint* <a href="libgimp-gimpimage.html#gimp-image-get-channels">gimp_image_get_channels</a> (gint32 image_ID,
gint *num_channels);
gint32 <a href="libgimp-gimpimage.html#gimp-image-get-active-drawable">gimp_image_get_active_drawable</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-unset-active-channel">gimp_image_unset_active_channel</a> (gint32 image_ID);
gint32 <a href="libgimp-gimpimage.html#gimp-image-get-floating-sel">gimp_image_get_floating_sel</a> (gint32 image_ID);
gint32 <a href="libgimp-gimpimage.html#gimp-image-floating-sel-attached-to">gimp_image_floating_sel_attached_to</a>
(gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-pick-color">gimp_image_pick_color</a> (gint32 image_ID,
gint32 drawable_ID,
gdouble x,
gdouble y,
gboolean sample_merged,
gboolean sample_average,
gdouble average_radius,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);
gint32 <a href="libgimp-gimpimage.html#gimp-image-pick-correlate-layer">gimp_image_pick_correlate_layer</a> (gint32 image_ID,
gint x,
gint y);
gboolean <a href="libgimp-gimpimage.html#gimp-image-add-layer">gimp_image_add_layer</a> (gint32 image_ID,
gint32 layer_ID,
gint position);
gboolean <a href="libgimp-gimpimage.html#gimp-image-remove-layer">gimp_image_remove_layer</a> (gint32 image_ID,
gint32 layer_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-raise-layer">gimp_image_raise_layer</a> (gint32 image_ID,
gint32 layer_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-lower-layer">gimp_image_lower_layer</a> (gint32 image_ID,
gint32 layer_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-raise-layer-to-top">gimp_image_raise_layer_to_top</a> (gint32 image_ID,
gint32 layer_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-lower-layer-to-bottom">gimp_image_lower_layer_to_bottom</a>
(gint32 image_ID,
gint32 layer_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-add-channel">gimp_image_add_channel</a> (gint32 image_ID,
gint32 channel_ID,
gint position);
gboolean <a href="libgimp-gimpimage.html#gimp-image-remove-channel">gimp_image_remove_channel</a> (gint32 image_ID,
gint32 channel_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-raise-channel">gimp_image_raise_channel</a> (gint32 image_ID,
gint32 channel_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-lower-channel">gimp_image_lower_channel</a> (gint32 image_ID,
gint32 layer_ID);
gint32 <a href="libgimp-gimpimage.html#gimp-image-flatten">gimp_image_flatten</a> (gint32 image_ID);
gint32 <a href="libgimp-gimpimage.html#gimp-image-merge-visible-layers">gimp_image_merge_visible_layers</a> (gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpMergeType">GimpMergeType</a> merge_type);
gint32 <a href="libgimp-gimpimage.html#gimp-image-merge-down">gimp_image_merge_down</a> (gint32 image_ID,
gint32 merge_layer_ID,
<a href="libgimp-gimpenums.html#GimpMergeType">GimpMergeType</a> merge_type);
gboolean <a href="libgimp-gimpimage.html#gimp-image-clean-all">gimp_image_clean_all</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-is-dirty">gimp_image_is_dirty</a> (gint32 image_ID);
gint32 <a href="libgimp-gimpimage.html#gimp-image-get-active-layer">gimp_image_get_active_layer</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-set-active-layer">gimp_image_set_active_layer</a> (gint32 image_ID,
gint32 active_layer_ID);
gint32 <a href="libgimp-gimpimage.html#gimp-image-get-active-channel">gimp_image_get_active_channel</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-set-active-channel">gimp_image_set_active_channel</a> (gint32 image_ID,
gint32 active_channel_ID);
gint32 <a href="libgimp-gimpimage.html#gimp-image-get-selection">gimp_image_get_selection</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-get-component-active">gimp_image_get_component_active</a> (gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpChannelType">GimpChannelType</a> component);
gboolean <a href="libgimp-gimpimage.html#gimp-image-set-component-active">gimp_image_set_component_active</a> (gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpChannelType">GimpChannelType</a> component,
gboolean active);
gboolean <a href="libgimp-gimpimage.html#gimp-image-get-component-visible">gimp_image_get_component_visible</a>
(gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpChannelType">GimpChannelType</a> component);
gboolean <a href="libgimp-gimpimage.html#gimp-image-set-component-visible">gimp_image_set_component_visible</a>
(gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpChannelType">GimpChannelType</a> component,
gboolean visible);
gchar* <a href="libgimp-gimpimage.html#gimp-image-get-filename">gimp_image_get_filename</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-set-filename">gimp_image_set_filename</a> (gint32 image_ID,
const gchar *filename);
gchar* <a href="libgimp-gimpimage.html#gimp-image-get-name">gimp_image_get_name</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-get-resolution">gimp_image_get_resolution</a> (gint32 image_ID,
gdouble *xresolution,
gdouble *yresolution);
gboolean <a href="libgimp-gimpimage.html#gimp-image-set-resolution">gimp_image_set_resolution</a> (gint32 image_ID,
gdouble xresolution,
gdouble yresolution);
<a
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
>GimpUnit</a> <a href="libgimp-gimpimage.html#gimp-image-get-unit">gimp_image_get_unit</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpimage.html#gimp-image-set-unit">gimp_image_set_unit</a> (gint32 image_ID,
<a
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
>GimpUnit</a> unit);
gboolean <a href="libgimp-gimpimage.html#gimp-image-set-tattoo-state">gimp_image_set_tattoo_state</a> (gint32 image_ID,
gint tattoo_state);
gint <a href="libgimp-gimpimage.html#gimp-image-get-tattoo-state">gimp_image_get_tattoo_state</a> (gint32 image_ID);
gint32 <a href="libgimp-gimpimage.html#gimp-image-get-layer-by-tattoo">gimp_image_get_layer_by_tattoo</a> (gint32 image_ID,
gint tattoo);
gint32 <a href="libgimp-gimpimage.html#gimp-image-get-channel-by-tattoo">gimp_image_get_channel_by_tattoo</a>
(gint32 image_ID,
gint tattoo);
guchar* <a href="libgimp-gimpimage.html#gimp-image-get-cmap">gimp_image_get_cmap</a> (gint32 image_ID,
gint *num_colors);
gboolean <a href="libgimp-gimpimage.html#gimp-image-set-cmap">gimp_image_set_cmap</a> (gint32 image_ID,
const guchar *cmap,
gint num_colors);
guchar* <a href="libgimp-gimpimage.html#gimp-image-get-colormap">gimp_image_get_colormap</a> (gint32 image_ID,
gint *num_colors);
gboolean <a href="libgimp-gimpimage.html#gimp-image-set-colormap">gimp_image_set_colormap</a> (gint32 image_ID,
const guchar *colormap,
gint num_colors);
guchar* <a href="libgimp-gimpimage.html#gimp-image-get-thumbnail-data">gimp_image_get_thumbnail_data</a> (gint32 image_ID,
gint *width,
gint *height,
gint *bpp);
<a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a>* <a href="libgimp-gimpimage.html#gimp-image-parasite-find">gimp_image_parasite_find</a> (gint32 image_ID,
const gchar *name);
gboolean <a href="libgimp-gimpimage.html#gimp-image-parasite-list">gimp_image_parasite_list</a> (gint32 image_ID,
gint *num_parasites,
gchar ***parasites);
gboolean <a href="libgimp-gimpimage.html#gimp-image-parasite-attach">gimp_image_parasite_attach</a> (gint32 image_ID,
<a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a> *parasite);
gboolean <a href="libgimp-gimpimage.html#gimp-image-parasite-detach">gimp_image_parasite_detach</a> (gint32 image_ID,
const gchar *name);
void <a href="libgimp-gimpimage.html#gimp-image-attach-new-parasite">gimp_image_attach_new_parasite</a> (gint32 image_ID,
const gchar *name,
gint flags,
gint size,
gconstpointer data);
</pre></div><div class="refsect1" lang="en"><a name="id2625537"></a><h2>Description</h2><p>
Operations on complete images: creation, resizing/rescaling,
and operations involving multiple layers.
</p></div><div class="refsect1" lang="en"><a name="id2625549"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2625554"></a><h3><a name="gimp-image-list"></a>gimp_image_list ()</h3><a class="indexterm" name="id2625562"></a><pre class="programlisting">gint* gimp_image_list (gint *num_images);</pre><p>
Returns the list of images currently open.
</p><p>
This procedure returns the list of images currently open in the
GIMP.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>num_images</tt></i><EFBFBD>:</span></td><td> The number of images currently open.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The list of images currently open.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2625614"></a><h3><a name="gimp-image-new"></a>gimp_image_new ()</h3><a class="indexterm" name="id2625623"></a><pre class="programlisting">gint32 gimp_image_new (gint width,
gint height,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageBaseType"
>GimpImageBaseType</a> type);</pre><p>
Creates a new image with the specified width, height, and type.
</p><p>
Creates a new image, undisplayed with the specified extents and
type. A layer should be created and added before this image is
displayed, or subsequent calls to 'gimp_display_new' with this image
as an argument will fail. Layers can be created using the
'gimp_layer_new' commands. They can be added to an image using the
'gimp_image_add_layer' command.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The width of the image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The height of the image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>type</tt></i><EFBFBD>:</span></td><td> The type of image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The ID of the newly created image.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2625714"></a><h3><a name="gimp-image-duplicate"></a>gimp_image_duplicate ()</h3><a class="indexterm" name="id2625723"></a><pre class="programlisting">gint32 gimp_image_duplicate (gint32 image_ID);</pre><p>
Duplicate the specified image
</p><p>
This procedure duplicates the specified image, copying all layers,
channels, and image information.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The new, duplicated image.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2625777"></a><h3><a name="gimp-image-delete"></a>gimp_image_delete ()</h3><a class="indexterm" name="id2625785"></a><pre class="programlisting">gboolean gimp_image_delete (gint32 image_ID);</pre><p>
Delete the specified image.
</p><p>
If there are no displays associated with this image it will be
deleted. This means that you can not delete an image through the PDB
that was created by the user. If the associated display was however
created through the PDB and you know the display ID, you may delete
the display. Removal of the last associated display will then delete
the image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2625842"></a><h3><a name="gimp-image-base-type"></a>gimp_image_base_type ()</h3><a class="indexterm" name="id2625851"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageBaseType"
>GimpImageBaseType</a> gimp_image_base_type (gint32 image_ID);</pre><p>
Get the base type of the image.
</p><p>
This procedure returns the image's base type. Layers in the image
must be of this subtype, but can have an optional alpha channel.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The image's base type.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2625904"></a><h3><a name="gimp-image-width"></a>gimp_image_width ()</h3><a class="indexterm" name="id2625912"></a><pre class="programlisting">gint gimp_image_width (gint32 image_ID);</pre><p>
Return the width of the image
</p><p>
This procedure returns the image's width. This value is independent
of any of the layers in this image. This is the \"canvas\" width.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The image's width.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2625966"></a><h3><a name="gimp-image-height"></a>gimp_image_height ()</h3><a class="indexterm" name="id2625974"></a><pre class="programlisting">gint gimp_image_height (gint32 image_ID);</pre><p>
Return the height of the image
</p><p>
This procedure returns the image's height. This value is independent
of any of the layers in this image. This is the \"canvas\" height.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The image's height.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2552769"></a><h3><a name="gimp-image-free-shadow"></a>gimp_image_free_shadow ()</h3><a class="indexterm" name="id2626014"></a><pre class="programlisting">gboolean gimp_image_free_shadow (gint32 image_ID);</pre><p>
Free the specified image's shadow data (if it exists).
</p><p>
This procedure is intended as a memory saving device. If any shadow
memory has been allocated, it will be freed automatically on a call
to 'gimp_image_delete'.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2626065"></a><h3><a name="gimp-image-flip"></a>gimp_image_flip ()</h3><a class="indexterm" name="id2626072"></a><pre class="programlisting">gboolean gimp_image_flip (gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> flip_type);</pre><p>
Flips the image horizontally or vertically.
</p><p>
This procedure flips (mirrors) the image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>flip_type</tt></i><EFBFBD>:</span></td><td> Type of flip.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2626135"></a><h3><a name="gimp-image-rotate"></a>gimp_image_rotate ()</h3><a class="indexterm" name="id2626143"></a><pre class="programlisting">gboolean gimp_image_rotate (gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpRotationType">GimpRotationType</a> rotate_type);</pre><p>
Rotates the image by the specified degrees.
</p><p>
This procedure rotates the image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>rotate_type</tt></i><EFBFBD>:</span></td><td> Angle of rotation.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2626206"></a><h3><a name="gimp-image-resize"></a>gimp_image_resize ()</h3><a class="indexterm" name="id2626213"></a><pre class="programlisting">gboolean gimp_image_resize (gint32 image_ID,
gint new_width,
gint new_height,
gint offx,
gint offy);</pre><p>
Resize the image to the specified extents.
</p><p>
This procedure resizes the image so that it's new width and height
are equal to the supplied parameters. Offsets are also provided
which describe the position of the previous image's content. No
bounds checking is currently provided, so don't supply parameters
that are out of bounds. All channels within the image are resized
according to the specified parameters; this includes the image
selection mask. All layers within the image are repositioned
according to the specified offsets.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_width</tt></i><EFBFBD>:</span></td><td> New image width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_height</tt></i><EFBFBD>:</span></td><td> New image height.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offx</tt></i><EFBFBD>:</span></td><td> x offset between upper left corner of old and new images: (new - old).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offy</tt></i><EFBFBD>:</span></td><td> y offset between upper left corner of old and new images: (new - old).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2626342"></a><h3><a name="gimp-image-resize-to-layers"></a>gimp_image_resize_to_layers ()</h3><a class="indexterm" name="id2626350"></a><pre class="programlisting">gboolean gimp_image_resize_to_layers (gint32 image_ID);</pre><p>
Resize the image to fit all layers.
</p><p>
This procedure resizes the image to the bounding box of all layers
of the image. All channels within the image are resized to the new
size; this includes the image selection mask. All layers within the
image are repositioned to the new image area.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2626408"></a><h3><a name="gimp-image-scale"></a>gimp_image_scale ()</h3><a class="indexterm" name="id2626416"></a><pre class="programlisting">gboolean gimp_image_scale (gint32 image_ID,
gint new_width,
gint new_height);</pre><p>
Scale the image to the specified extents.
</p><p>
This procedure scales the image so that it's new width and height
are equal to the supplied parameters. Offsets are also provided
which describe the position of the previous image's content. No
bounds checking is currently provided, so don't supply parameters
that are out of bounds. All channels within the image are scaled
according to the specified parameters; this includes the image
selection mask. All layers within the image are repositioned
according to the specified offsets.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_width</tt></i><EFBFBD>:</span></td><td> New image width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_height</tt></i><EFBFBD>:</span></td><td> New image height.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2626508"></a><h3><a name="gimp-image-crop"></a>gimp_image_crop ()</h3><a class="indexterm" name="id2626517"></a><pre class="programlisting">gboolean gimp_image_crop (gint32 image_ID,
gint new_width,
gint new_height,
gint offx,
gint offy);</pre><p>
Crop the image to the specified extents.
</p><p>
This procedure crops the image so that it's new width and height are
equal to the supplied parameters. Offsets are also provided which
describe the position of the previous image's content. All channels
and layers within the image are cropped to the new image extents;
this includes the image selection mask. If any parameters are out of
range, an error is returned.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_width</tt></i><EFBFBD>:</span></td><td> New image width: (0 &lt; new_width &lt;= width).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_height</tt></i><EFBFBD>:</span></td><td> New image height: (0 &lt; new_height &lt;= height).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offx</tt></i><EFBFBD>:</span></td><td> x offset: (0 &lt;= offx &lt;= (width - new_width)).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offy</tt></i><EFBFBD>:</span></td><td> y offset: (0 &lt;= offy &lt;= (height - new_height)).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2626644"></a><h3><a name="gimp-image-get-layers"></a>gimp_image_get_layers ()</h3><a class="indexterm" name="id2626653"></a><pre class="programlisting">gint* gimp_image_get_layers (gint32 image_ID,
gint *num_layers);</pre><p>
Returns the list of layers contained in the specified image.
</p><p>
This procedure returns the list of layers contained in the specified
image. The order of layers is from topmost to bottommost.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_layers</tt></i><EFBFBD>:</span></td><td> The number of layers contained in the image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The list of layers contained in the image.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2626725"></a><h3><a name="gimp-image-get-channels"></a>gimp_image_get_channels ()</h3><a class="indexterm" name="id2626733"></a><pre class="programlisting">gint* gimp_image_get_channels (gint32 image_ID,
gint *num_channels);</pre><p>
Returns the list of channels contained in the specified image.
</p><p>
This procedure returns the list of channels contained in the
specified image. This does not include the selection mask, or layer
masks. The order is from topmost to bottommost.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_channels</tt></i><EFBFBD>:</span></td><td> The number of channels contained in the image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The list of channels contained in the image.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2626806"></a><h3><a name="gimp-image-get-active-drawable"></a>gimp_image_get_active_drawable ()</h3><a class="indexterm" name="id2626814"></a><pre class="programlisting">gint32 gimp_image_get_active_drawable (gint32 image_ID);</pre><p>
Get the image's active drawable
</p><p>
This procedure returns the ID of the image's active drawable. This
can be either a layer, a channel, or a layer mask. The active
drawable is specified by the active image channel. If that is -1,
then by the active image layer. If the active image layer has a
layer mask and the layer mask is in edit mode, then the layer mask
is the active drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The active drawable.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2626870"></a><h3><a name="gimp-image-unset-active-channel"></a>gimp_image_unset_active_channel ()</h3><a class="indexterm" name="id2626878"></a><pre class="programlisting">gboolean gimp_image_unset_active_channel (gint32 image_ID);</pre><p>
Unsets the active channel in the specified image.
</p><p>
If an active channel exists, it is unset. There then exists no
active channel, and if desired, one can be set through a call to
'Set Active Channel'. No error is returned in the case of no
existing active channel.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2626933"></a><h3><a name="gimp-image-get-floating-sel"></a>gimp_image_get_floating_sel ()</h3><a class="indexterm" name="id2626941"></a><pre class="programlisting">gint32 gimp_image_get_floating_sel (gint32 image_ID);</pre><p>
Return the floating selection of the image.
</p><p>
This procedure returns the image's floating selection, if it exists.
If it doesn't exist, -1 is returned as the layer ID.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The image's floating selection.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2626994"></a><h3><a name="gimp-image-floating-sel-attached-to"></a>gimp_image_floating_sel_attached_to ()</h3><a class="indexterm" name="id2627002"></a><pre class="programlisting">gint32 gimp_image_floating_sel_attached_to
(gint32 image_ID);</pre><p>
Return the drawable the floating selection is attached to.
</p><p>
This procedure returns the drawable the image's floating selection
is attached to, if it exists. If it doesn't exist, -1 is returned as
the drawable ID.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The drawable the floating selection is attached to.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2627059"></a><h3><a name="gimp-image-pick-color"></a>gimp_image_pick_color ()</h3><a class="indexterm" name="id2627067"></a><pre class="programlisting">gboolean gimp_image_pick_color (gint32 image_ID,
gint32 drawable_ID,
gdouble x,
gdouble y,
gboolean sample_merged,
gboolean sample_average,
gdouble average_radius,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);</pre><p>
Determine the color at the given drawable coordinates
</p><p>
This tool determines the color at the specified coordinates. The
returned color is an RGB triplet even for grayscale and indexed
drawables. If the coordinates lie outside of the extents of the
specified drawable, then an error is returned. If the drawable has
an alpha channel, the algorithm examines the alpha value of the
drawable at the coordinates. If the alpha value is completely
transparent (0), then an error is returned. If the sample_merged
parameter is non-zero, the data of the composite image will be used
instead of that for the specified drawable. This is equivalent to
sampling for colors after merging all visible layers. In the case of
a merged sampling, the supplied drawable is ignored except for
finding the image it belongs to.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable to pick from.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> x coordinate of upper-left corner of rectangle.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> y coordinate of upper-left corner of rectangle.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>sample_merged</tt></i><EFBFBD>:</span></td><td> Use the composite image, not the drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>sample_average</tt></i><EFBFBD>:</span></td><td> Average the color of all the pixels in a specified radius.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>average_radius</tt></i><EFBFBD>:</span></td><td> The radius of pixels to average.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The return color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2627253"></a><h3><a name="gimp-image-pick-correlate-layer"></a>gimp_image_pick_correlate_layer ()</h3><a class="indexterm" name="id2627264"></a><pre class="programlisting">gint32 gimp_image_pick_correlate_layer (gint32 image_ID,
gint x,
gint y);</pre><p>
Find the layer visible at the specified coordinates.
</p><p>
This procedure finds the layer which is visible at the specified
coordinates. Layers which do not qualify are those whose extents do
not pass within the specified coordinates, or which are transparent
at the specified coordinates. This procedure will return -1 if no
layer is found.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> The x coordinate for the pick.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> The y coordinate for the pick.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The layer found at the specified coordinates.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2627356"></a><h3><a name="gimp-image-add-layer"></a>gimp_image_add_layer ()</h3><a class="indexterm" name="id2627364"></a><pre class="programlisting">gboolean gimp_image_add_layer (gint32 image_ID,
gint32 layer_ID,
gint position);</pre><p>
Add the specified layer to the image.
</p><p>
This procedure adds the specified layer to the gimage at the given
position. If the position is specified as -1, then the layer is
inserted at the top of the layer stack. If the layer to be added has
no alpha channel, it must be added at position 0. The layer type
must be compatible with the image base type.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>position</tt></i><EFBFBD>:</span></td><td> The layer position.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2627455"></a><h3><a name="gimp-image-remove-layer"></a>gimp_image_remove_layer ()</h3><a class="indexterm" name="id2627463"></a><pre class="programlisting">gboolean gimp_image_remove_layer (gint32 image_ID,
gint32 layer_ID);</pre><p>
Remove the specified layer from the image.
</p><p>
This procedure removes the specified layer from the image. If the
layer doesn't exist, an error is returned. If there are no layers
left in the image, this call will fail. If this layer is the last
layer remaining, the image will become empty and have no active
layer.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2627536"></a><h3><a name="gimp-image-raise-layer"></a>gimp_image_raise_layer ()</h3><a class="indexterm" name="id2627545"></a><pre class="programlisting">gboolean gimp_image_raise_layer (gint32 image_ID,
gint32 layer_ID);</pre><p>
Raise the specified layer in the image's layer stack
</p><p>
This procedure raises the specified layer one step in the existing
layer stack. It will not move the layer if there is no layer above
it, or the layer has no alpha channel.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer to raise.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2627616"></a><h3><a name="gimp-image-lower-layer"></a>gimp_image_lower_layer ()</h3><a class="indexterm" name="id2627625"></a><pre class="programlisting">gboolean gimp_image_lower_layer (gint32 image_ID,
gint32 layer_ID);</pre><p>
Lower the specified layer in the image's layer stack
</p><p>
This procedure lowers the specified layer one step in the existing
layer stack. It will not move the layer if there is no layer below
it, or the layer has no alpha channel.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer to lower.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2627696"></a><h3><a name="gimp-image-raise-layer-to-top"></a>gimp_image_raise_layer_to_top ()</h3><a class="indexterm" name="id2627707"></a><pre class="programlisting">gboolean gimp_image_raise_layer_to_top (gint32 image_ID,
gint32 layer_ID);</pre><p>
Raise the specified layer in the image's layer stack to top of stack
</p><p>
This procedure raises the specified layer to top of the existing
layer stack. It will not move the layer if there is no layer above
it, or the layer has no alpha channel.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer to raise to top.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2627780"></a><h3><a name="gimp-image-lower-layer-to-bottom"></a>gimp_image_lower_layer_to_bottom ()</h3><a class="indexterm" name="id2627791"></a><pre class="programlisting">gboolean gimp_image_lower_layer_to_bottom
(gint32 image_ID,
gint32 layer_ID);</pre><p>
Lower the specified layer in the image's layer stack to bottom of
stack
</p><p>
This procedure lowers the specified layer to bottom of the existing
layer stack. It will not move the layer if there is no layer below
it, or the layer has no alpha channel.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer to lower to bottom.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2627865"></a><h3><a name="gimp-image-add-channel"></a>gimp_image_add_channel ()</h3><a class="indexterm" name="id2627874"></a><pre class="programlisting">gboolean gimp_image_add_channel (gint32 image_ID,
gint32 channel_ID,
gint position);</pre><p>
Add the specified channel to the image.
</p><p>
This procedure adds the specified channel to the image. The position
channel is not currently used, so the channel is always inserted at
the top of the channel stack.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>channel_ID</tt></i><EFBFBD>:</span></td><td> The channel.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>position</tt></i><EFBFBD>:</span></td><td> The channel position.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2627962"></a><h3><a name="gimp-image-remove-channel"></a>gimp_image_remove_channel ()</h3><a class="indexterm" name="id2627971"></a><pre class="programlisting">gboolean gimp_image_remove_channel (gint32 image_ID,
gint32 channel_ID);</pre><p>
Remove the specified channel from the image.
</p><p>
This procedure removes the specified channel from the image. If the
channel doesn't exist, an error is returned.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>channel_ID</tt></i><EFBFBD>:</span></td><td> The channel.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2628041"></a><h3><a name="gimp-image-raise-channel"></a>gimp_image_raise_channel ()</h3><a class="indexterm" name="id2628050"></a><pre class="programlisting">gboolean gimp_image_raise_channel (gint32 image_ID,
gint32 channel_ID);</pre><p>
Raise the specified channel in the image's channel stack
</p><p>
This procedure raises the specified channel one step in the existing
channel stack. It will not move the channel if there is no channel
above it.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>channel_ID</tt></i><EFBFBD>:</span></td><td> The channel to raise.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2628121"></a><h3><a name="gimp-image-lower-channel"></a>gimp_image_lower_channel ()</h3><a class="indexterm" name="id2628129"></a><pre class="programlisting">gboolean gimp_image_lower_channel (gint32 image_ID,
gint32 layer_ID);</pre><p>
Lower the specified layer in the image's layer stack
</p><p>
This procedure lowers the specified layer one step in the existing
layer stack. It will not move the layer if there is no layer below
it, or the layer has no alpha channel.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer to lower.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2628201"></a><h3><a name="gimp-image-flatten"></a>gimp_image_flatten ()</h3><a class="indexterm" name="id2628209"></a><pre class="programlisting">gint32 gimp_image_flatten (gint32 image_ID);</pre><p>
Flatten all visible layers into a single layer. Discard all
invisible layers.
</p><p>
This procedure combines the visible layers in a manner analogous to
merging with the CLIP_TO_IMAGE merge type. Non-visible layers are
discarded, and the resulting image is stripped of its alpha channel.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The resulting layer.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2628277"></a><h3><a name="gimp-image-merge-visible-layers"></a>gimp_image_merge_visible_layers ()</h3><a class="indexterm" name="id2628290"></a><pre class="programlisting">gint32 gimp_image_merge_visible_layers (gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpMergeType">GimpMergeType</a> merge_type);</pre><p>
Merge the visible image layers into one.
</p><p>
This procedure combines the visible layers into a single layer using
the specified merge type. A merge type of EXPAND_AS_NECESSARY
expands the final layer to encompass the areas of the visible
layers. A merge type of CLIP_TO_IMAGE clips the final layer to the
extents of the image. A merge type of CLIP_TO_BOTTOM_LAYER clips the
final layer to the size of the bottommost layer.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>merge_type</tt></i><EFBFBD>:</span></td><td> The type of merge.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The resulting layer.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2628383"></a><h3><a name="gimp-image-merge-down"></a>gimp_image_merge_down ()</h3><a class="indexterm" name="id2628396"></a><pre class="programlisting">gint32 gimp_image_merge_down (gint32 image_ID,
gint32 merge_layer_ID,
<a href="libgimp-gimpenums.html#GimpMergeType">GimpMergeType</a> merge_type);</pre><p>
Merge the layer passed and the first visible layer below.
</p><p>
This procedure combines the passed layer and the first visible layer
below it using the specified merge type. A merge type of
EXPAND_AS_NECESSARY expands the final layer to encompass the areas
of the visible layers. A merge type of CLIP_TO_IMAGE clips the final
layer to the extents of the image. A merge type of
CLIP_TO_BOTTOM_LAYER clips the final layer to the size of the
bottommost layer.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>merge_layer_ID</tt></i><EFBFBD>:</span></td><td> The layer to merge down from.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>merge_type</tt></i><EFBFBD>:</span></td><td> The type of merge.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The resulting layer.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2628510"></a><h3><a name="gimp-image-clean-all"></a>gimp_image_clean_all ()</h3><a class="indexterm" name="id2628523"></a><pre class="programlisting">gboolean gimp_image_clean_all (gint32 image_ID);</pre><p>
Set the image dirty count to 0.
</p><p>
This procedure sets the specified image's dirty count to 0, allowing
operations to occur without having a 'dirtied' image. This is
especially useful for creating and loading images which should not
initially be considered dirty, even though layers must be created,
filled, and installed in the image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2628592"></a><h3><a name="gimp-image-is-dirty"></a>gimp_image_is_dirty ()</h3><a class="indexterm" name="id2628605"></a><pre class="programlisting">gboolean gimp_image_is_dirty (gint32 image_ID);</pre><p>
Checks if the image has unsaved changes.
</p><p>
This procedure checks the specified image's dirty count to see if it
needs to be saved.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> True if the image has unsaved changes.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2628671"></a><h3><a name="gimp-image-get-active-layer"></a>gimp_image_get_active_layer ()</h3><a class="indexterm" name="id2628684"></a><pre class="programlisting">gint32 gimp_image_get_active_layer (gint32 image_ID);</pre><p>
Returns the specified image's active layer.
</p><p>
If there is an active layer, its ID will be returned, otherwise, -1.
If a channel is currently active, then no layer will be. If a layer
mask is active, then this will return the associated layer.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The active layer.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2628752"></a><h3><a name="gimp-image-set-active-layer"></a>gimp_image_set_active_layer ()</h3><a class="indexterm" name="id2628766"></a><pre class="programlisting">gboolean gimp_image_set_active_layer (gint32 image_ID,
gint32 active_layer_ID);</pre><p>
Sets the specified image's active layer.
</p><p>
If the layer exists, it is set as the active layer in the image. Any
previous active layer or channel is set to inactive. An exception is
a previously existing floating selection, in which case this
procedure will return an execution error.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>active_layer_ID</tt></i><EFBFBD>:</span></td><td> The new image active layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2628855"></a><h3><a name="gimp-image-get-active-channel"></a>gimp_image_get_active_channel ()</h3><a class="indexterm" name="id2628868"></a><pre class="programlisting">gint32 gimp_image_get_active_channel (gint32 image_ID);</pre><p>
Returns the specified image's active channel.
</p><p>
If there is an active channel, this will return the channel ID,
otherwise, -1.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The active channel.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2628934"></a><h3><a name="gimp-image-set-active-channel"></a>gimp_image_set_active_channel ()</h3><a class="indexterm" name="id2628948"></a><pre class="programlisting">gboolean gimp_image_set_active_channel (gint32 image_ID,
gint32 active_channel_ID);</pre><p>
Sets the specified image's active channel.
</p><p>
If the channel exists, it is set as the active channel in the image.
Any previous active channel or channel is set to inactive. An
exception is a previously existing floating selection, in which case
this procedure will return an execution error.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>active_channel_ID</tt></i><EFBFBD>:</span></td><td> The new image active channel.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2629038"></a><h3><a name="gimp-image-get-selection"></a>gimp_image_get_selection ()</h3><a class="indexterm" name="id2629051"></a><pre class="programlisting">gint32 gimp_image_get_selection (gint32 image_ID);</pre><p>
Returns the specified image's selection.
</p><p>
This will always return a valid ID for a selection -- which is
represented as a channel internally.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The selection channel.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2629117"></a><h3><a name="gimp-image-get-component-active"></a>gimp_image_get_component_active ()</h3><a class="indexterm" name="id2629130"></a><pre class="programlisting">gboolean gimp_image_get_component_active (gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpChannelType">GimpChannelType</a> component);</pre><p>
Returns if the specified image's image component is active.
</p><p>
This procedure returns if the specified image's image component
(i.e. Red, Green, Blue intensity channels in an RGB image) is active
or inactive -- whether or not it can be modified. If the specified
component is not valid for the image type, an error is returned.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>component</tt></i><EFBFBD>:</span></td><td> The image component.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Component is active.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2629221"></a><h3><a name="gimp-image-set-component-active"></a>gimp_image_set_component_active ()</h3><a class="indexterm" name="id2629234"></a><pre class="programlisting">gboolean gimp_image_set_component_active (gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpChannelType">GimpChannelType</a> component,
gboolean active);</pre><p>
Sets if the specified image's image component is active.
</p><p>
This procedure sets if the specified image's image component (i.e.
Red, Green, Blue intensity channels in an RGB image) is active or
inactive -- whether or not it can be modified. If the specified
component is not valid for the image type, an error is returned.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>component</tt></i><EFBFBD>:</span></td><td> The image component.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>active</tt></i><EFBFBD>:</span></td><td> Component is active.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2629345"></a><h3><a name="gimp-image-get-component-visible"></a>gimp_image_get_component_visible ()</h3><a class="indexterm" name="id2629359"></a><pre class="programlisting">gboolean gimp_image_get_component_visible
(gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpChannelType">GimpChannelType</a> component);</pre><p>
Returns if the specified image's image component is visible.
</p><p>
This procedure returns if the specified image's image component
(i.e. Red, Green, Blue intensity channels in an RGB image) is
visible or invisible -- whether or not it can be seen. If the
specified component is not valid for the image type, an error is
returned.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>component</tt></i><EFBFBD>:</span></td><td> The image component.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Component is visible.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2629450"></a><h3><a name="gimp-image-set-component-visible"></a>gimp_image_set_component_visible ()</h3><a class="indexterm" name="id2629464"></a><pre class="programlisting">gboolean gimp_image_set_component_visible
(gint32 image_ID,
<a href="libgimp-gimpenums.html#GimpChannelType">GimpChannelType</a> component,
gboolean visible);</pre><p>
Sets if the specified image's image component is visible.
</p><p>
This procedure sets if the specified image's image component (i.e.
Red, Green, Blue intensity channels in an RGB image) is visible or
invisible -- whether or not it can be seen. If the specified
component is not valid for the image type, an error is returned.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>component</tt></i><EFBFBD>:</span></td><td> The image component.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>visible</tt></i><EFBFBD>:</span></td><td> Component is visible.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2629576"></a><h3><a name="gimp-image-get-filename"></a>gimp_image_get_filename ()</h3><a class="indexterm" name="id2629589"></a><pre class="programlisting">gchar* gimp_image_get_filename (gint32 image_ID);</pre><p>
Returns the specified image's filename.
</p><p>
This procedure returns the specified image's filename in the
filesystem encoding. The image has a filename only if it was loaded
or has since been saved. Otherwise, this function returns <tt class="literal">NULL</tt>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The filename.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2629661"></a><h3><a name="gimp-image-set-filename"></a>gimp_image_set_filename ()</h3><a class="indexterm" name="id2629674"></a><pre class="programlisting">gboolean gimp_image_set_filename (gint32 image_ID,
const gchar *filename);</pre><p>
Sets the specified image's filename.
</p><p>
This procedure sets the specified image's filename. The filename
should be in the filesystem encoding.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>filename</tt></i><EFBFBD>:</span></td><td> The new image filename.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2629761"></a><h3><a name="gimp-image-get-name"></a>gimp_image_get_name ()</h3><a class="indexterm" name="id2629774"></a><pre class="programlisting">gchar* gimp_image_get_name (gint32 image_ID);</pre><p>
Returns the specified image's name.
</p><p>
This procedure returns the specified image's name.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The name.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2629839"></a><h3><a name="gimp-image-get-resolution"></a>gimp_image_get_resolution ()</h3><a class="indexterm" name="id2629853"></a><pre class="programlisting">gboolean gimp_image_get_resolution (gint32 image_ID,
gdouble *xresolution,
gdouble *yresolution);</pre><p>
Returns the specified image's resolution.
</p><p>
This procedure returns the specified image's resolution in dots per
inch. This value is independent of any of the layers in this image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>xresolution</tt></i><EFBFBD>:</span></td><td> The resolutionin the x-axis, in dots per inch.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>yresolution</tt></i><EFBFBD>:</span></td><td> The resolutionin the y-axis, in dots per inch.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2629962"></a><h3><a name="gimp-image-set-resolution"></a>gimp_image_set_resolution ()</h3><a class="indexterm" name="id2629976"></a><pre class="programlisting">gboolean gimp_image_set_resolution (gint32 image_ID,
gdouble xresolution,
gdouble yresolution);</pre><p>
Sets the specified image's resolution.
</p><p>
This procedure sets the specified image's resolution in dots per
inch. This value is independent of any of the layers in this image.
No scaling or resizing is performed.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>xresolution</tt></i><EFBFBD>:</span></td><td> The new image resolution in the x-axis, in dots per inch.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>yresolution</tt></i><EFBFBD>:</span></td><td> The new image resolution in the y-axis, in dots per inch.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2630086"></a><h3><a name="gimp-image-get-unit"></a>gimp_image_get_unit ()</h3><a class="indexterm" name="id2630099"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
>GimpUnit</a> gimp_image_get_unit (gint32 image_ID);</pre><p>
Returns the specified image's unit.
</p><p>
This procedure returns the specified image's unit. This value is
independent of any of the layers in this image. See the gimp_unit_*
procedure definitions for the valid range of unit IDs and a
description of the unit system.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The unit.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2630166"></a><h3><a name="gimp-image-set-unit"></a>gimp_image_set_unit ()</h3><a class="indexterm" name="id2630179"></a><pre class="programlisting">gboolean gimp_image_set_unit (gint32 image_ID,
<a
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
>GimpUnit</a> unit);</pre><p>
Sets the specified image's unit.
</p><p>
This procedure sets the specified image's unit. No scaling or
resizing is performed. This value is independent of any of the
layers in this image. See the gimp_unit_* procedure definitions for
the valid range of unit IDs and a description of the unit system.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>unit</tt></i><EFBFBD>:</span></td><td> The new image unit.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2630268"></a><h3><a name="gimp-image-set-tattoo-state"></a>gimp_image_set_tattoo_state ()</h3><a class="indexterm" name="id2630282"></a><pre class="programlisting">gboolean gimp_image_set_tattoo_state (gint32 image_ID,
gint tattoo_state);</pre><p>
Set the tattoo state associated with the image.
</p><p>
This procedure sets the tattoo state of the image. Use only by
save/load plugins that wish to preserve an images tattoo state.
Using this function at other times will produce unexpected results.
A full check of uniqueness of states in layers, channels and paths
will be performed by this procedure and a execution failure will be
returned if this fails. A failure will also be returned if the new
tattoo state value is less than the maximum tattoo value from all of
the tattoos from the paths, layers and channels. After the image
data has been loaded and all the tattoos have been set then this is
the last procedure that should be called. If effectively does a
status check on the tattoo values that have been set to make sure
that all is OK.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>tattoo_state</tt></i><EFBFBD>:</span></td><td> The new image tattoo_state.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2630379"></a><h3><a name="gimp-image-get-tattoo-state"></a>gimp_image_get_tattoo_state ()</h3><a class="indexterm" name="id2630393"></a><pre class="programlisting">gint gimp_image_get_tattoo_state (gint32 image_ID);</pre><p>
Returns the tattoo state associated with the image.
</p><p>
This procedure returns the tattoo state of the image. Use only by
save/load plugins that wish to preserve an images tattoo state.
Using this function at other times will produce unexpected results.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The tattoo_state.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2630460"></a><h3><a name="gimp-image-get-layer-by-tattoo"></a>gimp_image_get_layer_by_tattoo ()</h3><a class="indexterm" name="id2630474"></a><pre class="programlisting">gint32 gimp_image_get_layer_by_tattoo (gint32 image_ID,
gint tattoo);</pre><p>
Find a layer with a given tattoo in an image.
</p><p>
This procedure returns the layer with the given tattoo in the
specified image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>tattoo</tt></i><EFBFBD>:</span></td><td> The tattoo of the layer to find.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The layer with the specified tattoo.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2630561"></a><h3><a name="gimp-image-get-channel-by-tattoo"></a>gimp_image_get_channel_by_tattoo ()</h3><a class="indexterm" name="id2630575"></a><pre class="programlisting">gint32 gimp_image_get_channel_by_tattoo
(gint32 image_ID,
gint tattoo);</pre><p>
Find a channel with a given tattoo in an image.
</p><p>
This procedure returns the channel with the given tattoo in the
specified image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>tattoo</tt></i><EFBFBD>:</span></td><td> The tattoo of the channel to find.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The channel with the specified tattoo.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2630663"></a><h3><a name="gimp-image-get-cmap"></a>gimp_image_get_cmap ()</h3><a class="indexterm" name="id2630676"></a><pre class="programlisting">guchar* gimp_image_get_cmap (gint32 image_ID,
gint *num_colors);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_image_get_cmap</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpimage.html#gimp-image-get-colormap"><tt class="function">gimp_image_get_colormap()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_colors</tt></i><EFBFBD>:</span></td><td> Number of colors in the colormap array.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The image's colormap.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2630778"></a><h3><a name="gimp-image-set-cmap"></a>gimp_image_set_cmap ()</h3><a class="indexterm" name="id2630791"></a><pre class="programlisting">gboolean gimp_image_set_cmap (gint32 image_ID,
const guchar *cmap,
gint num_colors);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_image_set_cmap</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpimage.html#gimp-image-set-colormap"><tt class="function">gimp_image_set_colormap()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>cmap</tt></i><EFBFBD>:</span></td><td> The new colormap values.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_colors</tt></i><EFBFBD>:</span></td><td> Number of colors in the colormap array.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2630914"></a><h3><a name="gimp-image-get-colormap"></a>gimp_image_get_colormap ()</h3><a class="indexterm" name="id2630926"></a><pre class="programlisting">guchar* gimp_image_get_colormap (gint32 image_ID,
gint *num_colors);</pre><p>
Returns the image's colormap
</p><p>
This procedure returns an actual pointer to the image's colormap, as
well as the number of colors contained in the colormap. If the image
is not of base type INDEXED, this pointer will be NULL.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_colors</tt></i><EFBFBD>:</span></td><td> Number of colors in the colormap array.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The image's colormap.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2631015"></a><h3><a name="gimp-image-set-colormap"></a>gimp_image_set_colormap ()</h3><a class="indexterm" name="id2631028"></a><pre class="programlisting">gboolean gimp_image_set_colormap (gint32 image_ID,
const guchar *colormap,
gint num_colors);</pre><p>
Sets the entries in the image's colormap.
</p><p>
This procedure sets the entries in the specified image's colormap.
The number of colors is specified by the \"num_colors\" parameter
and corresponds to the number of INT8 triples that must be contained
in the \"cmap\" array.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>colormap</tt></i><EFBFBD>:</span></td><td> The new colormap values.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_colors</tt></i><EFBFBD>:</span></td><td> Number of colors in the colormap array.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2631139"></a><h3><a name="gimp-image-get-thumbnail-data"></a>gimp_image_get_thumbnail_data ()</h3><a class="indexterm" name="id2631153"></a><pre class="programlisting">guchar* gimp_image_get_thumbnail_data (gint32 image_ID,
gint *width,
gint *height,
gint *bpp);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>bpp</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2631271"></a><h3><a name="gimp-image-parasite-find"></a>gimp_image_parasite_find ()</h3><a class="indexterm" name="id2631284"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a>* gimp_image_parasite_find (gint32 image_ID,
const gchar *name);</pre><p>
Finds the named parasite in an image
</p><p>
Finds and returns the named parasite that was previously attached to
an image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the parasite to find.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The found parasite.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2631371"></a><h3><a name="gimp-image-parasite-list"></a>gimp_image_parasite_list ()</h3><a class="indexterm" name="id2631385"></a><pre class="programlisting">gboolean gimp_image_parasite_list (gint32 image_ID,
gint *num_parasites,
gchar ***parasites);</pre><p>
List all parasites.
</p><p>
Returns a list of all currently attached parasites.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_parasites</tt></i><EFBFBD>:</span></td><td> The number of attached parasites.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>parasites</tt></i><EFBFBD>:</span></td><td> The names of currently attached parasites.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2631493"></a><h3><a name="gimp-image-parasite-attach"></a>gimp_image_parasite_attach ()</h3><a class="indexterm" name="id2631506"></a><pre class="programlisting">gboolean gimp_image_parasite_attach (gint32 image_ID,
<a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a> *parasite);</pre><p>
Add a parasite to an image.
</p><p>
This procedure attaches a parasite to an image. It has no return
values.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>parasite</tt></i><EFBFBD>:</span></td><td> The parasite to attach to an image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2631593"></a><h3><a name="gimp-image-parasite-detach"></a>gimp_image_parasite_detach ()</h3><a class="indexterm" name="id2631607"></a><pre class="programlisting">gboolean gimp_image_parasite_detach (gint32 image_ID,
const gchar *name);</pre><p>
Removes a parasite from an image.
</p><p>
This procedure detaches a parasite from an image. It has no return
values.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the parasite to detach from an image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2631693"></a><h3><a name="gimp-image-attach-new-parasite"></a>gimp_image_attach_new_parasite ()</h3><a class="indexterm" name="id2631707"></a><pre class="programlisting">void gimp_image_attach_new_parasite (gint32 image_ID,
const gchar *name,
gint flags,
gint size,
gconstpointer data);</pre><p>
Convenience function that creates a parasite and attaches it
to the GIMP.
</p><p>
See Also: <a href="libgimp-gimpimage.html#gimp-image-parasite-attach"><tt class="function">gimp_image_parasite_attach()</tt></a></p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> the ID of the image to attach the <a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
><span class="type">GimpParasite</span></a> to.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the name of the <a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
><span class="type">GimpParasite</span></a> to create and attach.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>flags</tt></i><EFBFBD>:</span></td><td> the flags set on the <a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
><span class="type">GimpParasite</span></a>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size</tt></i><EFBFBD>:</span></td><td> the size of the parasite data in bytes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> a pointer to the data attached with the <a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
><span class="type">GimpParasite</span></a>.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpguides.html"><b>&lt;&lt;<EFBFBD>gimpguides</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimplayer.html"><b>gimplayer<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,44 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpimagecombobox</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="libgimp-gimpdrawablecombobox.html" title="gimpdrawablecombobox"><link rel="next" href="libgimp-gimppixbuf.html" title="gimppixbuf"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpdrawablecombobox.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimppixbuf.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpimagecombobox"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpimagecombobox</span></h2><p>gimpimagecombobox &#8212; A widget providing a popup menu of images.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean (<a href="libgimp-gimpimagecombobox.html#GimpImageConstraintFunc">*GimpImageConstraintFunc</a>) (gint32 image_id,
gpointer data);
GtkWidget* <a href="libgimp-gimpimagecombobox.html#gimp-image-combo-box-new">gimp_image_combo_box_new</a> (<a href="libgimp-gimpimagecombobox.html#GimpImageConstraintFunc">GimpImageConstraintFunc</a> constraint,
gpointer data);
</pre></div><div class="refsect1" lang="en"><a name="id2668307"></a><h2>Description</h2><p>
A widget providing a popup menu of images.
</p></div><div class="refsect1" lang="en"><a name="id2668318"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2668323"></a><h3><a name="GimpImageConstraintFunc"></a>GimpImageConstraintFunc ()</h3><a class="indexterm" name="id2667924"></a><pre class="programlisting">gboolean (*GimpImageConstraintFunc) (gint32 image_id,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_id</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2667984"></a><h3><a name="gimp-image-combo-box-new"></a>gimp_image_combo_box_new ()</h3><a class="indexterm" name="id2667993"></a><pre class="programlisting">GtkWidget* gimp_image_combo_box_new (<a href="libgimp-gimpimagecombobox.html#GimpImageConstraintFunc">GimpImageConstraintFunc</a> constraint,
gpointer data);</pre><p>
Creates a new <a
href="../libgimpwidgets/GimpIntComboBox.html"
><span class="type">GimpIntComboBox</span></a> filled with all currently opened
images. If a <i class="parameter"><tt>constraint</tt></i> function is specified, it is called for
each image and only if the function returns <tt class="literal">TRUE</tt>, the image is
added to the combobox.
</p><p>
You should use <tt class="function">gimp_int_combo_connect()</tt> to initialize and connect
the combo. Use <a
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-set-active"
><tt class="function">gimp_int_combo_box_set_active()</tt></a> to get the active
image ID and <a
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-get-active"
><tt class="function">gimp_int_combo_box_get_active()</tt></a> to retrieve the ID of
the selected image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>constraint</tt></i><EFBFBD>:</span></td><td> a <a href="libgimp-gimpimagecombobox.html#GimpImageConstraintFunc"><span class="type">GimpImageConstraintFunc</span></a> or <tt class="literal">NULL</tt>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> a pointer that is passed to <i class="parameter"><tt>constraint</tt></i>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a new <a
href="../libgimpwidgets/GimpIntComboBox.html"
><span class="type">GimpIntComboBox</span></a>.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpdrawablecombobox.html"><b>&lt;&lt;<EFBFBD>gimpdrawablecombobox</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimppixbuf.html"><b>gimppixbuf<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,379 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimplayer</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpimage.html" title="gimpimage"><link rel="next" href="libgimp-gimppaths.html" title="gimppaths"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpimage.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimppaths.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimplayer"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimplayer</span></h2><p>gimplayer &#8212; Operations on a single layer.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gint32 <a href="libgimp-gimplayer.html#gimp-layer-new">gimp_layer_new</a> (gint32 image_ID,
const gchar *name,
gint width,
gint height,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageType"
>GimpImageType</a> type,
gdouble opacity,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> mode);
gint32 <a href="libgimp-gimplayer.html#gimp-layer-copy">gimp_layer_copy</a> (gint32 layer_ID);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-scale">gimp_layer_scale</a> (gint32 layer_ID,
gint new_width,
gint new_height,
gboolean local_origin);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-resize">gimp_layer_resize</a> (gint32 layer_ID,
gint new_width,
gint new_height,
gint offx,
gint offy);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-resize-to-image-size">gimp_layer_resize_to_image_size</a> (gint32 layer_ID);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-translate">gimp_layer_translate</a> (gint32 layer_ID,
gint offx,
gint offy);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-add-alpha">gimp_layer_add_alpha</a> (gint32 layer_ID);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-set-offsets">gimp_layer_set_offsets</a> (gint32 layer_ID,
gint offx,
gint offy);
gint32 <a href="libgimp-gimplayer.html#gimp-layer-create-mask">gimp_layer_create_mask</a> (gint32 layer_ID,
<a href="libgimp-gimpenums.html#GimpAddMaskType">GimpAddMaskType</a> mask_type);
gint32 <a href="libgimp-gimplayer.html#gimp-layer-from-mask">gimp_layer_from_mask</a> (gint32 mask_ID);
gint32 <a href="libgimp-gimplayer.html#gimp-layer-get-mask">gimp_layer_get_mask</a> (gint32 layer_ID);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-add-mask">gimp_layer_add_mask</a> (gint32 layer_ID,
gint32 mask_ID);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-remove-mask">gimp_layer_remove_mask</a> (gint32 layer_ID,
<a href="libgimp-gimpenums.html#GimpMaskApplyMode">GimpMaskApplyMode</a> mode);
gint32 <a href="libgimp-gimplayer.html#gimp-layer-new-from-drawable">gimp_layer_new_from_drawable</a> (gint32 drawable_ID,
gint32 dest_image_ID);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-get-preserve-trans">gimp_layer_get_preserve_trans</a> (gint32 layer_ID);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-set-preserve-trans">gimp_layer_set_preserve_trans</a> (gint32 layer_ID,
gboolean preserve_trans);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-get-apply-mask">gimp_layer_get_apply_mask</a> (gint32 layer_ID);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-set-apply-mask">gimp_layer_set_apply_mask</a> (gint32 layer_ID,
gboolean apply_mask);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-get-show-mask">gimp_layer_get_show_mask</a> (gint32 layer_ID);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-set-show-mask">gimp_layer_set_show_mask</a> (gint32 layer_ID,
gboolean show_mask);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-get-edit-mask">gimp_layer_get_edit_mask</a> (gint32 layer_ID);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-set-edit-mask">gimp_layer_set_edit_mask</a> (gint32 layer_ID,
gboolean edit_mask);
gdouble <a href="libgimp-gimplayer.html#gimp-layer-get-opacity">gimp_layer_get_opacity</a> (gint32 layer_ID);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-set-opacity">gimp_layer_set_opacity</a> (gint32 layer_ID,
gdouble opacity);
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> <a href="libgimp-gimplayer.html#gimp-layer-get-mode">gimp_layer_get_mode</a> (gint32 layer_ID);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-set-mode">gimp_layer_set_mode</a> (gint32 layer_ID,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> mode);
gboolean <a href="libgimp-gimplayer.html#gimp-layer-is-floating-sel">gimp_layer_is_floating_sel</a> (gint32 layer_ID);
</pre></div><div class="refsect1" lang="en"><a name="id2609751"></a><h2>Description</h2><p>
Operations on a single layer.
</p></div><div class="refsect1" lang="en"><a name="id2609761"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2609766"></a><h3><a name="gimp-layer-new"></a>gimp_layer_new ()</h3><a class="indexterm" name="id2609774"></a><pre class="programlisting">gint32 gimp_layer_new (gint32 image_ID,
const gchar *name,
gint width,
gint height,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpImageType"
>GimpImageType</a> type,
gdouble opacity,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> mode);</pre><p>
Create a new layer.
</p><p>
This procedure creates a new layer with the specified width, height,
and type. Name, opacity, and mode are also supplied parameters. The
new layer still needs to be added to the image, as this is not
automatic. Add the new layer with the 'gimp_image_add_layer'
command. Other attributes such as layer mask modes, and offsets
should be set with explicit procedure calls.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image to which to add the layer.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The layer name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The layer width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The layer height.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>type</tt></i><EFBFBD>:</span></td><td> The layer type.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The layer opacity.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mode</tt></i><EFBFBD>:</span></td><td> The layer combination mode.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The newly created layer.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2609933"></a><h3><a name="gimp-layer-copy"></a>gimp_layer_copy ()</h3><a class="indexterm" name="id2609941"></a><pre class="programlisting">gint32 gimp_layer_copy (gint32 layer_ID);</pre><p>
Copy a layer.
</p><p>
This procedure copies the specified layer and returns the copy. The
newly copied layer is for use within the original layer's image. It
should not be subsequently added to any other image. If you create
a copy of the background layer, remember to add an alpha channel
before you add the new layer to the image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer to copy.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The newly copied layer.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2621766"></a><h3><a name="gimp-layer-scale"></a>gimp_layer_scale ()</h3><a class="indexterm" name="id2621774"></a><pre class="programlisting">gboolean gimp_layer_scale (gint32 layer_ID,
gint new_width,
gint new_height,
gboolean local_origin);</pre><p>
Scale the layer to the specified extents.
</p><p>
This procedure scales the layer so that it's new width and height
are equal to the supplied parameters. The \"local_origin\" parameter
specifies whether to scale from the center of the layer, or from the
image origin. This operation only works if the layer has been added
to an image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_width</tt></i><EFBFBD>:</span></td><td> New layer width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_height</tt></i><EFBFBD>:</span></td><td> New layer height.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>local_origin</tt></i><EFBFBD>:</span></td><td> Use a local origin (as opposed to the image origin).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2621881"></a><h3><a name="gimp-layer-resize"></a>gimp_layer_resize ()</h3><a class="indexterm" name="id2621889"></a><pre class="programlisting">gboolean gimp_layer_resize (gint32 layer_ID,
gint new_width,
gint new_height,
gint offx,
gint offy);</pre><p>
Resize the layer to the specified extents.
</p><p>
This procedure resizes the layer so that it's new width and height
are equal to the supplied parameters. Offsets are also provided
which describe the position of the previous layer's content. This
operation only works if the layer has been added to an image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_width</tt></i><EFBFBD>:</span></td><td> New layer width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_height</tt></i><EFBFBD>:</span></td><td> New layer height.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offx</tt></i><EFBFBD>:</span></td><td> x offset between upper left corner of old and new layers: (old - new).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offy</tt></i><EFBFBD>:</span></td><td> y offset between upper left corner of old and new layers: (old - new).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622016"></a><h3><a name="gimp-layer-resize-to-image-size"></a>gimp_layer_resize_to_image_size ()</h3><a class="indexterm" name="id2622027"></a><pre class="programlisting">gboolean gimp_layer_resize_to_image_size (gint32 layer_ID);</pre><p>
Resize a layer to the image size.
</p><p>
This procedure resizes the layer so that it's new width and height
are equal to the width and height of its image container.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer to resize.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622081"></a><h3><a name="gimp-layer-translate"></a>gimp_layer_translate ()</h3><a class="indexterm" name="id2622089"></a><pre class="programlisting">gboolean gimp_layer_translate (gint32 layer_ID,
gint offx,
gint offy);</pre><p>
Translate the layer by the specified offsets.
</p><p>
This procedure translates the layer by the amounts specified in the
x and y arguments. These can be negative, and are considered offsets
from the current position. This command only works if the layer has
been added to an image. All additional layers contained in the image
which have the linked flag set to TRUE w ill also be translated by
the specified offsets.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offx</tt></i><EFBFBD>:</span></td><td> Offset in x direction.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offy</tt></i><EFBFBD>:</span></td><td> Offset in y direction.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622181"></a><h3><a name="gimp-layer-add-alpha"></a>gimp_layer_add_alpha ()</h3><a class="indexterm" name="id2622189"></a><pre class="programlisting">gboolean gimp_layer_add_alpha (gint32 layer_ID);</pre><p>
Add an alpha channel to the layer if it doesn't already have one.
</p><p>
This procedure adds an additional component to the specified layer
if it does not already possess an alpha channel. An alpha channel
makes it possible to move a layer from the bottom of the layer stack
and to clear and erase to transparency, instead of the background
color. This transforms images of type RGB to RGBA, GRAY to GRAYA,
and INDEXED to INDEXEDA.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622247"></a><h3><a name="gimp-layer-set-offsets"></a>gimp_layer_set_offsets ()</h3><a class="indexterm" name="id2622255"></a><pre class="programlisting">gboolean gimp_layer_set_offsets (gint32 layer_ID,
gint offx,
gint offy);</pre><p>
Set the layer offsets.
</p><p>
This procedure sets the offsets for the specified layer. The offsets
are relative to the image origin and can be any values. This
operation is valid only on layers which have been added to an image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offx</tt></i><EFBFBD>:</span></td><td> Offset in x direction.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offy</tt></i><EFBFBD>:</span></td><td> Offset in y direction.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622343"></a><h3><a name="gimp-layer-create-mask"></a>gimp_layer_create_mask ()</h3><a class="indexterm" name="id2622352"></a><pre class="programlisting">gint32 gimp_layer_create_mask (gint32 layer_ID,
<a href="libgimp-gimpenums.html#GimpAddMaskType">GimpAddMaskType</a> mask_type);</pre><p>
Create a layer mask for the specified specified layer.
</p><p>
This procedure creates a layer mask for the specified layer. Layer
masks serve as an additional alpha channel for a layer. A number of
ifferent types of masks are allowed for initialisation: completely
white masks (which will leave the layer fully visible), completely
black masks (which will give the layer complete transparency, the
layer's already existing alpha channel (which will leave the layer
fully visible, but which may be more useful than a white mask), the
current selection or a grayscale copy of the layer. The layer mask
still needs to be added to the layer. This can be done with a call
to 'gimp_layer_add_mask'.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer to which to add the mask.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mask_type</tt></i><EFBFBD>:</span></td><td> The type of mask.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The newly created mask.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622403"></a><h3><a name="gimp-layer-from-mask"></a>gimp_layer_from_mask ()</h3><a class="indexterm" name="id2622411"></a><pre class="programlisting">gint32 gimp_layer_from_mask (gint32 mask_ID);</pre><p>
Get the specified mask's layer.
</p><p>
This procedure returns the specified mask's layer , or -1 if none
exists.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>mask_ID</tt></i><EFBFBD>:</span></td><td> Mask for which to return the layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The mask's layer.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2622462"></a><h3><a name="gimp-layer-get-mask"></a>gimp_layer_get_mask ()</h3><a class="indexterm" name="id2622470"></a><pre class="programlisting">gint32 gimp_layer_get_mask (gint32 layer_ID);</pre><p>
Get the specified layer's mask if it exists.
</p><p>
This procedure returns the specified layer's mask, or -1 if none
exists.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The layer mask.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622518"></a><h3><a name="gimp-layer-add-mask"></a>gimp_layer_add_mask ()</h3><a class="indexterm" name="id2622525"></a><pre class="programlisting">gboolean gimp_layer_add_mask (gint32 layer_ID,
gint32 mask_ID);</pre><p>
Add a layer mask to the specified layer.
</p><p>
This procedure adds a layer mask to the specified layer. Layer masks
serve as an additional alpha channel for a layer. This procedure
will fail if a number of prerequisites aren't met. The layer cannot
already have a layer mask. The specified mask must exist and have
the same dimensions as the layer. Both the mask and the layer must
have been created for use with the specified image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer to receive the mask.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mask_ID</tt></i><EFBFBD>:</span></td><td> The mask to add to the layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622595"></a><h3><a name="gimp-layer-remove-mask"></a>gimp_layer_remove_mask ()</h3><a class="indexterm" name="id2622602"></a><pre class="programlisting">gboolean gimp_layer_remove_mask (gint32 layer_ID,
<a href="libgimp-gimpenums.html#GimpMaskApplyMode">GimpMaskApplyMode</a> mode);</pre><p>
Remove the specified layer mask from the layer.
</p><p>
This procedure removes the specified layer mask from the layer. If
the mask doesn't exist, an error is returned.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer from which to remove mask.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mode</tt></i><EFBFBD>:</span></td><td> Removal mode.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622671"></a><h3><a name="gimp-layer-new-from-drawable"></a>gimp_layer_new_from_drawable ()</h3><a class="indexterm" name="id2622679"></a><pre class="programlisting">gint32 gimp_layer_new_from_drawable (gint32 drawable_ID,
gint32 dest_image_ID);</pre><p>
Create a new layer by copying an existing drawable.
</p><p>
This procedure creates a new layer as a copy of the specified
drawable. The new layer still needs to be added to the image, as
this is not automatic. Add the new layer with the
'gimp_image_add_layer' command. Other attributes such as layer mask
modes, and offsets should be set with explicit procedure calls.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The source drawable from where the new layer is copied.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_image_ID</tt></i><EFBFBD>:</span></td><td> The destination image to which to add the layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The newly copied layer.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622754"></a><h3><a name="gimp-layer-get-preserve-trans"></a>gimp_layer_get_preserve_trans ()</h3><a class="indexterm" name="id2622764"></a><pre class="programlisting">gboolean gimp_layer_get_preserve_trans (gint32 layer_ID);</pre><p>
Get the preserve transperancy setting of the specified layer.
</p><p>
This procedure returns the specified layer's preserve transperancy
setting.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The layer's preserve transperancy setting.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622818"></a><h3><a name="gimp-layer-set-preserve-trans"></a>gimp_layer_set_preserve_trans ()</h3><a class="indexterm" name="id2622829"></a><pre class="programlisting">gboolean gimp_layer_set_preserve_trans (gint32 layer_ID,
gboolean preserve_trans);</pre><p>
Set the preserve transperancy setting of the specified layer.
</p><p>
This procedure sets the specified layer's preserve transperancy
setting.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>preserve_trans</tt></i><EFBFBD>:</span></td><td> The new layer's preserve transperancy setting.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622899"></a><h3><a name="gimp-layer-get-apply-mask"></a>gimp_layer_get_apply_mask ()</h3><a class="indexterm" name="id2622908"></a><pre class="programlisting">gboolean gimp_layer_get_apply_mask (gint32 layer_ID);</pre><p>
Get the apply mask of the specified layer.
</p><p>
This procedure returns the specified layer's apply mask. If the
value is non-zero, then the layer mask for this layer is currently
being composited with the layer's alpha channel.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The layer apply mask.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2622962"></a><h3><a name="gimp-layer-set-apply-mask"></a>gimp_layer_set_apply_mask ()</h3><a class="indexterm" name="id2622971"></a><pre class="programlisting">gboolean gimp_layer_set_apply_mask (gint32 layer_ID,
gboolean apply_mask);</pre><p>
Set the apply mask of the specified layer.
</p><p>
This procedure sets the specified layer's apply mask. This controls
whether the layer's mask is currently affecting the alpha channel.
If there is no layer mask, this function will return an error.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>apply_mask</tt></i><EFBFBD>:</span></td><td> The new layer apply mask.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2623042"></a><h3><a name="gimp-layer-get-show-mask"></a>gimp_layer_get_show_mask ()</h3><a class="indexterm" name="id2623051"></a><pre class="programlisting">gboolean gimp_layer_get_show_mask (gint32 layer_ID);</pre><p>
Get the show mask of the specified layer.
</p><p>
This procedure returns the specified layer's show mask. If the value
is non-zero, then the layer mask for this layer is currently being
shown instead of the layer.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The layer show mask.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2623104"></a><h3><a name="gimp-layer-set-show-mask"></a>gimp_layer_set_show_mask ()</h3><a class="indexterm" name="id2623112"></a><pre class="programlisting">gboolean gimp_layer_set_show_mask (gint32 layer_ID,
gboolean show_mask);</pre><p>
Set the show mask of the specified layer.
</p><p>
This procedure sets the specified layer's show mask. This controls
whether the layer or it's mask is visible. Non-zero values indicate
that the mask should be visible. If the layer has no mask, then this
function returns an error.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>show_mask</tt></i><EFBFBD>:</span></td><td> The new layer show mask.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2623183"></a><h3><a name="gimp-layer-get-edit-mask"></a>gimp_layer_get_edit_mask ()</h3><a class="indexterm" name="id2623191"></a><pre class="programlisting">gboolean gimp_layer_get_edit_mask (gint32 layer_ID);</pre><p>
Get the show mask of the specified layer.
</p><p>
This procedure returns the specified layer's show mask. If the value
is non-zero, then the layer mask for this layer is currently active,
and not the layer.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The layer show mask.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2623244"></a><h3><a name="gimp-layer-set-edit-mask"></a>gimp_layer_set_edit_mask ()</h3><a class="indexterm" name="id2623252"></a><pre class="programlisting">gboolean gimp_layer_set_edit_mask (gint32 layer_ID,
gboolean edit_mask);</pre><p>
Set the show mask of the specified layer.
</p><p>
This procedure sets the specified layer's show mask. This controls
whether the layer or it's mask is currently active for editing. If
the specified layer has no layer mask, then this procedure will
return an error.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>edit_mask</tt></i><EFBFBD>:</span></td><td> The new layer show mask.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2623322"></a><h3><a name="gimp-layer-get-opacity"></a>gimp_layer_get_opacity ()</h3><a class="indexterm" name="id2623331"></a><pre class="programlisting">gdouble gimp_layer_get_opacity (gint32 layer_ID);</pre><p>
Get the opacity of the specified layer.
</p><p>
This procedure returns the specified layer's opacity.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The layer opacity.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2623382"></a><h3><a name="gimp-layer-set-opacity"></a>gimp_layer_set_opacity ()</h3><a class="indexterm" name="id2623390"></a><pre class="programlisting">gboolean gimp_layer_set_opacity (gint32 layer_ID,
gdouble opacity);</pre><p>
Set the opacity of the specified layer.
</p><p>
This procedure sets the specified layer's opacity.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>opacity</tt></i><EFBFBD>:</span></td><td> The new layer opacity.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2623462"></a><h3><a name="gimp-layer-get-mode"></a>gimp_layer_get_mode ()</h3><a class="indexterm" name="id2623472"></a><pre class="programlisting"><a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> gimp_layer_get_mode (gint32 layer_ID);</pre><p>
Get the combination mode of the specified layer.
</p><p>
This procedure returns the specified layer's combination mode.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The layer combination mode.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2623534"></a><h3><a name="gimp-layer-set-mode"></a>gimp_layer_set_mode ()</h3><a class="indexterm" name="id2623544"></a><pre class="programlisting">gboolean gimp_layer_set_mode (gint32 layer_ID,
<a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> mode);</pre><p>
Set the combination mode of the specified layer.
</p><p>
This procedure sets the specified layer's combination mode.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mode</tt></i><EFBFBD>:</span></td><td> The new layer combination mode.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2623626"></a><h3><a name="gimp-layer-is-floating-sel"></a>gimp_layer_is_floating_sel ()</h3><a class="indexterm" name="id2623636"></a><pre class="programlisting">gboolean gimp_layer_is_floating_sel (gint32 layer_ID);</pre><p>
Is the specified layer a floating selection?
</p><p>
This procedure returns whether the layer is a floating selection.
Floating selections are special cases of layers which are attached
to a specific drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> The layer.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Non-zero if the layer is a floating selection.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpimage.html"><b>&lt;&lt;<EFBFBD>gimpimage</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimppaths.html"><b>gimppaths<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,93 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpmenu</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="GimpProgressBar.html" title="GimpProgressBar"><link rel="next" href="libgimp-gimpbrushmenu.html" title="gimpbrushmenu"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="GimpProgressBar.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpbrushmenu.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpmenu"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpmenu</span></h2><p>gimpmenu &#8212; Menus for selecting images, layers, channels and drawables</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean (<a href="libgimp-gimpmenu.html#GimpConstraintFunc">*GimpConstraintFunc</a>) (gint32 image_id,
gint32 drawable_id,
gpointer data);
void (<a href="libgimp-gimpmenu.html#GimpMenuCallback">*GimpMenuCallback</a>) (gint32 any_id,
gpointer data);
GtkWidget* <a href="libgimp-gimpmenu.html#gimp-image-menu-new">gimp_image_menu_new</a> (<a href="libgimp-gimpmenu.html#GimpConstraintFunc">GimpConstraintFunc</a> constraint,
<a href="libgimp-gimpmenu.html#GimpMenuCallback">GimpMenuCallback</a> callback,
gpointer data,
gint32 active_image);
GtkWidget* <a href="libgimp-gimpmenu.html#gimp-layer-menu-new">gimp_layer_menu_new</a> (<a href="libgimp-gimpmenu.html#GimpConstraintFunc">GimpConstraintFunc</a> constraint,
<a href="libgimp-gimpmenu.html#GimpMenuCallback">GimpMenuCallback</a> callback,
gpointer data,
gint32 active_layer);
GtkWidget* <a href="libgimp-gimpmenu.html#gimp-channel-menu-new">gimp_channel_menu_new</a> (<a href="libgimp-gimpmenu.html#GimpConstraintFunc">GimpConstraintFunc</a> constraint,
<a href="libgimp-gimpmenu.html#GimpMenuCallback">GimpMenuCallback</a> callback,
gpointer data,
gint32 active_channel);
GtkWidget* <a href="libgimp-gimpmenu.html#gimp-drawable-menu-new">gimp_drawable_menu_new</a> (<a href="libgimp-gimpmenu.html#GimpConstraintFunc">GimpConstraintFunc</a> constraint,
<a href="libgimp-gimpmenu.html#GimpMenuCallback">GimpMenuCallback</a> callback,
gpointer data,
gint32 active_drawable);
</pre></div><div class="refsect1" lang="en"><a name="id2669092"></a><h2>Description</h2><p>
</p></div><div class="refsect1" lang="en"><a name="id2669102"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2669107"></a><h3><a name="GimpConstraintFunc"></a>GimpConstraintFunc ()</h3><a class="indexterm" name="id2669116"></a><pre class="programlisting">gboolean (*GimpConstraintFunc) (gint32 image_id,
gint32 drawable_id,
gpointer data);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">GimpConstraintFunc</tt> is deprecated and should not be used in newly-written code.</p></div><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_id</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>drawable_id</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2671224"></a><h3><a name="GimpMenuCallback"></a>GimpMenuCallback ()</h3><a class="indexterm" name="id2671233"></a><pre class="programlisting">void (*GimpMenuCallback) (gint32 any_id,
gpointer data);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">GimpMenuCallback</tt> is deprecated and should not be used in newly-written code.</p></div><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>any_id</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2671293"></a><h3><a name="gimp-image-menu-new"></a>gimp_image_menu_new ()</h3><a class="indexterm" name="id2671301"></a><pre class="programlisting">GtkWidget* gimp_image_menu_new (<a href="libgimp-gimpmenu.html#GimpConstraintFunc">GimpConstraintFunc</a> constraint,
<a href="libgimp-gimpmenu.html#GimpMenuCallback">GimpMenuCallback</a> callback,
gpointer data,
gint32 active_image);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_image_menu_new</tt> is deprecated and should not be used in newly-written code.</p></div><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>constraint</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>active_image</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2671405"></a><h3><a name="gimp-layer-menu-new"></a>gimp_layer_menu_new ()</h3><a class="indexterm" name="id2671413"></a><pre class="programlisting">GtkWidget* gimp_layer_menu_new (<a href="libgimp-gimpmenu.html#GimpConstraintFunc">GimpConstraintFunc</a> constraint,
<a href="libgimp-gimpmenu.html#GimpMenuCallback">GimpMenuCallback</a> callback,
gpointer data,
gint32 active_layer);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_layer_menu_new</tt> is deprecated and should not be used in newly-written code.</p></div><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>constraint</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>active_layer</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2668366"></a><h3><a name="gimp-channel-menu-new"></a>gimp_channel_menu_new ()</h3><a class="indexterm" name="id2668374"></a><pre class="programlisting">GtkWidget* gimp_channel_menu_new (<a href="libgimp-gimpmenu.html#GimpConstraintFunc">GimpConstraintFunc</a> constraint,
<a href="libgimp-gimpmenu.html#GimpMenuCallback">GimpMenuCallback</a> callback,
gpointer data,
gint32 active_channel);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_channel_menu_new</tt> is deprecated and should not be used in newly-written code.</p></div><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>constraint</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>active_channel</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2668478"></a><h3><a name="gimp-drawable-menu-new"></a>gimp_drawable_menu_new ()</h3><a class="indexterm" name="id2668486"></a><pre class="programlisting">GtkWidget* gimp_drawable_menu_new (<a href="libgimp-gimpmenu.html#GimpConstraintFunc">GimpConstraintFunc</a> constraint,
<a href="libgimp-gimpmenu.html#GimpMenuCallback">GimpMenuCallback</a> callback,
gpointer data,
gint32 active_drawable);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_drawable_menu_new</tt> is deprecated and should not be used in newly-written code.</p></div><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>constraint</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>active_drawable</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="GimpProgressBar.html"><b>&lt;&lt;<EFBFBD>GimpProgressBar</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpbrushmenu.html"><b>gimpbrushmenu<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,46 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpmessage</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="prev" href="libgimp-gimphelp.html" title="gimphelp"><link rel="next" href="libgimp-gimpplugin.html" title="gimpplugin"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimphelp.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpplugin.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpmessage"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpmessage</span></h2><p>gimpmessage &#8212; Display a dialog box with a message.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimpmessage.html#gimp-message">gimp_message</a> (const gchar *message);
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpMessageHandlerType"
>GimpMessageHandlerType</a> <a href="libgimp-gimpmessage.html#gimp-message-get-handler">gimp_message_get_handler</a>
(void);
gboolean <a href="libgimp-gimpmessage.html#gimp-message-set-handler">gimp_message_set_handler</a> (<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpMessageHandlerType"
>GimpMessageHandlerType</a> handler);
</pre></div><div class="refsect1" lang="en"><a name="id2533325"></a><h2>Description</h2><p>
Display a dialog box with a message.
</p></div><div class="refsect1" lang="en"><a name="id2534309"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2534314"></a><h3><a name="gimp-message"></a>gimp_message ()</h3><a class="indexterm" name="id2534323"></a><pre class="programlisting">gboolean gimp_message (const gchar *message);</pre><p>
Displays a dialog box with a message.
</p><p>
Displays a dialog box with a message. Useful for status or error
reporting. The message must be in UTF-8 encoding.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>message</tt></i><EFBFBD>:</span></td><td> Message to display in the dialog.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2534374"></a><h3><a name="gimp-message-get-handler"></a>gimp_message_get_handler ()</h3><a class="indexterm" name="id2534383"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpMessageHandlerType"
>GimpMessageHandlerType</a> gimp_message_get_handler
(void);</pre><p>
Returns the current state of where warning messages are displayed.
</p><p>
This procedure returns the way g_message warnings are displayed.
They can be shown in a dialog box or printed on the console where
gimp was started.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The current handler type.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2581149"></a><h3><a name="gimp-message-set-handler"></a>gimp_message_set_handler ()</h3><a class="indexterm" name="id2581157"></a><pre class="programlisting">gboolean gimp_message_set_handler (<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpMessageHandlerType"
>GimpMessageHandlerType</a> handler);</pre><p>
Controls where warning messages are displayed.
</p><p>
This procedure controls how g_message warnings are displayed. They
can be shown in a dialog box or printed on the console where gimp
was started.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handler</tt></i><EFBFBD>:</span></td><td> The new handler type.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimphelp.html"><b>&lt;&lt;<EFBFBD>gimphelp</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpplugin.html"><b>gimpplugin<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,257 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppalette</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-data.html" title="Data Objects"><link rel="prev" href="libgimp-gimpgradients.html" title="gimpgradients"><link rel="next" href="libgimp-gimppalettes.html" title="gimppalettes"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpgradients.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-data.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimppalettes.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimppalette"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimppalette</span></h2><p>gimppalette &#8212; Functions operating on a single palette.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gchar* <a href="libgimp-gimppalette.html#gimp-palette-new">gimp_palette_new</a> (const gchar *name);
gchar* <a href="libgimp-gimppalette.html#gimp-palette-duplicate">gimp_palette_duplicate</a> (const gchar *name);
gchar* <a href="libgimp-gimppalette.html#gimp-palette-rename">gimp_palette_rename</a> (const gchar *name,
const gchar *new_name);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-delete">gimp_palette_delete</a> (const gchar *name);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-get-info">gimp_palette_get_info</a> (const gchar *name,
gint *num_colors);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-add-entry">gimp_palette_add_entry</a> (const gchar *name,
const gchar *entry_name,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
gint *entry_num);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-delete-entry">gimp_palette_delete_entry</a> (const gchar *name,
gint entry_num);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-entry-get-color">gimp_palette_entry_get_color</a> (const gchar *name,
gint entry_num,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-entry-set-color">gimp_palette_entry_set_color</a> (const gchar *name,
gint entry_num,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-entry-get-name">gimp_palette_entry_get_name</a> (const gchar *name,
gint entry_num,
gchar **entry_name);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-entry-set-name">gimp_palette_entry_set_name</a> (const gchar *name,
gint entry_num,
const gchar *entry_name);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-get-foreground">gimp_palette_get_foreground</a> (<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *foreground);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-get-background">gimp_palette_get_background</a> (<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *background);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-set-foreground">gimp_palette_set_foreground</a> (const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *foreground);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-set-background">gimp_palette_set_background</a> (const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *background);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-set-default-colors">gimp_palette_set_default_colors</a> (void);
gboolean <a href="libgimp-gimppalette.html#gimp-palette-swap-colors">gimp_palette_swap_colors</a> (void);
</pre></div><div class="refsect1" lang="en"><a name="id2653424"></a><h2>Description</h2><p>
Functions operating on a single palette.
</p></div><div class="refsect1" lang="en"><a name="id2653434"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2653439"></a><h3><a name="gimp-palette-new"></a>gimp_palette_new ()</h3><a class="indexterm" name="id2653447"></a><pre class="programlisting">gchar* gimp_palette_new (const gchar *name);</pre><p>
Creates a new palette
</p><p>
This procedure creates a new, uninitialized palette</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The requested name of the new palette.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The actual new palette name.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2653503"></a><h3><a name="gimp-palette-duplicate"></a>gimp_palette_duplicate ()</h3><a class="indexterm" name="id2653512"></a><pre class="programlisting">gchar* gimp_palette_duplicate (const gchar *name);</pre><p>
Duplicates a palette
</p><p>
This procedure creates an identical palette by a different name</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The palette name.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The name of the palette's copy.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2653568"></a><h3><a name="gimp-palette-rename"></a>gimp_palette_rename ()</h3><a class="indexterm" name="id2653576"></a><pre class="programlisting">gchar* gimp_palette_rename (const gchar *name,
const gchar *new_name);</pre><p>
Rename a palette
</p><p>
This procedure renames a palette</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The palette name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>new_name</tt></i><EFBFBD>:</span></td><td> The new name of the palette.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The actual new name of the palette.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2654843"></a><h3><a name="gimp-palette-delete"></a>gimp_palette_delete ()</h3><a class="indexterm" name="id2654852"></a><pre class="programlisting">gboolean gimp_palette_delete (const gchar *name);</pre><p>
Deletes a palette
</p><p>
This procedure deletes a palette</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The palette name.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2654906"></a><h3><a name="gimp-palette-get-info"></a>gimp_palette_get_info ()</h3><a class="indexterm" name="id2654914"></a><pre class="programlisting">gboolean gimp_palette_get_info (const gchar *name,
gint *num_colors);</pre><p>
Retrieve information about the specified palette.
</p><p>
This procedure retrieves information about the specified palette.
This includes the name, and the number of colors.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The palette name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_colors</tt></i><EFBFBD>:</span></td><td> The number of colors in the palette.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2654990"></a><h3><a name="gimp-palette-add-entry"></a>gimp_palette_add_entry ()</h3><a class="indexterm" name="id2654998"></a><pre class="programlisting">gboolean gimp_palette_add_entry (const gchar *name,
const gchar *entry_name,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
gint *entry_num);</pre><p>
Adds a palette entry to the specified palette.
</p><p>
This procedure adds an entry to the specifed palette. It returns an
error if the entry palette does not exist.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The palette name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>entry_name</tt></i><EFBFBD>:</span></td><td> The name of the entry.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The new entry's color color.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>entry_num</tt></i><EFBFBD>:</span></td><td> The index of the added entry.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2660999"></a><h3><a name="gimp-palette-delete-entry"></a>gimp_palette_delete_entry ()</h3><a class="indexterm" name="id2661007"></a><pre class="programlisting">gboolean gimp_palette_delete_entry (const gchar *name,
gint entry_num);</pre><p>
Deletes a palette entry from the specified palette.
</p><p>
This procedure deletes an entry from the specifed palette. It
returns an error if the entry palette does not exist.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The palette name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>entry_num</tt></i><EFBFBD>:</span></td><td> The index of the added entry.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2661082"></a><h3><a name="gimp-palette-entry-get-color"></a>gimp_palette_entry_get_color ()</h3><a class="indexterm" name="id2661090"></a><pre class="programlisting">gboolean gimp_palette_entry_get_color (const gchar *name,
gint entry_num,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);</pre><p>
Gets the specified palette entry from the specified palette.
</p><p>
This procedure retrieves the color of the zero-based entry specifed
for the specified palette. It returns an error if the entry does not
exist.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The palette name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>entry_num</tt></i><EFBFBD>:</span></td><td> The entry to retrieve.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The color requested.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2661183"></a><h3><a name="gimp-palette-entry-set-color"></a>gimp_palette_entry_set_color ()</h3><a class="indexterm" name="id2661191"></a><pre class="programlisting">gboolean gimp_palette_entry_set_color (const gchar *name,
gint entry_num,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);</pre><p>
Sets the specified palette entry in the specified palette.
</p><p>
This procedure sets the color of the zero-based entry specifed for
the specified palette. It returns an error if the entry does not
exist.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The palette name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>entry_num</tt></i><EFBFBD>:</span></td><td> The entry to retrieve.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The new color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2661283"></a><h3><a name="gimp-palette-entry-get-name"></a>gimp_palette_entry_get_name ()</h3><a class="indexterm" name="id2661292"></a><pre class="programlisting">gboolean gimp_palette_entry_get_name (const gchar *name,
gint entry_num,
gchar **entry_name);</pre><p>
Gets the specified palette entry from the specified palette.
</p><p>
This procedure retrieves the name of the zero-based entry specifed
for the specified palette. It returns an error if the entry does not
exist.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The palette name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>entry_num</tt></i><EFBFBD>:</span></td><td> The entry to retrieve.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>entry_name</tt></i><EFBFBD>:</span></td><td> The name requested.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2661384"></a><h3><a name="gimp-palette-entry-set-name"></a>gimp_palette_entry_set_name ()</h3><a class="indexterm" name="id2661392"></a><pre class="programlisting">gboolean gimp_palette_entry_set_name (const gchar *name,
gint entry_num,
const gchar *entry_name);</pre><p>
Sets the specified palette entry in the specified palette.
</p><p>
This procedure sets the name of the zero-based entry specifed for
the specified palette. It returns an error if the entry does not
exist.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The palette name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>entry_num</tt></i><EFBFBD>:</span></td><td> The entry to retrieve.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>entry_name</tt></i><EFBFBD>:</span></td><td> The new name.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2661485"></a><h3><a name="gimp-palette-get-foreground"></a>gimp_palette_get_foreground ()</h3><a class="indexterm" name="id2661493"></a><pre class="programlisting">gboolean gimp_palette_get_foreground (<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *foreground);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_palette_get_foreground</tt> is deprecated and should not be used in newly-written code.</p></div><p>
Get the current GIMP foreground color.
</p><p>
This procedure retrieves the current GIMP foreground color. The
foreground color is used in a variety of tools such as paint tools,
blending, and bucket fill.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>foreground</tt></i><EFBFBD>:</span></td><td> The foreground color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2661557"></a><h3><a name="gimp-palette-get-background"></a>gimp_palette_get_background ()</h3><a class="indexterm" name="id2661565"></a><pre class="programlisting">gboolean gimp_palette_get_background (<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *background);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_palette_get_background</tt> is deprecated and should not be used in newly-written code.</p></div><p>
Get the current GIMP background color.
</p><p>
This procedure retrieves the current GIMP background color. The
background color is used in a variety of tools such as blending,
erasing (with non-alpha images), and image filling.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>background</tt></i><EFBFBD>:</span></td><td> The background color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2661629"></a><h3><a name="gimp-palette-set-foreground"></a>gimp_palette_set_foreground ()</h3><a class="indexterm" name="id2661638"></a><pre class="programlisting">gboolean gimp_palette_set_foreground (const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *foreground);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_palette_set_foreground</tt> is deprecated and should not be used in newly-written code.</p></div><p>
Set the current GIMP foreground color.
</p><p>
This procedure sets the current GIMP foreground color. After this is
set, operations which use foreground such as paint tools, blending,
and bucket fill will use the new value.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>foreground</tt></i><EFBFBD>:</span></td><td> The foreground color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2661702"></a><h3><a name="gimp-palette-set-background"></a>gimp_palette_set_background ()</h3><a class="indexterm" name="id2661710"></a><pre class="programlisting">gboolean gimp_palette_set_background (const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *background);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_palette_set_background</tt> is deprecated and should not be used in newly-written code.</p></div><p>
Set the current GIMP background color.
</p><p>
This procedure sets the current GIMP background color. After this is
set, operations which use background such as blending, filling
images, clearing, and erasing (in non-alpha images) will use the new
value.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>background</tt></i><EFBFBD>:</span></td><td> The background color.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2661775"></a><h3><a name="gimp-palette-set-default-colors"></a>gimp_palette_set_default_colors ()</h3><a class="indexterm" name="id2661786"></a><pre class="programlisting">gboolean gimp_palette_set_default_colors (void);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_palette_set_default_colors</tt> is deprecated and should not be used in newly-written code.</p></div><p>
Set the current GIMP foreground and background colors to black and
white.
</p><p>
This procedure sets the current GIMP foreground and background
colors to their initial default values, black and white.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2661835"></a><h3><a name="gimp-palette-swap-colors"></a>gimp_palette_swap_colors ()</h3><a class="indexterm" name="id2661843"></a><pre class="programlisting">gboolean gimp_palette_swap_colors (void);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_palette_swap_colors</tt> is deprecated and should not be used in newly-written code.</p></div><p>
Swap the current GIMP foreground and background colors.
</p><p>
This procedure swaps the current GIMP foreground and background
colors, so that the new foreground color becomes the old background
color and vice versa.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpgradients.html"><b>&lt;&lt;<EFBFBD>gimpgradients</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimppalettes.html"><b>gimppalettes<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,46 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppalettemenu</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="libgimp-gimpgradientmenu.html" title="gimpgradientmenu"><link rel="next" href="libgimp-gimppatternmenu.html" title="gimppatternmenu"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpgradientmenu.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimppatternmenu.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimppalettemenu"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimppalettemenu</span></h2><p>gimppalettemenu &#8212; A widget for selecting palettes.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
GtkWidget* <a href="libgimp-gimppalettemenu.html#gimp-palette-select-widget-new">gimp_palette_select_widget_new</a> (const gchar *title,
const gchar *palette_name,
<a href="libgimp-gimppaletteselect.html#GimpRunPaletteCallback">GimpRunPaletteCallback</a> callback,
gpointer data);
void <a href="libgimp-gimppalettemenu.html#gimp-palette-select-widget-close">gimp_palette_select_widget_close</a>
(GtkWidget *widget);
void <a href="libgimp-gimppalettemenu.html#gimp-palette-select-widget-set">gimp_palette_select_widget_set</a> (GtkWidget *widget,
const gchar *palette_name);
</pre></div><div class="refsect1" lang="en"><a name="id2673503"></a><h2>Description</h2><p>
A widget for selecting palettes.
</p></div><div class="refsect1" lang="en"><a name="id2672206"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2672212"></a><h3><a name="gimp-palette-select-widget-new"></a>gimp_palette_select_widget_new ()</h3><a class="indexterm" name="id2672220"></a><pre class="programlisting">GtkWidget* gimp_palette_select_widget_new (const gchar *title,
const gchar *palette_name,
<a href="libgimp-gimppaletteselect.html#GimpRunPaletteCallback">GimpRunPaletteCallback</a> callback,
gpointer data);</pre><p>
Creates a new <span class="type">GtkWidget</span> that completely controls the selection of
a palette. This widget is suitable for placement in a table in a
plug-in dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>title</tt></i><EFBFBD>:</span></td><td> Title of the dialog to use or <tt class="literal">NULL</tt> means to use the default
title.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>palette_name</tt></i><EFBFBD>:</span></td><td> Initial palette name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td> A function to call when the selected palette changes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> A pointer to arbitary data to be used in the call to <i class="parameter"><tt>callback</tt></i>.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> A <span class="type">GtkWidget</span> that you can use in your UI.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2672491"></a><h3><a name="gimp-palette-select-widget-close"></a>gimp_palette_select_widget_close ()</h3><a class="indexterm" name="id2672499"></a><pre class="programlisting">void gimp_palette_select_widget_close
(GtkWidget *widget);</pre><p>
Closes the popup window associated with <i class="parameter"><tt>widget</tt></i>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i><EFBFBD>:</span></td><td> A palette select widget.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2672545"></a><h3><a name="gimp-palette-select-widget-set"></a>gimp_palette_select_widget_set ()</h3><a class="indexterm" name="id2672554"></a><pre class="programlisting">void gimp_palette_select_widget_set (GtkWidget *widget,
const gchar *palette_name);</pre><p>
Sets the current palette for the palette select widget. Calls the
callback function if one was supplied in the call to
<a href="libgimp-gimppalettemenu.html#gimp-palette-select-widget-new"><tt class="function">gimp_palette_select_widget_new()</tt></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i><EFBFBD>:</span></td><td> A palette select widget.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>palette_name</tt></i><EFBFBD>:</span></td><td> Palette name to set; <tt class="literal">NULL</tt> means no change.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpgradientmenu.html"><b>&lt;&lt;<EFBFBD>gimpgradientmenu</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimppatternmenu.html"><b>gimppatternmenu<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,61 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppalettes</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-data.html" title="Data Objects"><link rel="prev" href="libgimp-gimppalette.html" title="gimppalette"><link rel="next" href="libgimp-gimppattern.html" title="gimppattern"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimppalette.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-data.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimppattern.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimppalettes"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimppalettes</span></h2><p>gimppalettes &#8212; Operations related to palettes.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimppalettes.html#gimp-palettes-refresh">gimp_palettes_refresh</a> (void);
gchar** <a href="libgimp-gimppalettes.html#gimp-palettes-get-list">gimp_palettes_get_list</a> (const gchar *filter,
gint *num_palettes);
gchar* <a href="libgimp-gimppalettes.html#gimp-palettes-get-palette">gimp_palettes_get_palette</a> (gint *num_colors);
gboolean <a href="libgimp-gimppalettes.html#gimp-palettes-set-palette">gimp_palettes_set_palette</a> (const gchar *name);
gchar* <a href="libgimp-gimppalettes.html#gimp-palettes-get-palette-entry">gimp_palettes_get_palette_entry</a> (const gchar *name,
gint entry_num,
gint *num_colors,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);
</pre></div><div class="refsect1" lang="en"><a name="id2653689"></a><h2>Description</h2><p>
Operations related to palettes.
</p></div><div class="refsect1" lang="en"><a name="id2653699"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2653704"></a><h3><a name="gimp-palettes-refresh"></a>gimp_palettes_refresh ()</h3><a class="indexterm" name="id2653713"></a><pre class="programlisting">gboolean gimp_palettes_refresh (void);</pre><p>
Refreshes current palettes. This function always succeeds.
</p><p>
This procedure retrieves all palettes currently in the user's
palette path and updates the palette dialogs accordingly.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2653750"></a><h3><a name="gimp-palettes-get-list"></a>gimp_palettes_get_list ()</h3><a class="indexterm" name="id2654681"></a><pre class="programlisting">gchar** gimp_palettes_get_list (const gchar *filter,
gint *num_palettes);</pre><p>
Retrieves a list of all of the available palettes
</p><p>
This procedure returns a complete listing of available palettes.
Each name returned can be used as input to the command
'gimp_context_set_palette'.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>filter</tt></i><EFBFBD>:</span></td><td> An optional regular expression used to filter the list.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_palettes</tt></i><EFBFBD>:</span></td><td> The number of palettes in the list.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The list of palette names.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2654753"></a><h3><a name="gimp-palettes-get-palette"></a>gimp_palettes_get_palette ()</h3><a class="indexterm" name="id2654761"></a><pre class="programlisting">gchar* gimp_palettes_get_palette (gint *num_colors);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_palettes_get_palette</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpcontext.html#gimp-context-get-palette"><tt class="function">gimp_context_get_palette()</tt></a>
instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>num_colors</tt></i><EFBFBD>:</span></td><td> The palette num_colors.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The palette name.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2643666"></a><h3><a name="gimp-palettes-set-palette"></a>gimp_palettes_set_palette ()</h3><a class="indexterm" name="id2643674"></a><pre class="programlisting">gboolean gimp_palettes_set_palette (const gchar *name);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_palettes_set_palette</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpcontext.html#gimp-context-set-palette"><tt class="function">gimp_context_set_palette()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The palette name.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2643737"></a><h3><a name="gimp-palettes-get-palette-entry"></a>gimp_palettes_get_palette_entry ()</h3><a class="indexterm" name="id2643745"></a><pre class="programlisting">gchar* gimp_palettes_get_palette_entry (const gchar *name,
gint entry_num,
gint *num_colors,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_palettes_get_palette_entry</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimppalette.html#gimp-palette-entry-get-color"><tt class="function">gimp_palette_entry_get_color()</tt></a>
instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The palette name (\"\" means currently active palette).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>entry_num</tt></i><EFBFBD>:</span></td><td> The entry to retrieve.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_colors</tt></i><EFBFBD>:</span></td><td> The palette num_colors.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The color requested.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The palette name.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimppalette.html"><b>&lt;&lt;<EFBFBD>gimppalette</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimppattern.html"><b>gimppattern<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,74 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppaletteselect</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="prev" href="libgimp-gimpgradientselect.html" title="gimpgradientselect"><link rel="next" href="libgimp-gimppatternselect.html" title="gimppatternselect"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpgradientselect.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-selectors.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimppatternselect.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimppaletteselect"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimppaletteselect</span></h2><p>gimppaletteselect &#8212; Functions providing a palette selection dialog.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
void (<a href="libgimp-gimppaletteselect.html#GimpRunPaletteCallback">*GimpRunPaletteCallback</a>) (const gchar *palette_name,
gboolean dialog_closing,
gpointer user_data);
const gchar* <a href="libgimp-gimppaletteselect.html#gimp-palette-select-new">gimp_palette_select_new</a> (const gchar *title,
const gchar *palette_name,
<a href="libgimp-gimppaletteselect.html#GimpRunPaletteCallback">GimpRunPaletteCallback</a> callback,
gpointer data);
void <a href="libgimp-gimppaletteselect.html#gimp-palette-select-destroy">gimp_palette_select_destroy</a> (const gchar *palette_callback);
gboolean <a href="libgimp-gimppaletteselect.html#gimp-palettes-popup">gimp_palettes_popup</a> (const gchar *palette_callback,
const gchar *popup_title,
const gchar *initial_palette);
gboolean <a href="libgimp-gimppaletteselect.html#gimp-palettes-close-popup">gimp_palettes_close_popup</a> (const gchar *palette_callback);
gboolean <a href="libgimp-gimppaletteselect.html#gimp-palettes-set-popup">gimp_palettes_set_popup</a> (const gchar *palette_callback,
const gchar *palette_name);
</pre></div><div class="refsect1" lang="en"><a name="id2663814"></a><h2>Description</h2><p>
Functions providing a palette selection dialog.
</p></div><div class="refsect1" lang="en"><a name="id2663825"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2663830"></a><h3><a name="GimpRunPaletteCallback"></a>GimpRunPaletteCallback ()</h3><a class="indexterm" name="id2663839"></a><pre class="programlisting">void (*GimpRunPaletteCallback) (const gchar *palette_name,
gboolean dialog_closing,
gpointer user_data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>palette_name</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dialog_closing</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2665775"></a><h3><a name="gimp-palette-select-new"></a>gimp_palette_select_new ()</h3><a class="indexterm" name="id2665783"></a><pre class="programlisting">const gchar* gimp_palette_select_new (const gchar *title,
const gchar *palette_name,
<a href="libgimp-gimppaletteselect.html#GimpRunPaletteCallback">GimpRunPaletteCallback</a> callback,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>title</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>palette_name</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2662230"></a><h3><a name="gimp-palette-select-destroy"></a>gimp_palette_select_destroy ()</h3><a class="indexterm" name="id2662238"></a><pre class="programlisting">void gimp_palette_select_destroy (const gchar *palette_callback);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>palette_callback</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2662272"></a><h3><a name="gimp-palettes-popup"></a>gimp_palettes_popup ()</h3><a class="indexterm" name="id2662281"></a><pre class="programlisting">gboolean gimp_palettes_popup (const gchar *palette_callback,
const gchar *popup_title,
const gchar *initial_palette);</pre><p>
Invokes the Gimp palette selection.
</p><p>
This procedure popups the palette selection dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>palette_callback</tt></i><EFBFBD>:</span></td><td> The callback PDB proc to call when palette selection is made.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>popup_title</tt></i><EFBFBD>:</span></td><td> Title to give the palette popup window.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>initial_palette</tt></i><EFBFBD>:</span></td><td> The name of the palette to set as the first selected.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2662368"></a><h3><a name="gimp-palettes-close-popup"></a>gimp_palettes_close_popup ()</h3><a class="indexterm" name="id2662377"></a><pre class="programlisting">gboolean gimp_palettes_close_popup (const gchar *palette_callback);</pre><p>
Popdown the Gimp palette selection.
</p><p>
This procedure closes an opened palette selection dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>palette_callback</tt></i><EFBFBD>:</span></td><td> The name of the callback registered for this popup.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2662429"></a><h3><a name="gimp-palettes-set-popup"></a>gimp_palettes_set_popup ()</h3><a class="indexterm" name="id2662438"></a><pre class="programlisting">gboolean gimp_palettes_set_popup (const gchar *palette_callback,
const gchar *palette_name);</pre><p>
Sets the current palette selection in a popup.
</p><p>
Sets the current palette selection in a popup.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>palette_callback</tt></i><EFBFBD>:</span></td><td> The name of the callback registered for this popup.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>palette_name</tt></i><EFBFBD>:</span></td><td> The name of the palette to set as selected.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpgradientselect.html"><b>&lt;&lt;<EFBFBD>gimpgradientselect</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimppatternselect.html"><b>gimppatternselect<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,239 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppaths</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimplayer.html" title="gimplayer"><link rel="next" href="libgimp-gimppixelfetcher.html" title="gimppixelfetcher"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimplayer.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimppixelfetcher.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimppaths"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimppaths</span></h2><p>gimppaths &#8212; Operations related to paths.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gchar** <a href="libgimp-gimppaths.html#gimp-path-list">gimp_path_list</a> (gint32 image_ID,
gint *num_paths);
gint <a href="libgimp-gimppaths.html#gimp-path-get-points">gimp_path_get_points</a> (gint32 image_ID,
const gchar *name,
gint *path_closed,
gint *num_path_point_details,
gdouble **points_pairs);
gchar* <a href="libgimp-gimppaths.html#gimp-path-get-current">gimp_path_get_current</a> (gint32 image_ID);
gboolean <a href="libgimp-gimppaths.html#gimp-path-set-current">gimp_path_set_current</a> (gint32 image_ID,
const gchar *name);
gboolean <a href="libgimp-gimppaths.html#gimp-path-set-points">gimp_path_set_points</a> (gint32 image_ID,
const gchar *name,
gint ptype,
gint num_path_points,
const gdouble *points_pairs);
gboolean <a href="libgimp-gimppaths.html#gimp-path-stroke-current">gimp_path_stroke_current</a> (gint32 image_ID);
gint <a href="libgimp-gimppaths.html#gimp-path-get-point-at-dist">gimp_path_get_point_at_dist</a> (gint32 image_ID,
gdouble distance,
gint *y_point,
gdouble *slope);
gint <a href="libgimp-gimppaths.html#gimp-path-get-tattoo">gimp_path_get_tattoo</a> (gint32 image_ID,
const gchar *name);
gchar* <a href="libgimp-gimppaths.html#gimp-get-path-by-tattoo">gimp_get_path_by_tattoo</a> (gint32 image_ID,
gint tattoo);
gboolean <a href="libgimp-gimppaths.html#gimp-path-delete">gimp_path_delete</a> (gint32 image_ID,
const gchar *name);
gint <a href="libgimp-gimppaths.html#gimp-path-get-locked">gimp_path_get_locked</a> (gint32 image_ID,
const gchar *name);
gboolean <a href="libgimp-gimppaths.html#gimp-path-set-locked">gimp_path_set_locked</a> (gint32 image_ID,
const gchar *name,
gint lockstatus);
gboolean <a href="libgimp-gimppaths.html#gimp-path-set-tattoo">gimp_path_set_tattoo</a> (gint32 image_ID,
const gchar *name,
gint tattovalue);
gboolean <a href="libgimp-gimppaths.html#gimp-path-to-selection">gimp_path_to_selection</a> (gint32 image_ID,
const gchar *name,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> op,
gboolean antialias,
gboolean feather,
gdouble feather_radius_x,
gdouble feather_radius_y);
gboolean <a href="libgimp-gimppaths.html#gimp-path-import">gimp_path_import</a> (gint32 image_ID,
const gchar *filename,
gboolean merge,
gboolean scale);
</pre></div><div class="refsect1" lang="en"><a name="id2617408"></a><h2>Description</h2><p>
Operations related to paths.
</p></div><div class="refsect1" lang="en"><a name="id2617418"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2617423"></a><h3><a name="gimp-path-list"></a>gimp_path_list ()</h3><a class="indexterm" name="id2617431"></a><pre class="programlisting">gchar** gimp_path_list (gint32 image_ID,
gint *num_paths);</pre><p>
List the paths associated with the passed image.
</p><p>
List the paths associated with the passed image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The ID of the image to list the paths from.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_paths</tt></i><EFBFBD>:</span></td><td> The number of paths returned.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> List of the paths belonging to this image.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2617502"></a><h3><a name="gimp-path-get-points"></a>gimp_path_get_points ()</h3><a class="indexterm" name="id2617510"></a><pre class="programlisting">gint gimp_path_get_points (gint32 image_ID,
const gchar *name,
gint *path_closed,
gint *num_path_point_details,
gdouble **points_pairs);</pre><p>
List the points associated with the named path.
</p><p>
List the points associated with the named path.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The ID of the image to list the paths from.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the path whose points should be listed.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>path_closed</tt></i><EFBFBD>:</span></td><td> Return if the path is closed. (0 = path open, 1 = path closed).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_path_point_details</tt></i><EFBFBD>:</span></td><td> The number of points returned. Each point is made up of (x, y, pnt_type) of floats.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>points_pairs</tt></i><EFBFBD>:</span></td><td> The points in the path represented as 3 floats. The first is the x pos, next is the y pos, last is the type of the pnt. The type field is dependant on the path type. For beziers (type 1 paths) the type can either be (1.0 = BEZIER_ANCHOR, 2.0 = BEZIER_CONTROL, 3.0 = BEZIER_MOVE). Note all points are returned in pixel resolution.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The type of the path. Currently only one type (1 = Bezier) is supported.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2603686"></a><h3><a name="gimp-path-get-current"></a>gimp_path_get_current ()</h3><a class="indexterm" name="id2603694"></a><pre class="programlisting">gchar* gimp_path_get_current (gint32 image_ID);</pre><p>
The name of the current path. Error if no paths.
</p><p>
The name of the current path. Error if no paths.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The ID of the image to get the current path from.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The name of the current path.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2603746"></a><h3><a name="gimp-path-set-current"></a>gimp_path_set_current ()</h3><a class="indexterm" name="id2603755"></a><pre class="programlisting">gboolean gimp_path_set_current (gint32 image_ID,
const gchar *name);</pre><p>
Sets the current path associated with the passed image.
</p><p>
Sets a named path as the current path.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The ID of the image in which a path will become current.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the path to make current.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2603825"></a><h3><a name="gimp-path-set-points"></a>gimp_path_set_points ()</h3><a class="indexterm" name="id2603833"></a><pre class="programlisting">gboolean gimp_path_set_points (gint32 image_ID,
const gchar *name,
gint ptype,
gint num_path_points,
const gdouble *points_pairs);</pre><p>
Set the points associated with the named path.
</p><p>
Set the points associated with the named path.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The ID of the image to set the paths in.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the path to create. If it exists then a unique name will be created - query the list of paths if you want to make sure that the name of the path you create is unique. This will be set as the current path.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>ptype</tt></i><EFBFBD>:</span></td><td> The type of the path. Currently only one type (1 = Bezier) is supported.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_path_points</tt></i><EFBFBD>:</span></td><td> The number of elements in the array, i.e. the number of points in the path * 3. Each point is made up of (x, y, type) of floats. Currently only the creation of bezier curves is allowed. The type parameter must be set to (1) to indicate a BEZIER type curve. Note that for BEZIER curves, points must be given in the following order: ACCACCAC... If the path is not closed the last control point is missed off. Points consist of three control points (control/anchor/control) so for a curve that is not closed there must be at least two points passed (2 x,y pairs). If (num_path_points/3) % 3 = 0 then the path is assumed to be closed and the points are ACCACCACCACC.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>points_pairs</tt></i><EFBFBD>:</span></td><td> The points in the path represented as 3 floats. The first is the x pos, next is the y pos, last is the type of the pnt. The type field is dependant on the path type. For beziers (type 1 paths) the type can either be (1.0 = BEZIER_ANCHOR, 2.0 = BEZIER_CONTROL, 3.0= BEZIER_MOVE). Note all points are returned in pixel resolution.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2526810"></a><h3><a name="gimp-path-stroke-current"></a>gimp_path_stroke_current ()</h3><a class="indexterm" name="id2621310"></a><pre class="programlisting">gboolean gimp_path_stroke_current (gint32 image_ID);</pre><p>
Stroke the current path in the passed image.
</p><p>
Stroke the current path in the passed image.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The ID of the image which contains the path to stroke.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2621358"></a><h3><a name="gimp-path-get-point-at-dist"></a>gimp_path_get_point_at_dist ()</h3><a class="indexterm" name="id2621366"></a><pre class="programlisting">gint gimp_path_get_point_at_dist (gint32 image_ID,
gdouble distance,
gint *y_point,
gdouble *slope);</pre><p>
Get point on a path at a specified distance along the path.
</p><p>
This will return the x,y position of a point at a given distance
along the bezier curve. The distance will be obtained by first
digitizing the curve internally and then walking along the curve.
For a closed curve the start of the path is the first point on the
path that was created. This might not be obvious. Note the current
path is used.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The ID of the image the paths belongs to.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>distance</tt></i><EFBFBD>:</span></td><td> The distance along the path.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y_point</tt></i><EFBFBD>:</span></td><td> The y position of the point.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>slope</tt></i><EFBFBD>:</span></td><td> The slope (dy / dx) at the specified point.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The x position of the point.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2621467"></a><h3><a name="gimp-path-get-tattoo"></a>gimp_path_get_tattoo ()</h3><a class="indexterm" name="id2621474"></a><pre class="programlisting">gint gimp_path_get_tattoo (gint32 image_ID,
const gchar *name);</pre><p>
Returns the tattoo associated with the name path.
</p><p>
This procedure returns the tattoo associated with the specified
path. A tattoo is a unique and permanent identifier attached to a
path that can be used to uniquely identify a path within an image
even between sessions.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the path whose tattoo should be obtained.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The tattoo associated with the named path.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2621541"></a><h3><a name="gimp-get-path-by-tattoo"></a>gimp_get_path_by_tattoo ()</h3><a class="indexterm" name="id2621549"></a><pre class="programlisting">gchar* gimp_get_path_by_tattoo (gint32 image_ID,
gint tattoo);</pre><p>
Return the name of the path with the given tattoo.
</p><p>
The procedure returns the name of the path in the specified image
which has the passed tattoo. The tattoos are unique within the image
and will be preserved across sessions and through renaming of the
path. An error is returned if no path with the specified tattoo can
be found.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>tattoo</tt></i><EFBFBD>:</span></td><td> The tattoo of the required path.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The name of the path with the specified tattoo.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2621623"></a><h3><a name="gimp-path-delete"></a>gimp_path_delete ()</h3><a class="indexterm" name="id2621631"></a><pre class="programlisting">gboolean gimp_path_delete (gint32 image_ID,
const gchar *name);</pre><p>
Delete the named path associated with the passed image.
</p><p>
Delete the named path.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The ID of the image to delete the path from.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the path to delete.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2621699"></a><h3><a name="gimp-path-get-locked"></a>gimp_path_get_locked ()</h3><a class="indexterm" name="id2621707"></a><pre class="programlisting">gint gimp_path_get_locked (gint32 image_ID,
const gchar *name);</pre><p>
Returns the locked status associated with the named path.
</p><p>
This procedure returns the lock status associated with the specified
path. A path can be \"locked\" which means that the transformation
tool operations will also apply to the path.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the path whose locked status should be obtained.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The lock status associated with the name path. 0 is returned if the path is not locked. 1 is returned if the path is locked.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2631928"></a><h3><a name="gimp-path-set-locked"></a>gimp_path_set_locked ()</h3><a class="indexterm" name="id2631936"></a><pre class="programlisting">gboolean gimp_path_set_locked (gint32 image_ID,
const gchar *name,
gint lockstatus);</pre><p>
Set the locked status associated with the named path.
</p><p>
This procedure sets the lock status associated with the specified
path. A path can be \"locked\" which means that the transformation
tool operations will also apply to the path.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the name of the path whose locked status should be set.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>lockstatus</tt></i><EFBFBD>:</span></td><td> The lock status associated with the name path. 0 if the path is not locked. 1 if the path is to be locked.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2632027"></a><h3><a name="gimp-path-set-tattoo"></a>gimp_path_set_tattoo ()</h3><a class="indexterm" name="id2632035"></a><pre class="programlisting">gboolean gimp_path_set_tattoo (gint32 image_ID,
const gchar *name,
gint tattovalue);</pre><p>
Sets the tattoo associated with the named path.
</p><p>
This procedure sets the tattoo associated with the specified path. A
tattoo is a unique and permenant identifier attached to a path that
can be used to uniquely identify a path within an image even between
sessions. Note that the value passed to this function must have been
obtained from a previous call to path_get_tattoo.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the name of the path whose tattoo should be set.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>tattovalue</tt></i><EFBFBD>:</span></td><td> The tattoo associated with the name path. Only values returned from 'path_get_tattoo' should be used here.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2632129"></a><h3><a name="gimp-path-to-selection"></a>gimp_path_to_selection ()</h3><a class="indexterm" name="id2632137"></a><pre class="programlisting">gboolean gimp_path_to_selection (gint32 image_ID,
const gchar *name,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> op,
gboolean antialias,
gboolean feather,
gdouble feather_radius_x,
gdouble feather_radius_y);</pre><p>
Transforms the active path into a selection
</p><p>
This procedure renders the desired path into the current selection.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The name of the path which should be made into selection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>op</tt></i><EFBFBD>:</span></td><td> The desired operation with current selection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>antialias</tt></i><EFBFBD>:</span></td><td> Antialias selection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather</tt></i><EFBFBD>:</span></td><td> Feather selection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather_radius_x</tt></i><EFBFBD>:</span></td><td> Feather radius x.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather_radius_y</tt></i><EFBFBD>:</span></td><td> Feather radius y.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2632293"></a><h3><a name="gimp-path-import"></a>gimp_path_import ()</h3><a class="indexterm" name="id2632301"></a><pre class="programlisting">gboolean gimp_path_import (gint32 image_ID,
const gchar *filename,
gboolean merge,
gboolean scale);</pre><p>
Import paths from an SVG file.
</p><p>
This procedure imports paths from an SVG file. This is a temporary
solution until the new vectors PDB API is in place. Don't rely on
this function being available in future GIMP releases.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>filename</tt></i><EFBFBD>:</span></td><td> The name of the SVG file to import.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>merge</tt></i><EFBFBD>:</span></td><td> Merge paths into a single vectors object.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>scale</tt></i><EFBFBD>:</span></td><td> Scale the SVG to image dimensions.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimplayer.html"><b>&lt;&lt;<EFBFBD>gimplayer</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimppixelfetcher.html"><b>gimppixelfetcher<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,54 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppattern</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-data.html" title="Data Objects"><link rel="prev" href="libgimp-gimppalettes.html" title="gimppalettes"><link rel="next" href="libgimp-gimppatterns.html" title="gimppatterns"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimppalettes.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-data.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimppatterns.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimppattern"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimppattern</span></h2><p>gimppattern &#8212; Functions operating on a single pattern.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimppattern.html#gimp-pattern-get-info">gimp_pattern_get_info</a> (const gchar *name,
gint *width,
gint *height,
gint *bpp);
gboolean <a href="libgimp-gimppattern.html#gimp-pattern-get-pixels">gimp_pattern_get_pixels</a> (const gchar *name,
gint *width,
gint *height,
gint *bpp,
gint *num_color_bytes,
guint8 **color_bytes);
</pre></div><div class="refsect1" lang="en"><a name="id2638758"></a><h2>Description</h2><p>
Functions operating on a single pattern.
</p></div><div class="refsect1" lang="en"><a name="id2638767"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2638773"></a><h3><a name="gimp-pattern-get-info"></a>gimp_pattern_get_info ()</h3><a class="indexterm" name="id2638781"></a><pre class="programlisting">gboolean gimp_pattern_get_info (const gchar *name,
gint *width,
gint *height,
gint *bpp);</pre><p>
Retrieve information about the specified pattern.
</p><p>
This procedure retrieves information about the specified pattern.
This includes the pattern extents (width and height).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The pattern name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The pattern width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The pattern height.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>bpp</tt></i><EFBFBD>:</span></td><td> The pattern bpp.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2643555"></a><h3><a name="gimp-pattern-get-pixels"></a>gimp_pattern_get_pixels ()</h3><a class="indexterm" name="id2643563"></a><pre class="programlisting">gboolean gimp_pattern_get_pixels (const gchar *name,
gint *width,
gint *height,
gint *bpp,
gint *num_color_bytes,
guint8 **color_bytes);</pre><p>
Retrieve information about the specified pattern (including pixels).
</p><p>
This procedure retrieves information about the specified. This
includes the pattern extents (width and height), its bpp and its
pixel data.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The pattern name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The pattern width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The pattern height.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>bpp</tt></i><EFBFBD>:</span></td><td> The pattern bpp.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_color_bytes</tt></i><EFBFBD>:</span></td><td> Number of pattern bytes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color_bytes</tt></i><EFBFBD>:</span></td><td> The pattern data.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimppalettes.html"><b>&lt;&lt;<EFBFBD>gimppalettes</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimppatterns.html"><b>gimppatterns<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,41 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppatternmenu</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="libgimp-gimppalettemenu.html" title="gimppalettemenu"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimppalettemenu.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th></tr></table><div class="refentry" lang="en"><a name="libgimp-gimppatternmenu"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimppatternmenu</span></h2><p>gimppatternmenu &#8212; A widget for selecting patterns.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
GtkWidget* <a href="libgimp-gimppatternmenu.html#gimp-pattern-select-widget-new">gimp_pattern_select_widget_new</a> (const gchar *title,
const gchar *pattern_name,
<a href="libgimp-gimppatternselect.html#GimpRunPatternCallback">GimpRunPatternCallback</a> callback,
gpointer data);
void <a href="libgimp-gimppatternmenu.html#gimp-pattern-select-widget-close">gimp_pattern_select_widget_close</a>
(GtkWidget *widget);
void <a href="libgimp-gimppatternmenu.html#gimp-pattern-select-widget-set">gimp_pattern_select_widget_set</a> (GtkWidget *widget,
const gchar *pattern_name);
</pre></div><div class="refsect1" lang="en"><a name="id2673510"></a><h2>Description</h2><p>
A widget for selecting patterns.
</p></div><div class="refsect1" lang="en"><a name="id2673520"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2673525"></a><h3><a name="gimp-pattern-select-widget-new"></a>gimp_pattern_select_widget_new ()</h3><a class="indexterm" name="id2673534"></a><pre class="programlisting">GtkWidget* gimp_pattern_select_widget_new (const gchar *title,
const gchar *pattern_name,
<a href="libgimp-gimppatternselect.html#GimpRunPatternCallback">GimpRunPatternCallback</a> callback,
gpointer data);</pre><p>
Creates a new <span class="type">GtkWidget</span> that completely controls the selection of
a pattern. This widget is suitable for placement in a table in a
plug-in dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>title</tt></i><EFBFBD>:</span></td><td> Title of the dialog to use or <tt class="literal">NULL</tt> to use the default title.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pattern_name</tt></i><EFBFBD>:</span></td><td> Initial pattern name or <tt class="literal">NULL</tt> to use current selection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td> A function to call when the selected pattern changes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> A pointer to arbitary data to be used in the call to <i class="parameter"><tt>callback</tt></i>.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> A <span class="type">GtkWidget</span> that you can use in your UI.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2673951"></a><h3><a name="gimp-pattern-select-widget-close"></a>gimp_pattern_select_widget_close ()</h3><a class="indexterm" name="id2673959"></a><pre class="programlisting">void gimp_pattern_select_widget_close
(GtkWidget *widget);</pre><p>
Closes the popup window associated with <i class="parameter"><tt>widget</tt></i>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i><EFBFBD>:</span></td><td> A pattern select widget.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2674001"></a><h3><a name="gimp-pattern-select-widget-set"></a>gimp_pattern_select_widget_set ()</h3><a class="indexterm" name="id2674009"></a><pre class="programlisting">void gimp_pattern_select_widget_set (GtkWidget *widget,
const gchar *pattern_name);</pre><p>
Sets the current pattern for the pattern select widget. Calls the
callback function if one was supplied in the call to
<a href="libgimp-gimppatternmenu.html#gimp-pattern-select-widget-new"><tt class="function">gimp_pattern_select_widget_new()</tt></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>widget</tt></i><EFBFBD>:</span></td><td> A pattern select widget.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pattern_name</tt></i><EFBFBD>:</span></td><td> Pattern name to set. NULL means no change.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimppalettemenu.html"><b>&lt;&lt;<EFBFBD>gimppalettemenu</b></a></td><td align="right"></td></tr></table></body></html>

View File

@ -0,0 +1,66 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppatterns</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-data.html" title="Data Objects"><link rel="prev" href="libgimp-gimppattern.html" title="gimppattern"><link rel="next" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimppattern.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-data.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-selectors.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimppatterns"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimppatterns</span></h2><p>gimppatterns &#8212; Functions relating to patterns.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimppatterns.html#gimp-patterns-refresh">gimp_patterns_refresh</a> (void);
gchar** <a href="libgimp-gimppatterns.html#gimp-patterns-get-list">gimp_patterns_get_list</a> (const gchar *filter,
gint *num_patterns);
gchar* <a href="libgimp-gimppatterns.html#gimp-patterns-get-pattern">gimp_patterns_get_pattern</a> (gint *width,
gint *height);
gboolean <a href="libgimp-gimppatterns.html#gimp-patterns-set-pattern">gimp_patterns_set_pattern</a> (const gchar *name);
gchar* <a href="libgimp-gimppatterns.html#gimp-patterns-get-pattern-data">gimp_patterns_get_pattern_data</a> (const gchar *name,
gint *width,
gint *height,
gint *mask_bpp,
gint *length,
guint8 **mask_data);
</pre></div><div class="refsect1" lang="en"><a name="id2657416"></a><h2>Description</h2><p>
Functions relating to patterns.
</p></div><div class="refsect1" lang="en"><a name="id2657426"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2657431"></a><h3><a name="gimp-patterns-refresh"></a>gimp_patterns_refresh ()</h3><a class="indexterm" name="id2657440"></a><pre class="programlisting">gboolean gimp_patterns_refresh (void);</pre><p>
Refresh current patterns. This function always succeeds.
</p><p>
This procedure retrieves all patterns currently in the user's
pattern path and updates all pattern dialogs accordingly.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2660847"></a><h3><a name="gimp-patterns-get-list"></a>gimp_patterns_get_list ()</h3><a class="indexterm" name="id2660855"></a><pre class="programlisting">gchar** gimp_patterns_get_list (const gchar *filter,
gint *num_patterns);</pre><p>
Retrieve a complete listing of the available patterns.
</p><p>
This procedure returns a complete listing of available GIMP
patterns. Each name returned can be used as input to the
'gimp_context_set_pattern'.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>filter</tt></i><EFBFBD>:</span></td><td> An optional regular expression used to filter the list.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_patterns</tt></i><EFBFBD>:</span></td><td> The number of patterns in the pattern list.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The list of pattern names.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2660928"></a><h3><a name="gimp-patterns-get-pattern"></a>gimp_patterns_get_pattern ()</h3><a class="indexterm" name="id2660937"></a><pre class="programlisting">gchar* gimp_patterns_get_pattern (gint *width,
gint *height);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_patterns_get_pattern</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpcontext.html#gimp-context-get-pattern"><tt class="function">gimp_context_get_pattern()</tt></a>
instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The pattern width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The pattern height.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The pattern name.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2638486"></a><h3><a name="gimp-patterns-set-pattern"></a>gimp_patterns_set_pattern ()</h3><a class="indexterm" name="id2638494"></a><pre class="programlisting">gboolean gimp_patterns_set_pattern (const gchar *name);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_patterns_set_pattern</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpcontext.html#gimp-context-set-pattern"><tt class="function">gimp_context_set_pattern()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The pattern name.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2638557"></a><h3><a name="gimp-patterns-get-pattern-data"></a>gimp_patterns_get_pattern_data ()</h3><a class="indexterm" name="id2638565"></a><pre class="programlisting">gchar* gimp_patterns_get_pattern_data (const gchar *name,
gint *width,
gint *height,
gint *mask_bpp,
gint *length,
guint8 **mask_data);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_patterns_get_pattern_data</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimppattern.html#gimp-pattern-get-pixels"><tt class="function">gimp_pattern_get_pixels()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The pattern name (\"\" means currently active pattern).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The pattern width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The pattern height.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mask_bpp</tt></i><EFBFBD>:</span></td><td> Pattern bytes per pixel.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>length</tt></i><EFBFBD>:</span></td><td> Length of pattern mask data.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mask_data</tt></i><EFBFBD>:</span></td><td> The pattern mask data.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The pattern name.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimppattern.html"><b>&lt;&lt;<EFBFBD>gimppattern</b></a></td><td align="right"><a accesskey="n" href="libgimp-selectors.html"><b>Controlling the Core's Selection Dialogs<67>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,86 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppatternselect</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="prev" href="libgimp-gimppaletteselect.html" title="gimppaletteselect"><link rel="next" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimppaletteselect.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-selectors.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimpui.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimppatternselect"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimppatternselect</span></h2><p>gimppatternselect &#8212; Functions providing a pattern selection dialog.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
void (<a href="libgimp-gimppatternselect.html#GimpRunPatternCallback">*GimpRunPatternCallback</a>) (const gchar *pattern_name,
gint width,
gint height,
gint bpp,
const guchar *mask_data,
gboolean dialog_closing,
gpointer user_data);
const gchar* <a href="libgimp-gimppatternselect.html#gimp-pattern-select-new">gimp_pattern_select_new</a> (const gchar *title,
const gchar *pattern_name,
<a href="libgimp-gimppatternselect.html#GimpRunPatternCallback">GimpRunPatternCallback</a> callback,
gpointer data);
void <a href="libgimp-gimppatternselect.html#gimp-pattern-select-destroy">gimp_pattern_select_destroy</a> (const gchar *pattern_callback);
gboolean <a href="libgimp-gimppatternselect.html#gimp-patterns-popup">gimp_patterns_popup</a> (const gchar *pattern_callback,
const gchar *popup_title,
const gchar *initial_pattern);
gboolean <a href="libgimp-gimppatternselect.html#gimp-patterns-close-popup">gimp_patterns_close_popup</a> (const gchar *pattern_callback);
gboolean <a href="libgimp-gimppatternselect.html#gimp-patterns-set-popup">gimp_patterns_set_popup</a> (const gchar *pattern_callback,
const gchar *pattern_name);
</pre></div><div class="refsect1" lang="en"><a name="id2643871"></a><h2>Description</h2><p>
Functions providing a pattern selection dialog.
</p></div><div class="refsect1" lang="en"><a name="id2643882"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2643887"></a><h3><a name="GimpRunPatternCallback"></a>GimpRunPatternCallback ()</h3><a class="indexterm" name="id2643895"></a><pre class="programlisting">void (*GimpRunPatternCallback) (const gchar *pattern_name,
gint width,
gint height,
gint bpp,
const guchar *mask_data,
gboolean dialog_closing,
gpointer user_data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pattern_name</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>bpp</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>mask_data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dialog_closing</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2665240"></a><h3><a name="gimp-pattern-select-new"></a>gimp_pattern_select_new ()</h3><a class="indexterm" name="id2665249"></a><pre class="programlisting">const gchar* gimp_pattern_select_new (const gchar *title,
const gchar *pattern_name,
<a href="libgimp-gimppatternselect.html#GimpRunPatternCallback">GimpRunPatternCallback</a> callback,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>title</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pattern_name</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>callback</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2665344"></a><h3><a name="gimp-pattern-select-destroy"></a>gimp_pattern_select_destroy ()</h3><a class="indexterm" name="id2665352"></a><pre class="programlisting">void gimp_pattern_select_destroy (const gchar *pattern_callback);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pattern_callback</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2665387"></a><h3><a name="gimp-patterns-popup"></a>gimp_patterns_popup ()</h3><a class="indexterm" name="id2665396"></a><pre class="programlisting">gboolean gimp_patterns_popup (const gchar *pattern_callback,
const gchar *popup_title,
const gchar *initial_pattern);</pre><p>
Invokes the Gimp pattern selection.
</p><p>
This procedure popups the pattern selection dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pattern_callback</tt></i><EFBFBD>:</span></td><td> The callback PDB proc to call when pattern selection is made.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>popup_title</tt></i><EFBFBD>:</span></td><td> Title to give the pattern popup window.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>initial_pattern</tt></i><EFBFBD>:</span></td><td> The name of the pattern to set as the first selected.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2661970"></a><h3><a name="gimp-patterns-close-popup"></a>gimp_patterns_close_popup ()</h3><a class="indexterm" name="id2661978"></a><pre class="programlisting">gboolean gimp_patterns_close_popup (const gchar *pattern_callback);</pre><p>
Popdown the Gimp pattern selection.
</p><p>
This procedure closes an opened pattern selection dialog.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pattern_callback</tt></i><EFBFBD>:</span></td><td> The name of the callback registered for this popup.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2662031"></a><h3><a name="gimp-patterns-set-popup"></a>gimp_patterns_set_popup ()</h3><a class="indexterm" name="id2662039"></a><pre class="programlisting">gboolean gimp_patterns_set_popup (const gchar *pattern_callback,
const gchar *pattern_name);</pre><p>
Sets the current pattern selection in a popup.
</p><p>
Sets the current pattern selection in a popup.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pattern_callback</tt></i><EFBFBD>:</span></td><td> The name of the callback registered for this popup.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pattern_name</tt></i><EFBFBD>:</span></td><td> The name of the pattern to set as selected.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimppaletteselect.html"><b>&lt;&lt;<EFBFBD>gimppaletteselect</b></a></td><td align="right"><a accesskey="n" href="libgimpui.html"><b>Part<EFBFBD>III.<2E>GIMP User Interface Library<72>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,84 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppixbuf</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="libgimp-gimpimagecombobox.html" title="gimpimagecombobox"><link rel="next" href="GimpProgressBar.html" title="GimpProgressBar"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpimagecombobox.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="GimpProgressBar.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimppixbuf"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimppixbuf</span></h2><p>gimppixbuf &#8212; Get a thumbnail pixbuf for a drawable or image.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
enum <a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a>;
GdkPixbuf* <a href="libgimp-gimppixbuf.html#gimp-image-get-thumbnail">gimp_image_get_thumbnail</a> (gint32 image_ID,
gint width,
gint height,
<a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a> alpha);
GdkPixbuf* <a href="libgimp-gimppixbuf.html#gimp-drawable-get-thumbnail">gimp_drawable_get_thumbnail</a> (gint32 drawable_ID,
gint width,
gint height,
<a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a> alpha);
GdkPixbuf* <a href="libgimp-gimppixbuf.html#gimp-drawable-get-sub-thumbnail">gimp_drawable_get_sub_thumbnail</a> (gint32 drawable_ID,
gint src_x,
gint src_y,
gint src_width,
gint src_height,
gint dest_width,
gint dest_height,
<a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a> alpha);
</pre></div><div class="refsect1" lang="en"><a name="id2652730"></a><h2>Description</h2><p>
Get a thumbnail pixbuf for a drawable or image.
</p></div><div class="refsect1" lang="en"><a name="id2652741"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2652746"></a><h3><a name="GimpPixbufTransparency"></a>enum GimpPixbufTransparency</h3><a class="indexterm" name="id2652754"></a><pre class="programlisting">typedef enum
{
GIMP_PIXBUF_KEEP_ALPHA,
GIMP_PIXBUF_SMALL_CHECKS,
GIMP_PIXBUF_LARGE_CHECKS
} GimpPixbufTransparency;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2668098"></a><h3><a name="gimp-image-get-thumbnail"></a>gimp_image_get_thumbnail ()</h3><a class="indexterm" name="id2668105"></a><pre class="programlisting">GdkPixbuf* gimp_image_get_thumbnail (gint32 image_ID,
gint width,
gint height,
<a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a> alpha);</pre><p>
Retrieves a thumbnail pixbuf for the image identified by <i class="parameter"><tt>image_ID</tt></i>.
The thumbnail will be not larger than the requested size.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> the image ID
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> the requested thumbnail width (&lt;= 512 pixels)
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> the requested thumbnail height (&lt;= 512 pixels)
</td></tr><tr><td><span class="term"><i class="parameter"><tt>alpha</tt></i><EFBFBD>:</span></td><td> how to handle an alpha channel
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a new <span class="type">GdkPixbuf</span>
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2668220"></a><h3><a name="gimp-drawable-get-thumbnail"></a>gimp_drawable_get_thumbnail ()</h3><a class="indexterm" name="id2671554"></a><pre class="programlisting">GdkPixbuf* gimp_drawable_get_thumbnail (gint32 drawable_ID,
gint width,
gint height,
<a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a> alpha);</pre><p>
Retrieves a thumbnail pixbuf for the drawable identified by
<i class="parameter"><tt>drawable_ID</tt></i>. The thumbnail will be not larger than the requested
size.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> the drawable ID
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> the requested thumbnail width (&lt;= 512 pixels)
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> the requested thumbnail height (&lt;= 512 pixels)
</td></tr><tr><td><span class="term"><i class="parameter"><tt>alpha</tt></i><EFBFBD>:</span></td><td> how to handle an alpha channel
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a new <span class="type">GdkPixbuf</span>
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2671670"></a><h3><a name="gimp-drawable-get-sub-thumbnail"></a>gimp_drawable_get_sub_thumbnail ()</h3><a class="indexterm" name="id2671678"></a><pre class="programlisting">GdkPixbuf* gimp_drawable_get_sub_thumbnail (gint32 drawable_ID,
gint src_x,
gint src_y,
gint src_width,
gint src_height,
gint dest_width,
gint dest_height,
<a href="libgimp-gimppixbuf.html#GimpPixbufTransparency">GimpPixbufTransparency</a> alpha);</pre><p>
Retrieves a thumbnail pixbuf for the drawable identified by
<i class="parameter"><tt>drawable_ID</tt></i>. The thumbnail will be not larger than the requested
size.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> the drawable ID
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the area
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the area
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_width</tt></i><EFBFBD>:</span></td><td> the width of the area
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_height</tt></i><EFBFBD>:</span></td><td> the height of the area
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_width</tt></i><EFBFBD>:</span></td><td> the requested thumbnail width (&lt;= 512 pixels)
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_height</tt></i><EFBFBD>:</span></td><td> the requested thumbnail height (&lt;= 512 pixels)
</td></tr><tr><td><span class="term"><i class="parameter"><tt>alpha</tt></i><EFBFBD>:</span></td><td> how to handle an alpha channel
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a new <span class="type">GdkPixbuf</span>
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpimagecombobox.html"><b>&lt;&lt;<EFBFBD>gimpimagecombobox</b></a></td><td align="right"><a accesskey="n" href="GimpProgressBar.html"><b>GimpProgressBar<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,90 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppixelfetcher</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimppaths.html" title="gimppaths"><link rel="next" href="libgimp-gimppixelrgn.html" title="gimppixelrgn"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimppaths.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><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></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><span class="refentrytitle">gimppixelfetcher</span></h2><p>gimppixelfetcher &#8212; Functions for operating on pixel regions.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
enum <a href="libgimp-gimppixelfetcher.html#GimpPixelFetcherEdgeMode">GimpPixelFetcherEdgeMode</a>;
<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a>;
<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a>* <a href="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-new">gimp_pixel_fetcher_new</a> (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
gboolean shadow);
void <a href="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-set-edge-mode">gimp_pixel_fetcher_set_edge_mode</a>
(<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf,
<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcherEdgeMode">GimpPixelFetcherEdgeMode</a> mode);
void <a href="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-set-bg-color">gimp_pixel_fetcher_set_bg_color</a> (<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);
void <a href="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-get-pixel">gimp_pixel_fetcher_get_pixel</a> (<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf,
gint x,
gint y,
guchar *pixel);
void <a href="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-put-pixel">gimp_pixel_fetcher_put_pixel</a> (<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf,
gint x,
gint y,
const guchar *pixel);
void <a href="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-destroy">gimp_pixel_fetcher_destroy</a> (<a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher">GimpPixelFetcher</a> *pf);
</pre></div><div class="refsect1" lang="en"><a name="id2603350"></a><h2>Description</h2><p>
These functions provide neighbourhood-based algorithms which get
dramatically slower on region boundaries, to the point where a special
treatment for neighbourhoods which are completely inside a tile is
called for. It hides the special treatment of tile borders, making
plug-in code more readable and shorter.
</p></div><div class="refsect1" lang="en"><a name="id2618226"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2618232"></a><h3><a name="GimpPixelFetcherEdgeMode"></a>enum GimpPixelFetcherEdgeMode</h3><a class="indexterm" name="id2618240"></a><pre class="programlisting">typedef enum
{
GIMP_PIXEL_FETCHER_EDGE_NONE,
GIMP_PIXEL_FETCHER_EDGE_WRAP,
GIMP_PIXEL_FETCHER_EDGE_SMEAR,
GIMP_PIXEL_FETCHER_EDGE_BLACK,
GIMP_PIXEL_FETCHER_EDGE_BACKGROUND
} GimpPixelFetcherEdgeMode;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2618253"></a><h3><a name="GimpPixelFetcher"></a>GimpPixelFetcher</h3><a class="indexterm" name="id2618262"></a><pre class="programlisting">typedef struct _GimpPixelFetcher GimpPixelFetcher;</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2618272"></a><h3><a name="gimp-pixel-fetcher-new"></a>gimp_pixel_fetcher_new ()</h3><a class="indexterm" name="id2618281"></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><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable</tt></i><EFBFBD>:</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"><i class="parameter"><tt>shadow</tt></i><EFBFBD>:</span></td><td> a <span class="type">gboolean</span> indicating whether the region is attached to
the shadow tiles or the real <tt class="literal">drawable</tt> tiles.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a pointer to a <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> structure (or NULL).
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2624151"></a><h3><a name="gimp-pixel-fetcher-set-edge-mode"></a>gimp_pixel_fetcher_set_edge_mode ()</h3><a class="indexterm" name="id2624159"></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>
Change the edage mode of a previously initialized pixel region.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pf</tt></i><EFBFBD>:</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"><i class="parameter"><tt>mode</tt></i><EFBFBD>:</span></td><td> the new edge mode from <a href="libgimp-gimppixelfetcher.html#GimpPixelFetcherEdgeMode"><span class="type">GimpPixelFetcherEdgeMode</span></a>.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2624228"></a><h3><a name="gimp-pixel-fetcher-set-bg-color"></a>gimp_pixel_fetcher_set_bg_color ()</h3><a class="indexterm" name="id2624237"></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><p>
Change the background color of a previously initialized pixel region.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pf</tt></i><EFBFBD>:</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"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> the color to be used as bg color.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2624298"></a><h3><a name="gimp-pixel-fetcher-get-pixel"></a>gimp_pixel_fetcher_get_pixel ()</h3><a class="indexterm" name="id2624307"></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><p>
Get a pixel from the pixel region.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pf</tt></i><EFBFBD>:</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"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the pixel to get.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the pixel to get.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pixel</tt></i><EFBFBD>:</span></td><td> the memory location where to return the pixel.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2617026"></a><h3><a name="gimp-pixel-fetcher-put-pixel"></a>gimp_pixel_fetcher_put_pixel ()</h3><a class="indexterm" name="id2617034"></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><p>
Set a pixel in the pixel region.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pf</tt></i><EFBFBD>:</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"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the pixel to set.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the pixel to set.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pixel</tt></i><EFBFBD>:</span></td><td> the pixel to set.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2617131"></a><h3><a name="gimp-pixel-fetcher-destroy"></a>gimp_pixel_fetcher_destroy ()</h3><a class="indexterm" name="id2617140"></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>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pf</tt></i><EFBFBD>:</span></td><td> a pointer to a previously initialized <a href="libgimp-gimppixelfetcher.html#GimpPixelFetcher"><span class="type">GimpPixelFetcher</span></a>.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimppaths.html"><b>&lt;&lt;<EFBFBD>gimppaths</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimppixelrgn.html"><b>gimppixelrgn<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,294 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimppixelrgn</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimppixelfetcher.html" title="gimppixelfetcher"><link rel="next" href="libgimp-gimpregioniterator.html" title="gimpregioniterator"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimppixelfetcher.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpregioniterator.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimppixelrgn"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimppixelrgn</span></h2><p>gimppixelrgn &#8212; Functions for operating on pixel regions.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a>;
void <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-init">gimp_pixel_rgn_init</a> (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
gint x,
gint y,
gint width,
gint height,
gint dirty,
gint shadow);
void <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-resize">gimp_pixel_rgn_resize</a> (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
gint x,
gint y,
gint width,
gint height);
void <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-pixel">gimp_pixel_rgn_get_pixel</a> (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
guchar *buf,
gint x,
gint y);
void <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-row">gimp_pixel_rgn_get_row</a> (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
guchar *buf,
gint x,
gint y,
gint width);
void <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-col">gimp_pixel_rgn_get_col</a> (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
guchar *buf,
gint x,
gint y,
gint height);
void <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-rect">gimp_pixel_rgn_get_rect</a> (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
guchar *buf,
gint x,
gint y,
gint width,
gint height);
void <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-pixel">gimp_pixel_rgn_set_pixel</a> (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
const guchar *buf,
gint x,
gint y);
void <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-row">gimp_pixel_rgn_set_row</a> (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
const guchar *buf,
gint x,
gint y,
gint width);
void <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-col">gimp_pixel_rgn_set_col</a> (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
const guchar *buf,
gint x,
gint y,
gint height);
void <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-rect">gimp_pixel_rgn_set_rect</a> (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
const guchar *buf,
gint x,
gint y,
gint width,
gint height);
gpointer <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-register">gimp_pixel_rgns_register</a> (gint nrgns,
...);
gpointer <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-register2">gimp_pixel_rgns_register2</a> (gint nrgns,
<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> **prs);
gpointer <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-process">gimp_pixel_rgns_process</a> (gpointer pri_ptr);
</pre></div><div class="refsect1" lang="en"><a name="id2615259"></a><h2>Description</h2><p>
Functions for operating on pixel regions. These functions provide
fast ways of accessing and modifying portions of a drawable.
</p></div><div class="refsect1" lang="en"><a name="id2615271"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2615276"></a><h3><a name="GimpPixelRgn"></a>GimpPixelRgn</h3><a class="indexterm" name="id2615284"></a><pre class="programlisting">typedef struct {
guchar *data; /* pointer to region data */
GimpDrawable *drawable; /* pointer to drawable */
guint bpp; /* bytes per pixel */
guint rowstride; /* bytes per pixel row */
guint x, y; /* origin */
guint w, h; /* width and height of region */
guint dirty : 1; /* will this region be dirtied? */
guint shadow : 1; /* will this region use the shadow or normal tiles */
guint process_count; /* used internally */
} GimpPixelRgn;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2544179"></a><h3><a name="gimp-pixel-rgn-init"></a>gimp_pixel_rgn_init ()</h3><a class="indexterm" name="id2507020"></a><pre class="programlisting">void gimp_pixel_rgn_init (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
gint x,
gint y,
gint width,
gint height,
gint dirty,
gint shadow);</pre><p>
Initialize the pixel region pointed by <i class="parameter"><tt>pr</tt></i> with the specified parameters.
</p><p>
The <i class="parameter"><tt>dirty</tt></i> and <i class="parameter"><tt>shadow</tt></i> flags can be used as follows:
</p><p>
- <i class="parameter"><tt>dirty</tt></i> = FALSE, <i class="parameter"><tt>shadow</tt></i> = FALSE: the region will be used to read
the actual drawable datas. This
is useful for save plug-ins or for
filters.
</p><p>
- <i class="parameter"><tt>dirty</tt></i> = FALSE, <i class="parameter"><tt>shadow</tt></i> = TRUE: the region will be used to read the
shadow tiles. This is used in
some filter plug-ins which operate
in two passes such as gaussian
blur. The first pass reads the
actual drawable data and writes to
the shadow tiles, and the second
one reads from and writes to the
shadow tiles.
</p><p>
- <i class="parameter"><tt>dirty</tt></i> = TRUE, <i class="parameter"><tt>shadow</tt></i> = TRUE: the region will be used to write to
the shadow tiles. It is common
practice to write to the shadow
tiles and then use
#<a href="libgimp-gimpdrawable.html#gimp-drawable-merge-shadow"><tt class="function">gimp_drawable_merge_shadow()</tt></a> to
merge the changes from the shadow
tiles using the current selection
as a mask.
</p><p>
- <i class="parameter"><tt>dirty</tt></i> = TRUE, <i class="parameter"><tt>shadow</tt></i> = FALSE: the region will be used to directly
change the drawable content. Don't
do this, since this could prevent
the Undo-System from working as
expected.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pr</tt></i><EFBFBD>:</span></td><td> a pointer to a <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a> variable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>drawable</tt></i><EFBFBD>:</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"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the top-left pixel of the region in the
<i class="parameter"><tt>drawable</tt></i>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the top-left pixel of the region in the
<i class="parameter"><tt>drawable</tt></i>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> the width of the region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> the height of the region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dirty</tt></i><EFBFBD>:</span></td><td> a <span class="type">gboolean</span> indicating whether the <i class="parameter"><tt>drawable</tt></i> should be marked
as "dirty".
</td></tr><tr><td><span class="term"><i class="parameter"><tt>shadow</tt></i><EFBFBD>:</span></td><td> a <span class="type">gboolean</span> indicating whether the region is attached to the
shadow tiles or the real <i class="parameter"><tt>drawable</tt></i> tiles.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2623930"></a><h3><a name="gimp-pixel-rgn-resize"></a>gimp_pixel_rgn_resize ()</h3><a class="indexterm" name="id2623938"></a><pre class="programlisting">void gimp_pixel_rgn_resize (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
gint x,
gint y,
gint width,
gint height);</pre><p>
Change the position and size of a previously initialized pixel region.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pr</tt></i><EFBFBD>:</span></td><td> a pointer to a previously initialized <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the new position of the region's
top-left corner.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the new position of the region's
top-left corner.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> the new width of the region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> the new height of the region.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2635530"></a><h3><a name="gimp-pixel-rgn-get-pixel"></a>gimp_pixel_rgn_get_pixel ()</h3><a class="indexterm" name="id2635538"></a><pre class="programlisting">void gimp_pixel_rgn_get_pixel (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
guchar *buf,
gint x,
gint y);</pre><p>
Fill the buffer pointed by <i class="parameter"><tt>buf</tt></i> with the value of the pixel at (<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>)
in the region <i class="parameter"><tt>pr</tt></i>. <i class="parameter"><tt>buf</tt></i> should be large enough to hold the pixel value
(1 <span class="type">guchar</span> for an indexed or grayscale drawable, 2 <span class="type">guchar</span> for
indexed with alpha or grayscale with alpha drawable, 3 <span class="type">guchar</span> for
rgb drawable and 4 <span class="type">guchar</span> for rgb with alpha drawable.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pr</tt></i><EFBFBD>:</span></td><td> a pointer to a previously initialized <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>buf</tt></i><EFBFBD>:</span></td><td> a pointer to an array of <span class="type">guchar</span>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the wanted pixel (relative to the drawable)
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the wanted pixel (relative to the drawable)
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2635684"></a><h3><a name="gimp-pixel-rgn-get-row"></a>gimp_pixel_rgn_get_row ()</h3><a class="indexterm" name="id2635692"></a><pre class="programlisting">void gimp_pixel_rgn_get_row (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
guchar *buf,
gint x,
gint y,
gint width);</pre><p>
Get several pixels of a region in a row. This function fills the buffer
<i class="parameter"><tt>buf</tt></i> with the values of the pixels from (<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>) to (<i class="parameter"><tt>x</tt></i>+<i class="parameter"><tt>width</tt></i>-1, <i class="parameter"><tt>y</tt></i>).
<i class="parameter"><tt>buf</tt></i> should be large enough to hold all these values.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pr</tt></i><EFBFBD>:</span></td><td> a pointer to a previously initialized <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>buf</tt></i><EFBFBD>:</span></td><td> a pointer to an array of <span class="type">guchar</span>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the first pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the first pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> the number of pixels to get.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2635837"></a><h3><a name="gimp-pixel-rgn-get-col"></a>gimp_pixel_rgn_get_col ()</h3><a class="indexterm" name="id2635845"></a><pre class="programlisting">void gimp_pixel_rgn_get_col (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
guchar *buf,
gint x,
gint y,
gint height);</pre><p>
Get several pixels of a region's column. This function fills the buffer
<i class="parameter"><tt>buf</tt></i> with the values of the pixels from (<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>) to (<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>+<i class="parameter"><tt>height</tt></i>-1).
<i class="parameter"><tt>buf</tt></i> should be large enough to hold all these values.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pr</tt></i><EFBFBD>:</span></td><td> a pointer to a previously initialized <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>buf</tt></i><EFBFBD>:</span></td><td> a pointer to an array of <span class="type">guchar</span>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the first pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the first pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> the number of pixels to get.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2635989"></a><h3><a name="gimp-pixel-rgn-get-rect"></a>gimp_pixel_rgn_get_rect ()</h3><a class="indexterm" name="id2635998"></a><pre class="programlisting">void gimp_pixel_rgn_get_rect (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
guchar *buf,
gint x,
gint y,
gint width,
gint height);</pre><p>
Get all the pixel values from the rectangle defined by <i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>, <i class="parameter"><tt>width</tt></i> and
<i class="parameter"><tt>height</tt></i>. This function fills the buffer <i class="parameter"><tt>buf</tt></i> with the values of the pixels
from (<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>) to (<i class="parameter"><tt>x</tt></i>+<i class="parameter"><tt>width</tt></i>-1, <i class="parameter"><tt>y</tt></i>+<i class="parameter"><tt>height</tt></i>-1).
<i class="parameter"><tt>buf</tt></i> should be large enough to hold all these values (<i class="parameter"><tt>width</tt></i>*<i class="parameter"><tt>height</tt></i>*bpp).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pr</tt></i><EFBFBD>:</span></td><td> a pointer to a previously initialized <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>buf</tt></i><EFBFBD>:</span></td><td> a pointer to an array of <span class="type">guchar</span>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the first pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the first pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> the width of the rectangle.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> the height of the rectangle.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2636181"></a><h3><a name="gimp-pixel-rgn-set-pixel"></a>gimp_pixel_rgn_set_pixel ()</h3><a class="indexterm" name="id2636189"></a><pre class="programlisting">void gimp_pixel_rgn_set_pixel (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
const guchar *buf,
gint x,
gint y);</pre><p>
Set the pixel at (<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>) to the values from <i class="parameter"><tt>buf</tt></i>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pr</tt></i><EFBFBD>:</span></td><td> a pointer to a previously initialized <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>buf</tt></i><EFBFBD>:</span></td><td> a pointer to an array of <span class="type">guchar</span>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the pixel (relative to the drawable).
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2636301"></a><h3><a name="gimp-pixel-rgn-set-row"></a>gimp_pixel_rgn_set_row ()</h3><a class="indexterm" name="id2636310"></a><pre class="programlisting">void gimp_pixel_rgn_set_row (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
const guchar *buf,
gint x,
gint y,
gint width);</pre><p>
Set several pixels of a region in a row. This function draws the pixels
from (<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>) to (<i class="parameter"><tt>x</tt></i>+<i class="parameter"><tt>width</tt></i>-1, <i class="parameter"><tt>y</tt></i>) using the values of the buffer <i class="parameter"><tt>buf</tt></i>.
<i class="parameter"><tt>buf</tt></i> should be large enough to hold all these values.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pr</tt></i><EFBFBD>:</span></td><td> a pointer to a previously initialized <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>buf</tt></i><EFBFBD>:</span></td><td> a pointer to an array of <span class="type">guchar</span>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the first pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the first pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> the number of pixels to set.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2636454"></a><h3><a name="gimp-pixel-rgn-set-col"></a>gimp_pixel_rgn_set_col ()</h3><a class="indexterm" name="id2636462"></a><pre class="programlisting">void gimp_pixel_rgn_set_col (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
const guchar *buf,
gint x,
gint y,
gint height);</pre><p>
Set several pixels of a region's column. This function draws the pixels
from (<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>) to (<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>+<i class="parameter"><tt>height</tt></i>-1) using the values from the buffer <i class="parameter"><tt>buf</tt></i>.
<i class="parameter"><tt>buf</tt></i> should be large enough to hold all these values.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pr</tt></i><EFBFBD>:</span></td><td> a pointer to a previously initialized <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>buf</tt></i><EFBFBD>:</span></td><td> a pointer to an array of <span class="type">guchar</span>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the first pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the first pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> the number of pixels to set.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2636607"></a><h3><a name="gimp-pixel-rgn-set-rect"></a>gimp_pixel_rgn_set_rect ()</h3><a class="indexterm" name="id2636615"></a><pre class="programlisting">void gimp_pixel_rgn_set_rect (<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> *pr,
const guchar *buf,
gint x,
gint y,
gint width,
gint height);</pre><p>
Set all the pixel of the rectangle defined by <i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>, <i class="parameter"><tt>width</tt></i> and
<i class="parameter"><tt>height</tt></i>. This function draws the rectangle from (<i class="parameter"><tt>x</tt></i>, <i class="parameter"><tt>y</tt></i>) to
(<i class="parameter"><tt>x</tt></i>+<i class="parameter"><tt>width</tt></i>-1, <i class="parameter"><tt>y</tt></i>+<i class="parameter"><tt>height</tt></i>-1), using the pixel values from the buffer <i class="parameter"><tt>buf</tt></i>.
<i class="parameter"><tt>buf</tt></i> should be large enough to hold all these values (<i class="parameter"><tt>width</tt></i>*<i class="parameter"><tt>height</tt></i>*bpp).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pr</tt></i><EFBFBD>:</span></td><td> a pointer to a previously initialized <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>buf</tt></i><EFBFBD>:</span></td><td> a pointer to an array of <span class="type">guchar</span>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> the x coordinate of the first pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> the y coordinate of the first pixel (relative to the drawable).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> the width of the rectangle.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> the height of the rectangle.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2636799"></a><h3><a name="gimp-pixel-rgns-register"></a>gimp_pixel_rgns_register ()</h3><a class="indexterm" name="id2636808"></a><pre class="programlisting">gpointer gimp_pixel_rgns_register (gint nrgns,
...);</pre><p>
This is the varargs version of <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-register2"><span class="type">gimp_pixel_rgns_register2</span></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>nrgns</tt></i><EFBFBD>:</span></td><td> the number of regions to register.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>...</tt></i><EFBFBD>:</span></td><td> <i class="parameter"><tt>nrgns</tt></i> pointers to <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a <span class="type">gpointer</span> to a regions iterator.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2636888"></a><h3><a name="gimp-pixel-rgns-register2"></a>gimp_pixel_rgns_register2 ()</h3><a class="indexterm" name="id2636896"></a><pre class="programlisting">gpointer gimp_pixel_rgns_register2 (gint nrgns,
<a href="libgimp-gimppixelrgn.html#GimpPixelRgn">GimpPixelRgn</a> **prs);</pre><p>
It takes a number of initialized regions of the same size and provides a
pixel region iterator the iterator can be used to iterate over the
registered pixel regions. While iterating the registered pixel regions will
cover subsets of the original pixel regions, chosen for optimized access to
the image data.
</p><p>
Note that the given regions themselves are changed by this function, so
they are resized to the first subsets.
</p><p>
This function has to be used together with gimp_pixel_rgns_process in a loop.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>nrgns</tt></i><EFBFBD>:</span></td><td> the number of regions to register.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>prs</tt></i><EFBFBD>:</span></td><td> an array of <i class="parameter"><tt>nrgns</tt></i> pointers to initialized <a href="libgimp-gimppixelrgn.html#GimpPixelRgn"><span class="type">GimpPixelRgn</span></a>.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a <span class="type">gpointer</span> to a regions iterator.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2636991"></a><h3><a name="gimp-pixel-rgns-process"></a>gimp_pixel_rgns_process ()</h3><a class="indexterm" name="id2636999"></a><pre class="programlisting">gpointer gimp_pixel_rgns_process (gpointer pri_ptr);</pre><p>
This function update the regions registered previously with one of the
<a href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-register"><span class="type">gimp_pixel_rgns_register</span></a>* functions to their next tile.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>pri_ptr</tt></i><EFBFBD>:</span></td><td> a regions iterator returned by <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-register"><span class="type">gimp_pixel_rgns_register</span></a>,
<a href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-register2"><span class="type">gimp_pixel_rgns_register2</span></a> or <a href="libgimp-gimppixelrgn.html#gimp-pixel-rgns-process"><span class="type">gimp_pixel_rgns_process</span></a>.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a <span class="type">gpointer</span> to a new regions iterator or <span class="type">NULL</span> if there isn't
any tiles left.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimppixelfetcher.html"><b>&lt;&lt;<EFBFBD>gimppixelfetcher</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpregioniterator.html"><b>gimpregioniterator<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,66 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpplugin</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="prev" href="libgimp-gimpmessage.html" title="gimpmessage"><link rel="next" href="libgimp-gimpproceduraldb.html" title="gimpproceduraldb"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpmessage.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpproceduraldb.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpplugin"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpplugin</span></h2><p>gimpplugin &#8212; Functions useful for plugins, e.g. registration and progress indicators.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimpplugin.html#gimp-plugin-domain-register">gimp_plugin_domain_register</a> (const gchar *domain_name,
const gchar *domain_path);
gboolean <a href="libgimp-gimpplugin.html#gimp-plugin-help-register">gimp_plugin_help_register</a> (const gchar *domain_name,
const gchar *domain_uri);
gboolean <a href="libgimp-gimpplugin.html#gimp-plugin-icon-register">gimp_plugin_icon_register</a> (const gchar *procedure_name,
<a href="libgimp-gimpenums.html#GimpIconType">GimpIconType</a> icon_type,
const guint8 *icon_data);
gboolean <a href="libgimp-gimpplugin.html#gimp-plugin-menu-register">gimp_plugin_menu_register</a> (const gchar *procedure_name,
const gchar *menu_path);
</pre></div><div class="refsect1" lang="en"><a name="id2577270"></a><h2>Description</h2><p>
Functions useful for plugins, e.g. registration and progress indicators.
</p></div><div class="refsect1" lang="en"><a name="id2577280"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2577286"></a><h3><a name="gimp-plugin-domain-register"></a>gimp_plugin_domain_register ()</h3><a class="indexterm" name="id2577294"></a><pre class="programlisting">gboolean gimp_plugin_domain_register (const gchar *domain_name,
const gchar *domain_path);</pre><p>
Registers a textdomain for localisation.
</p><p>
This procedure adds a textdomain to the list of domains Gimp
searches for strings when translating its menu entries. There is no
need to call this function for plug-ins that have their strings
included in the gimp-std-plugins domain as that is used by default.
If the compiled message catalog is not in the standard location, you
may specify an absolute path to another location. This procedure can
only be called in the query function of a plug-in and it has to be
called before any procedure is installed.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>domain_name</tt></i><EFBFBD>:</span></td><td> The name of the textdomain (must be unique).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>domain_path</tt></i><EFBFBD>:</span></td><td> The absolute path to the compiled message catalog (may be NULL).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2571725"></a><h3><a name="gimp-plugin-help-register"></a>gimp_plugin_help_register ()</h3><a class="indexterm" name="id2538565"></a><pre class="programlisting">gboolean gimp_plugin_help_register (const gchar *domain_name,
const gchar *domain_uri);</pre><p>
Register a help path for a plug-in.
</p><p>
This procedure changes the help rootdir for the plug-in which calls
it. All subsequent calls of gimp_help from this plug-in will be
interpreted relative to this rootdir.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>domain_name</tt></i><EFBFBD>:</span></td><td> The XML namespace of the plug-in's help pages.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>domain_uri</tt></i><EFBFBD>:</span></td><td> The root URI of the plug-in's help pages.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2530927"></a><h3><a name="gimp-plugin-icon-register"></a>gimp_plugin_icon_register ()</h3><a class="indexterm" name="id2530935"></a><pre class="programlisting">gboolean gimp_plugin_icon_register (const gchar *procedure_name,
<a href="libgimp-gimpenums.html#GimpIconType">GimpIconType</a> icon_type,
const guint8 *icon_data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>procedure_name</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>icon_type</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>icon_data</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2531008"></a><h3><a name="gimp-plugin-menu-register"></a>gimp_plugin_menu_register ()</h3><a class="indexterm" name="id2589620"></a><pre class="programlisting">gboolean gimp_plugin_menu_register (const gchar *procedure_name,
const gchar *menu_path);</pre><p>
Register an additional menu path for a plug-in procedure.
</p><p>
This procedure installs an additional menu entry for the given
procedure.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>procedure_name</tt></i><EFBFBD>:</span></td><td> The procedure for which to install the menu path.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>menu_path</tt></i><EFBFBD>:</span></td><td> The procedure's additional menu path.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpmessage.html"><b>&lt;&lt;<EFBFBD>gimpmessage</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpproceduraldb.html"><b>gimpproceduraldb<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,215 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpproceduraldb</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="prev" href="libgimp-gimpplugin.html" title="gimpplugin"><link rel="next" href="libgimp-gimpprogress.html" title="gimpprogress"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpplugin.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpprogress.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpproceduraldb"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpproceduraldb</span></h2><p>gimpproceduraldb &#8212; Functions for querying and changing procedural database (PDB) entries.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gchar* <a href="libgimp-gimpproceduraldb.html#gimp-procedural-db-temp-name">gimp_procedural_db_temp_name</a> (void);
gboolean <a href="libgimp-gimpproceduraldb.html#gimp-procedural-db-proc-info">gimp_procedural_db_proc_info</a> (const gchar *procedure,
gchar **blurb,
gchar **help,
gchar **author,
gchar **copyright,
gchar **date,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBProcType"
>GimpPDBProcType</a> *proc_type,
gint *num_args,
gint *num_values,
<a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> **args,
<a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> **return_vals);
gboolean <a href="libgimp-gimpproceduraldb.html#gimp-procedural-db-get-data">gimp_procedural_db_get_data</a> (const gchar *identifier,
gpointer data);
gboolean <a href="libgimp-gimpproceduraldb.html#gimp-procedural-db-set-data">gimp_procedural_db_set_data</a> (const gchar *identifier,
gpointer data,
guint32 bytes);
gboolean <a href="libgimp-gimpproceduraldb.html#gimp-procedural-db-dump">gimp_procedural_db_dump</a> (const gchar *filename);
gboolean <a href="libgimp-gimpproceduraldb.html#gimp-procedural-db-query">gimp_procedural_db_query</a> (const gchar *name,
const gchar *blurb,
const gchar *help,
const gchar *author,
const gchar *copyright,
const gchar *date,
const gchar *proc_type,
gint *num_matches,
gchar ***procedure_names);
gboolean <a href="libgimp-gimpproceduraldb.html#gimp-procedural-db-proc-arg">gimp_procedural_db_proc_arg</a> (const gchar *procedure,
gint arg_num,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBArgType"
>GimpPDBArgType</a> *arg_type,
gchar **arg_name,
gchar **arg_desc);
gboolean <a href="libgimp-gimpproceduraldb.html#gimp-procedural-db-proc-val">gimp_procedural_db_proc_val</a> (const gchar *procedure,
gint val_num,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBArgType"
>GimpPDBArgType</a> *val_type,
gchar **val_name,
gchar **val_desc);
gint <a href="libgimp-gimpproceduraldb.html#gimp-procedural-db-get-data-size">gimp_procedural_db_get_data_size</a>
(const gchar *identifier);
</pre></div><div class="refsect1" lang="en"><a name="id2467194"></a><h2>Description</h2><p>
Functions for querying and changing procedural database (PDB) entries.
</p></div><div class="refsect1" lang="en"><a name="id2467204"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2467210"></a><h3><a name="gimp-procedural-db-temp-name"></a>gimp_procedural_db_temp_name ()</h3><a class="indexterm" name="id2467221"></a><pre class="programlisting">gchar* gimp_procedural_db_temp_name (void);</pre><p>
Generates a unique temporary PDB name.
</p><p>
This procedure generates a temporary PDB entry name that is
guaranteed to be unique. It is many used by the interactive popup
dialogs to generate a PDB entry name.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> A unique temporary name for a temporary PDB entry.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2467260"></a><h3><a name="gimp-procedural-db-proc-info"></a>gimp_procedural_db_proc_info ()</h3><a class="indexterm" name="id2467271"></a><pre class="programlisting">gboolean gimp_procedural_db_proc_info (const gchar *procedure,
gchar **blurb,
gchar **help,
gchar **author,
gchar **copyright,
gchar **date,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBProcType"
>GimpPDBProcType</a> *proc_type,
gint *num_args,
gint *num_values,
<a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> **args,
<a href="libgimp-gimp.html#GimpParamDef">GimpParamDef</a> **return_vals);</pre><p>
Queries the procedural database for information on the specified
procedure.
</p><p>
This procedure returns information on the specified procedure. A
short blurb, detailed help, author(s), copyright information,
procedure type, number of input, and number of return values are
returned. Additionally this function returns specific information
about each input argument and return value.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>procedure</tt></i><EFBFBD>:</span></td><td> The procedure name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>blurb</tt></i><EFBFBD>:</span></td><td> A short blurb.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>help</tt></i><EFBFBD>:</span></td><td> Detailed procedure help.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>author</tt></i><EFBFBD>:</span></td><td> Author(s) of the procedure.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>copyright</tt></i><EFBFBD>:</span></td><td> The copyright.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>date</tt></i><EFBFBD>:</span></td><td> Copyright date.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>proc_type</tt></i><EFBFBD>:</span></td><td> The procedure type.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_args</tt></i><EFBFBD>:</span></td><td> The number of input arguments.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_values</tt></i><EFBFBD>:</span></td><td> The number of return values.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>args</tt></i><EFBFBD>:</span></td><td> The input arguments.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>return_vals</tt></i><EFBFBD>:</span></td><td> The return values.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2551948"></a><h3><a name="gimp-procedural-db-get-data"></a>gimp_procedural_db_get_data ()</h3><a class="indexterm" name="id2551957"></a><pre class="programlisting">gboolean gimp_procedural_db_get_data (const gchar *identifier,
gpointer data);</pre><p>
Returns data associated with the specified identifier.
</p><p>
This procedure returns any data which may have been associated with
the specified identifier. The data is copied into the given memory
location.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>identifier</tt></i><EFBFBD>:</span></td><td> The identifier associated with data.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> A byte array containing data.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success, FALSE if no data has been associated with
the identifier
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2552030"></a><h3><a name="gimp-procedural-db-set-data"></a>gimp_procedural_db_set_data ()</h3><a class="indexterm" name="id2552039"></a><pre class="programlisting">gboolean gimp_procedural_db_set_data (const gchar *identifier,
gpointer data,
guint32 bytes);</pre><p>
Associates the specified identifier with the supplied data.
</p><p>
This procedure associates the supplied data with the provided
identifier. The data may be subsequently retrieved by a call to
'procedural-db-get-data'.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>identifier</tt></i><EFBFBD>:</span></td><td> The identifier associated with data.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td> A byte array containing data.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>bytes</tt></i><EFBFBD>:</span></td><td> The number of bytes in the data
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2552128"></a><h3><a name="gimp-procedural-db-dump"></a>gimp_procedural_db_dump ()</h3><a class="indexterm" name="id2552137"></a><pre class="programlisting">gboolean gimp_procedural_db_dump (const gchar *filename);</pre><p>
Dumps the current contents of the procedural database
</p><p>
This procedure dumps the contents of the procedural database to the
specified file. The file will contain all of the information
provided for each registered procedure. This file is in a format
appropriate for use with the supplied \"pdb_self_doc.el\" Elisp
script, which generates a texinfo document.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>filename</tt></i><EFBFBD>:</span></td><td> The dump filename.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2592489"></a><h3><a name="gimp-procedural-db-query"></a>gimp_procedural_db_query ()</h3><a class="indexterm" name="id2592498"></a><pre class="programlisting">gboolean gimp_procedural_db_query (const gchar *name,
const gchar *blurb,
const gchar *help,
const gchar *author,
const gchar *copyright,
const gchar *date,
const gchar *proc_type,
gint *num_matches,
gchar ***procedure_names);</pre><p>
Queries the procedural database for its contents using regular
expression matching.
</p><p>
This procedure queries the contents of the procedural database. It
is supplied with seven arguments matching procedures on { name,
blurb, help, author, copyright, date, procedure type}. This is
accomplished using regular expression matching. For instance, to
find all procedures with \"jpeg\" listed in the blurb, all seven
arguments can be supplied as \".*\", except for the second, which
can be supplied as \".*jpeg.*\". There are two return arguments for
this procedure. The first is the number of procedures matching the
query. The second is a concatenated list of procedure names
corresponding to those matching the query. If no matching entries
are found, then the returned string is NULL and the number of
entries is 0.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> The regex for procedure name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>blurb</tt></i><EFBFBD>:</span></td><td> The regex for procedure blurb.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>help</tt></i><EFBFBD>:</span></td><td> The regex for procedure help.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>author</tt></i><EFBFBD>:</span></td><td> The regex for procedure author.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>copyright</tt></i><EFBFBD>:</span></td><td> The regex for procedure copyright.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>date</tt></i><EFBFBD>:</span></td><td> The regex for procedure date.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>proc_type</tt></i><EFBFBD>:</span></td><td> The regex for procedure type: { 'Internal GIMP procedure', 'GIMP Plug-in', 'GIMP Extension' }.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_matches</tt></i><EFBFBD>:</span></td><td> The number of matching procedures.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>procedure_names</tt></i><EFBFBD>:</span></td><td> The list of procedure names.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2592655"></a><h3><a name="gimp-procedural-db-proc-arg"></a>gimp_procedural_db_proc_arg ()</h3><a class="indexterm" name="id2592662"></a><pre class="programlisting">gboolean gimp_procedural_db_proc_arg (const gchar *procedure,
gint arg_num,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBArgType"
>GimpPDBArgType</a> *arg_type,
gchar **arg_name,
gchar **arg_desc);</pre><p>
Queries the procedural database for information on the specified
procedure's argument.
</p><p>
This procedure returns information on the specified procedure's
argument. The argument type, name, and a description are retrieved.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>procedure</tt></i><EFBFBD>:</span></td><td> The procedure name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>arg_num</tt></i><EFBFBD>:</span></td><td> The argument number.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>arg_type</tt></i><EFBFBD>:</span></td><td> The type of argument.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>arg_name</tt></i><EFBFBD>:</span></td><td> The name of the argument.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>arg_desc</tt></i><EFBFBD>:</span></td><td> A description of the argument.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2592777"></a><h3><a name="gimp-procedural-db-proc-val"></a>gimp_procedural_db_proc_val ()</h3><a class="indexterm" name="id2592785"></a><pre class="programlisting">gboolean gimp_procedural_db_proc_val (const gchar *procedure,
gint val_num,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpPDBArgType"
>GimpPDBArgType</a> *val_type,
gchar **val_name,
gchar **val_desc);</pre><p>
Queries the procedural database for information on the specified
procedure's return value.
</p><p>
This procedure returns information on the specified procedure's
return value. The return value type, name, and a description are
retrieved.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>procedure</tt></i><EFBFBD>:</span></td><td> The procedure name.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>val_num</tt></i><EFBFBD>:</span></td><td> The return value number.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>val_type</tt></i><EFBFBD>:</span></td><td> The type of return value.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>val_name</tt></i><EFBFBD>:</span></td><td> The name of the return value.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>val_desc</tt></i><EFBFBD>:</span></td><td> A description of the return value.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2592900"></a><h3><a name="gimp-procedural-db-get-data-size"></a>gimp_procedural_db_get_data_size ()</h3><a class="indexterm" name="id2592908"></a><pre class="programlisting">gint gimp_procedural_db_get_data_size
(const gchar *identifier);</pre><p>
Returns size of data associated with the specified identifier.
</p><p>
This procedure returns the size of any data which may have been
associated with the specified identifier. If no data has been
associated with the identifier, an error is returned.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>identifier</tt></i><EFBFBD>:</span></td><td> The identifier associated with data.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The number of bytes in the data.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpplugin.html"><b>&lt;&lt;<EFBFBD>gimpplugin</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpprogress.html"><b>gimpprogress<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,100 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpprogress</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="prev" href="libgimp-gimpproceduraldb.html" title="gimpproceduraldb"><link rel="next" href="libgimp-image.html" title="Manupulating Images and all their Properties"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpproceduraldb.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-image.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpprogress"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpprogress</span></h2><p>gimpprogress &#8212; Functions for embedding the progress bar into a plug-in's GUI.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
void (<a href="libgimp-gimpprogress.html#GimpProgressStartCallback">*GimpProgressStartCallback</a>) (const gchar *message,
gboolean cancelable,
gpointer user_data);
void (<a href="libgimp-gimpprogress.html#GimpProgressEndCallback">*GimpProgressEndCallback</a>) (gpointer user_data);
void (<a href="libgimp-gimpprogress.html#GimpProgressTextCallback">*GimpProgressTextCallback</a>) (const gchar *message,
gpointer user_data);
void (<a href="libgimp-gimpprogress.html#GimpProgressValueCallback">*GimpProgressValueCallback</a>) (gdouble percentage,
gpointer user_data);
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-init">gimp_progress_init</a> (const gchar *message);
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-update">gimp_progress_update</a> (gdouble percentage);
const gchar* <a href="libgimp-gimpprogress.html#gimp-progress-install">gimp_progress_install</a> (<a href="libgimp-gimpprogress.html#GimpProgressStartCallback">GimpProgressStartCallback</a> start_callback,
<a href="libgimp-gimpprogress.html#GimpProgressEndCallback">GimpProgressEndCallback</a> end_callback,
<a href="libgimp-gimpprogress.html#GimpProgressTextCallback">GimpProgressTextCallback</a> text_callback,
<a href="libgimp-gimpprogress.html#GimpProgressValueCallback">GimpProgressValueCallback</a> value_callback,
gpointer user_data);
gpointer <a href="libgimp-gimpprogress.html#gimp-progress-uninstall">gimp_progress_uninstall</a> (const gchar *progress_callback);
gboolean <a href="libgimp-gimpprogress.html#gimp-progress-cancel">gimp_progress_cancel</a> (const gchar *progress_callback);
</pre></div><div class="refsect1" lang="en"><a name="id2582936"></a><h2>Description</h2><p>
Functions for embedding the progress bar into a plug-in's GUI.
</p></div><div class="refsect1" lang="en"><a name="id2582947"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2582952"></a><h3><a name="GimpProgressStartCallback"></a>GimpProgressStartCallback ()</h3><a class="indexterm" name="id2582960"></a><pre class="programlisting">void (*GimpProgressStartCallback) (const gchar *message,
gboolean cancelable,
gpointer user_data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>message</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>cancelable</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2583029"></a><h3><a name="GimpProgressEndCallback"></a>GimpProgressEndCallback ()</h3><a class="indexterm" name="id2583037"></a><pre class="programlisting">void (*GimpProgressEndCallback) (gpointer user_data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2582691"></a><h3><a name="GimpProgressTextCallback"></a>GimpProgressTextCallback ()</h3><a class="indexterm" name="id2582699"></a><pre class="programlisting">void (*GimpProgressTextCallback) (const gchar *message,
gpointer user_data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>message</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2582751"></a><h3><a name="GimpProgressValueCallback"></a>GimpProgressValueCallback ()</h3><a class="indexterm" name="id2582759"></a><pre class="programlisting">void (*GimpProgressValueCallback) (gdouble percentage,
gpointer user_data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>percentage</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2582810"></a><h3><a name="gimp-progress-init"></a>gimp_progress_init ()</h3><a class="indexterm" name="id2589984"></a><pre class="programlisting">gboolean gimp_progress_init (const gchar *message);</pre><p>
Initializes the progress bar for the current plug-in.
</p><p>
Initializes the progress bar for the current plug-in. It is only
valid to call this procedure from a plug-in.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>message</tt></i><EFBFBD>:</span></td><td> Message to use in the progress dialog.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2590037"></a><h3><a name="gimp-progress-update"></a>gimp_progress_update ()</h3><a class="indexterm" name="id2590045"></a><pre class="programlisting">gboolean gimp_progress_update (gdouble percentage);</pre><p>
Updates the progress bar for the current plug-in.
</p><p>
Updates the progress bar for the current plug-in. It is only valid
to call this procedure from a plug-in.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>percentage</tt></i><EFBFBD>:</span></td><td> Percentage of progress completed which must be between 0.0 and 1.0.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2590099"></a><h3><a name="gimp-progress-install"></a>gimp_progress_install ()</h3><a class="indexterm" name="id2590107"></a><pre class="programlisting">const gchar* gimp_progress_install (<a href="libgimp-gimpprogress.html#GimpProgressStartCallback">GimpProgressStartCallback</a> start_callback,
<a href="libgimp-gimpprogress.html#GimpProgressEndCallback">GimpProgressEndCallback</a> end_callback,
<a href="libgimp-gimpprogress.html#GimpProgressTextCallback">GimpProgressTextCallback</a> text_callback,
<a href="libgimp-gimpprogress.html#GimpProgressValueCallback">GimpProgressValueCallback</a> value_callback,
gpointer user_data);</pre><p>
</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>start_callback</tt></i><EFBFBD>:</span></td><td> the function to call when progress starts
</td></tr><tr><td><span class="term"><i class="parameter"><tt>end_callback</tt></i><EFBFBD>:</span></td><td> the function to call when progress finishes
</td></tr><tr><td><span class="term"><i class="parameter"><tt>text_callback</tt></i><EFBFBD>:</span></td><td> the function to call to change the text
</td></tr><tr><td><span class="term"><i class="parameter"><tt>value_callback</tt></i><EFBFBD>:</span></td><td> the function to call to change the value
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i><EFBFBD>:</span></td><td> a pointer that is returned when uninstalling the progress
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the name of the temporary procedure that's been installed
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2590232"></a><h3><a name="gimp-progress-uninstall"></a>gimp_progress_uninstall ()</h3><a class="indexterm" name="id2584237"></a><pre class="programlisting">gpointer gimp_progress_uninstall (const gchar *progress_callback);</pre><p>
Uninstalls a temporary progress procedure that was installed using
<a href="libgimp-gimpprogress.html#gimp-progress-install"><tt class="function">gimp_progress_install()</tt></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>progress_callback</tt></i><EFBFBD>:</span></td><td> the name of the temporary procedure to uninstall
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> the <i class="parameter"><tt>user_data</tt></i> that was passed to <a href="libgimp-gimpprogress.html#gimp-progress-install"><tt class="function">gimp_progress_install()</tt></a>.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div><hr><div class="refsect2" lang="en"><a name="id2584306"></a><h3><a name="gimp-progress-cancel"></a>gimp_progress_cancel ()</h3><a class="indexterm" name="id2584314"></a><pre class="programlisting">gboolean gimp_progress_cancel (const gchar *progress_callback);</pre><p>
Cancels a running progress.
</p><p>
This function cancels the currently running progress.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>progress_callback</tt></i><EFBFBD>:</span></td><td> The name of the callback registered for this progress.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div><p>Since GIMP 2.2
</p></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpproceduraldb.html"><b>&lt;&lt;<EFBFBD>gimpproceduraldb</b></a></td><td align="right"><a accesskey="n" href="libgimp-image.html"><b>Manupulating Images and all their Properties<65>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,177 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpregioniterator</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimppixelrgn.html" title="gimppixelrgn"><link rel="next" href="libgimp-gimpselection.html" title="gimpselection"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimppixelrgn.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpselection.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpregioniterator"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpregioniterator</span></h2><p>gimpregioniterator &#8212; Functions to traverse a pixel regions.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
<a href="libgimp-gimpregioniterator.html#GimpRgnIterator">GimpRgnIterator</a>;
void (<a href="libgimp-gimpregioniterator.html#GimpRgnFunc1">*GimpRgnFunc1</a>) (const guchar *src,
gint bpp,
gpointer data);
void (<a href="libgimp-gimpregioniterator.html#GimpRgnFunc2">*GimpRgnFunc2</a>) (const guchar *src,
guchar *dest,
gint bpp,
gpointer data);
void (<a href="libgimp-gimpregioniterator.html#GimpRgnFuncSrc">*GimpRgnFuncSrc</a>) (gint x,
gint y,
const guchar *src,
gint bpp,
gpointer data);
void (<a href="libgimp-gimpregioniterator.html#GimpRgnFuncDest">*GimpRgnFuncDest</a>) (gint x,
gint y,
guchar *dest,
gint bpp,
gpointer data);
void (<a href="libgimp-gimpregioniterator.html#GimpRgnFuncSrcDest">*GimpRgnFuncSrcDest</a>) (gint x,
gint y,
const guchar *src,
guchar *dest,
gint bpp,
gpointer data);
<a href="libgimp-gimpregioniterator.html#GimpRgnIterator">GimpRgnIterator</a>* <a href="libgimp-gimpregioniterator.html#gimp-rgn-iterator-new">gimp_rgn_iterator_new</a> (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
<a href="libgimp-gimpenums.html#GimpRunMode">GimpRunMode</a> unused);
void <a href="libgimp-gimpregioniterator.html#gimp-rgn-iterator-free">gimp_rgn_iterator_free</a> (<a href="libgimp-gimpregioniterator.html#GimpRgnIterator">GimpRgnIterator</a> *iter);
void <a href="libgimp-gimpregioniterator.html#gimp-rgn-iterator-src">gimp_rgn_iterator_src</a> (<a href="libgimp-gimpregioniterator.html#GimpRgnIterator">GimpRgnIterator</a> *iter,
<a href="libgimp-gimpregioniterator.html#GimpRgnFuncSrc">GimpRgnFuncSrc</a> func,
gpointer data);
void <a href="libgimp-gimpregioniterator.html#gimp-rgn-iterator-dest">gimp_rgn_iterator_dest</a> (<a href="libgimp-gimpregioniterator.html#GimpRgnIterator">GimpRgnIterator</a> *iter,
<a href="libgimp-gimpregioniterator.html#GimpRgnFuncDest">GimpRgnFuncDest</a> func,
gpointer data);
void <a href="libgimp-gimpregioniterator.html#gimp-rgn-iterator-src-dest">gimp_rgn_iterator_src_dest</a> (<a href="libgimp-gimpregioniterator.html#GimpRgnIterator">GimpRgnIterator</a> *iter,
<a href="libgimp-gimpregioniterator.html#GimpRgnFuncSrcDest">GimpRgnFuncSrcDest</a> func,
gpointer data);
void <a href="libgimp-gimpregioniterator.html#gimp-rgn-iterate1">gimp_rgn_iterate1</a> (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
<a href="libgimp-gimpenums.html#GimpRunMode">GimpRunMode</a> unused,
<a href="libgimp-gimpregioniterator.html#GimpRgnFunc1">GimpRgnFunc1</a> func,
gpointer data);
void <a href="libgimp-gimpregioniterator.html#gimp-rgn-iterate2">gimp_rgn_iterate2</a> (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
<a href="libgimp-gimpenums.html#GimpRunMode">GimpRunMode</a> unused,
<a href="libgimp-gimpregioniterator.html#GimpRgnFunc2">GimpRgnFunc2</a> func,
gpointer data);
</pre></div><div class="refsect1" lang="en"><a name="id2633332"></a><h2>Description</h2><p>
The GimpRgnIterator functions provide a variety
of common ways to traverse a PixelRegion,
using a pre-defined function pointer per pixel.
</p></div><div class="refsect1" lang="en"><a name="id2633344"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2633349"></a><h3><a name="GimpRgnIterator"></a>GimpRgnIterator</h3><a class="indexterm" name="id2633358"></a><pre class="programlisting">typedef struct _GimpRgnIterator GimpRgnIterator;</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2633368"></a><h3><a name="GimpRgnFunc1"></a>GimpRgnFunc1 ()</h3><a class="indexterm" name="id2633377"></a><pre class="programlisting">void (*GimpRgnFunc1) (const guchar *src,
gint bpp,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>src</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>bpp</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2633445"></a><h3><a name="GimpRgnFunc2"></a>GimpRgnFunc2 ()</h3><a class="indexterm" name="id2633453"></a><pre class="programlisting">void (*GimpRgnFunc2) (const guchar *src,
guchar *dest,
gint bpp,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>src</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>bpp</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2616190"></a><h3><a name="GimpRgnFuncSrc"></a>GimpRgnFuncSrc ()</h3><a class="indexterm" name="id2616198"></a><pre class="programlisting">void (*GimpRgnFuncSrc) (gint x,
gint y,
const guchar *src,
gint bpp,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>bpp</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2616299"></a><h3><a name="GimpRgnFuncDest"></a>GimpRgnFuncDest ()</h3><a class="indexterm" name="id2616308"></a><pre class="programlisting">void (*GimpRgnFuncDest) (gint x,
gint y,
guchar *dest,
gint bpp,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>bpp</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2616409"></a><h3><a name="GimpRgnFuncSrcDest"></a>GimpRgnFuncSrcDest ()</h3><a class="indexterm" name="id2616417"></a><pre class="programlisting">void (*GimpRgnFuncSrcDest) (gint x,
gint y,
const guchar *src,
guchar *dest,
gint bpp,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>bpp</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2637665"></a><h3><a name="gimp-rgn-iterator-new"></a>gimp_rgn_iterator_new ()</h3><a class="indexterm" name="id2637673"></a><pre class="programlisting"><a href="libgimp-gimpregioniterator.html#GimpRgnIterator">GimpRgnIterator</a>* gimp_rgn_iterator_new (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
<a href="libgimp-gimpenums.html#GimpRunMode">GimpRunMode</a> unused);</pre><p>
Creates a new <a href="libgimp-gimpregioniterator.html#GimpRgnIterator"><span class="type">GimpRgnIterator</span></a> for <i class="parameter"><tt>drawable</tt></i>. The <a href="libgimp-gimpenums.html#GimpRunMode"><span class="type">GimpRunMode</span></a>
parameter is ignored.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable</tt></i><EFBFBD>:</span></td><td> a <a href="libgimp-gimpdrawable.html#GimpDrawable"><span class="type">GimpDrawable</span></a>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>unused</tt></i><EFBFBD>:</span></td><td> ignored
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> a newly allocated <a href="libgimp-gimpregioniterator.html#GimpRgnIterator"><span class="type">GimpRgnIterator</span></a>.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2637732"></a><h3><a name="gimp-rgn-iterator-free"></a>gimp_rgn_iterator_free ()</h3><a class="indexterm" name="id2637740"></a><pre class="programlisting">void gimp_rgn_iterator_free (<a href="libgimp-gimpregioniterator.html#GimpRgnIterator">GimpRgnIterator</a> *iter);</pre><p>
Frees the resources allocated for <i class="parameter"><tt>iter</tt></i>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>iter</tt></i><EFBFBD>:</span></td><td> a <a href="libgimp-gimpregioniterator.html#GimpRgnIterator"><span class="type">GimpRgnIterator</span></a>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2637783"></a><h3><a name="gimp-rgn-iterator-src"></a>gimp_rgn_iterator_src ()</h3><a class="indexterm" name="id2637790"></a><pre class="programlisting">void gimp_rgn_iterator_src (<a href="libgimp-gimpregioniterator.html#GimpRgnIterator">GimpRgnIterator</a> *iter,
<a href="libgimp-gimpregioniterator.html#GimpRgnFuncSrc">GimpRgnFuncSrc</a> func,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>iter</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>func</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2637853"></a><h3><a name="gimp-rgn-iterator-dest"></a>gimp_rgn_iterator_dest ()</h3><a class="indexterm" name="id2637860"></a><pre class="programlisting">void gimp_rgn_iterator_dest (<a href="libgimp-gimpregioniterator.html#GimpRgnIterator">GimpRgnIterator</a> *iter,
<a href="libgimp-gimpregioniterator.html#GimpRgnFuncDest">GimpRgnFuncDest</a> func,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>iter</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>func</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2637925"></a><h3><a name="gimp-rgn-iterator-src-dest"></a>gimp_rgn_iterator_src_dest ()</h3><a class="indexterm" name="id2637934"></a><pre class="programlisting">void gimp_rgn_iterator_src_dest (<a href="libgimp-gimpregioniterator.html#GimpRgnIterator">GimpRgnIterator</a> *iter,
<a href="libgimp-gimpregioniterator.html#GimpRgnFuncSrcDest">GimpRgnFuncSrcDest</a> func,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>iter</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>func</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2638001"></a><h3><a name="gimp-rgn-iterate1"></a>gimp_rgn_iterate1 ()</h3><a class="indexterm" name="id2638010"></a><pre class="programlisting">void gimp_rgn_iterate1 (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
<a href="libgimp-gimpenums.html#GimpRunMode">GimpRunMode</a> unused,
<a href="libgimp-gimpregioniterator.html#GimpRgnFunc1">GimpRgnFunc1</a> func,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>unused</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>func</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2638094"></a><h3><a name="gimp-rgn-iterate2"></a>gimp_rgn_iterate2 ()</h3><a class="indexterm" name="id2638103"></a><pre class="programlisting">void gimp_rgn_iterate2 (<a href="libgimp-gimpdrawable.html#GimpDrawable">GimpDrawable</a> *drawable,
<a href="libgimp-gimpenums.html#GimpRunMode">GimpRunMode</a> unused,
<a href="libgimp-gimpregioniterator.html#GimpRgnFunc2">GimpRgnFunc2</a> func,
gpointer data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>unused</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>func</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>data</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimppixelrgn.html"><b>&lt;&lt;<EFBFBD>gimppixelrgn</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpselection.html"><b>gimpselection<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,239 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpselection</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpregioniterator.html" title="gimpregioniterator"><link rel="next" href="libgimp-gimptexttool.html" title="gimptexttool"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpregioniterator.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimptexttool.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpselection"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpselection</span></h2><p>gimpselection &#8212; Functions for manipulating selections.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimpselection.html#gimp-selection-bounds">gimp_selection_bounds</a> (gint32 image_ID,
gboolean *non_empty,
gint *x1,
gint *y1,
gint *x2,
gint *y2);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-all">gimp_selection_all</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-none">gimp_selection_none</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-clear">gimp_selection_clear</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-is-empty">gimp_selection_is_empty</a> (gint32 image_ID);
gint32 <a href="libgimp-gimpselection.html#gimp-selection-float">gimp_selection_float</a> (gint32 image_ID,
gint32 drawable_ID,
gint offx,
gint offy);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-load">gimp_selection_load</a> (gint32 channel_ID);
gint32 <a href="libgimp-gimpselection.html#gimp-selection-save">gimp_selection_save</a> (gint32 image_ID);
gint <a href="libgimp-gimpselection.html#gimp-selection-value">gimp_selection_value</a> (gint32 image_ID,
gint x,
gint y);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-grow">gimp_selection_grow</a> (gint32 image_ID,
gint steps);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-shrink">gimp_selection_shrink</a> (gint32 image_ID,
gint radius);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-invert">gimp_selection_invert</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-feather">gimp_selection_feather</a> (gint32 image_ID,
gdouble radius);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-sharpen">gimp_selection_sharpen</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-border">gimp_selection_border</a> (gint32 image_ID,
gint radius);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-translate">gimp_selection_translate</a> (gint32 image_ID,
gint offx,
gint offy);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-layer-alpha">gimp_selection_layer_alpha</a> (gint32 layer_ID);
gboolean <a href="libgimp-gimpselection.html#gimp-selection-combine">gimp_selection_combine</a> (gint32 channel_ID,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation);
</pre></div><div class="refsect1" lang="en"><a name="id2635194"></a><h2>Description</h2><p>
Functions for manipulating selections.
</p></div><div class="refsect1" lang="en"><a name="id2635204"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2635209"></a><h3><a name="gimp-selection-bounds"></a>gimp_selection_bounds ()</h3><a class="indexterm" name="id2635217"></a><pre class="programlisting">gboolean gimp_selection_bounds (gint32 image_ID,
gboolean *non_empty,
gint *x1,
gint *y1,
gint *x2,
gint *y2);</pre><p>
Find the bounding box of the current selection.
</p><p>
This procedure returns whether there is a selection for the
specified image. If there is one, the upper left and lower right
corners of the bounding box are returned. These coordinates are
relative to the image. Please note that the pixel specified by the
lower righthand coordinate of the bounding box is not part of the
selection. The selection ends at the upper left corner of this
pixel. This means the width of the selection can be calculated as
(x2 - x1), its height as (y2 - y1).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>non_empty</tt></i><EFBFBD>:</span></td><td> True if there is a selection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x1</tt></i><EFBFBD>:</span></td><td> x coordinate of upper left corner of selection bounds.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y1</tt></i><EFBFBD>:</span></td><td> y coordinate of upper left corner of selection bounds.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x2</tt></i><EFBFBD>:</span></td><td> x coordinate of lower right corner of selection bounds.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y2</tt></i><EFBFBD>:</span></td><td> y coordinate of lower right corner of selection bounds.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2616428"></a><h3><a name="gimp-selection-all"></a>gimp_selection_all ()</h3><a class="indexterm" name="id2616436"></a><pre class="programlisting">gboolean gimp_selection_all (gint32 image_ID);</pre><p>
Select all of the image.
</p><p>
This procedure sets the selection mask to completely encompass the
image. Every pixel in the selection channel is set to 255.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2616488"></a><h3><a name="gimp-selection-none"></a>gimp_selection_none ()</h3><a class="indexterm" name="id2616496"></a><pre class="programlisting">gboolean gimp_selection_none (gint32 image_ID);</pre><p>
Deselect the entire image.
</p><p>
This procedure deselects the entire image. Every pixel in the
selection channel is set to 0.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2616549"></a><h3><a name="gimp-selection-clear"></a>gimp_selection_clear ()</h3><a class="indexterm" name="id2616557"></a><pre class="programlisting">gboolean gimp_selection_clear (gint32 image_ID);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_selection_clear</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimpselection.html#gimp-selection-none"><tt class="function">gimp_selection_none()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2616620"></a><h3><a name="gimp-selection-is-empty"></a>gimp_selection_is_empty ()</h3><a class="indexterm" name="id2616629"></a><pre class="programlisting">gboolean gimp_selection_is_empty (gint32 image_ID);</pre><p>
Determine whether the selection is empty.
</p><p>
This procedure returns non-zero if the selection for the specified
image is not empty.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Is the selection empty?
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2616682"></a><h3><a name="gimp-selection-float"></a>gimp_selection_float ()</h3><a class="indexterm" name="id2616690"></a><pre class="programlisting">gint32 gimp_selection_float (gint32 image_ID,
gint32 drawable_ID,
gint offx,
gint offy);</pre><p>
Float the selection from the specified drawable with initial offsets
as specified.
</p><p>
This procedure determines the region of the specified drawable that
lies beneath the current selection. The region is then cut from the
drawable and the resulting data is made into a new layer which is
instantiated as a floating selection. The offsets allow initial
positioning of the new floating selection.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> ignored
</td></tr><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The drawable from which to float selection.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offx</tt></i><EFBFBD>:</span></td><td> x offset for translation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offy</tt></i><EFBFBD>:</span></td><td> y offset for translation.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The floated layer.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2639986"></a><h3><a name="gimp-selection-load"></a>gimp_selection_load ()</h3><a class="indexterm" name="id2639993"></a><pre class="programlisting">gboolean gimp_selection_load (gint32 channel_ID);</pre><p>
Transfer the specified channel to the selection mask.
</p><p>
This procedure loads the specified channel into the selection mask.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>channel_ID</tt></i><EFBFBD>:</span></td><td> The channel.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2640042"></a><h3><a name="gimp-selection-save"></a>gimp_selection_save ()</h3><a class="indexterm" name="id2640050"></a><pre class="programlisting">gint32 gimp_selection_save (gint32 image_ID);</pre><p>
Copy the selection mask to a new channel.
</p><p>
This procedure copies the selection mask and stores the content in a
new channel. The new channel is automatically inserted into the
image's list of channels.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The new channel.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2640100"></a><h3><a name="gimp-selection-value"></a>gimp_selection_value ()</h3><a class="indexterm" name="id2640107"></a><pre class="programlisting">gint gimp_selection_value (gint32 image_ID,
gint x,
gint y);</pre><p>
Find the value of the selection at the specified coordinates.
</p><p>
This procedure returns the value of the selection at the specified
coordinates. If the coordinates lie out of bounds, 0 is returned.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> x coordinate of value.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> y coordinate of value.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> Value of the selection.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2640189"></a><h3><a name="gimp-selection-grow"></a>gimp_selection_grow ()</h3><a class="indexterm" name="id2640198"></a><pre class="programlisting">gboolean gimp_selection_grow (gint32 image_ID,
gint steps);</pre><p>
Grow the image's selection
</p><p>
This procedure grows the selection. Growing involves expanding the
boundary in all directions by the specified pixel amount.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>steps</tt></i><EFBFBD>:</span></td><td> Steps of grow (in pixels).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2640267"></a><h3><a name="gimp-selection-shrink"></a>gimp_selection_shrink ()</h3><a class="indexterm" name="id2640275"></a><pre class="programlisting">gboolean gimp_selection_shrink (gint32 image_ID,
gint radius);</pre><p>
Shrink the image's selection
</p><p>
This procedure shrinks the selection. Shrinking invovles trimming
the existing selection boundary on all sides by the specified number
of pixels.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>radius</tt></i><EFBFBD>:</span></td><td> Radius of shrink (in pixels).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2640344"></a><h3><a name="gimp-selection-invert"></a>gimp_selection_invert ()</h3><a class="indexterm" name="id2640353"></a><pre class="programlisting">gboolean gimp_selection_invert (gint32 image_ID);</pre><p>
Invert the selection mask.
</p><p>
This procedure inverts the selection mask. For every pixel in the
selection channel, its new value is calculated as (255 - old_value).</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2640405"></a><h3><a name="gimp-selection-feather"></a>gimp_selection_feather ()</h3><a class="indexterm" name="id2640413"></a><pre class="programlisting">gboolean gimp_selection_feather (gint32 image_ID,
gdouble radius);</pre><p>
Feather the image's selection
</p><p>
This procedure feathers the selection. Feathering is implemented
using a gaussian blur.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>radius</tt></i><EFBFBD>:</span></td><td> Radius of feather (in pixels).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2640482"></a><h3><a name="gimp-selection-sharpen"></a>gimp_selection_sharpen ()</h3><a class="indexterm" name="id2640490"></a><pre class="programlisting">gboolean gimp_selection_sharpen (gint32 image_ID);</pre><p>
Sharpen the selection mask.
</p><p>
This procedure sharpens the selection mask. For every pixel in the
selection channel, if the value is &gt; 0, the new pixel is assigned
a value of 255. This removes any \"anti-aliasing\" that might exist
in the selection mask's boundary.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2640544"></a><h3><a name="gimp-selection-border"></a>gimp_selection_border ()</h3><a class="indexterm" name="id2640552"></a><pre class="programlisting">gboolean gimp_selection_border (gint32 image_ID,
gint radius);</pre><p>
Border the image's selection
</p><p>
This procedure borders the selection. Bordering creates a new
selection which is defined along the boundary of the previous
selection at every point within the specified radius.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>radius</tt></i><EFBFBD>:</span></td><td> Radius of border (in pixels).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2640622"></a><h3><a name="gimp-selection-translate"></a>gimp_selection_translate ()</h3><a class="indexterm" name="id2640630"></a><pre class="programlisting">gboolean gimp_selection_translate (gint32 image_ID,
gint offx,
gint offy);</pre><p>
Translate the selection by the specified offsets.
</p><p>
This procedure actually translates the selection for the specified
image by the specified offsets. Regions that are translated from
beyond the bounds of the image are set to empty. Valid regions of
the selection which are translated beyond the bounds of the image
because of this call are lost.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offx</tt></i><EFBFBD>:</span></td><td> x offset for translation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>offy</tt></i><EFBFBD>:</span></td><td> y offset for translation.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2640720"></a><h3><a name="gimp-selection-layer-alpha"></a>gimp_selection_layer_alpha ()</h3><a class="indexterm" name="id2640728"></a><pre class="programlisting">gboolean gimp_selection_layer_alpha (gint32 layer_ID);</pre><p>
Transfer the specified layer's alpha channel to the selection mask.
</p><p>
This procedure requires a layer with an alpha channel. The alpha
channel information is used to create a selection mask such that for
any pixel in the image defined in the specified layer, that layer
pixel's alpha value is transferred to the selection mask. If the
layer is undefined at a particular image pixel, the associated
selection mask value is set to 0.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>layer_ID</tt></i><EFBFBD>:</span></td><td> Layer with alpha.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2640785"></a><h3><a name="gimp-selection-combine"></a>gimp_selection_combine ()</h3><a class="indexterm" name="id2640794"></a><pre class="programlisting">gboolean gimp_selection_combine (gint32 channel_ID,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation);</pre><p>
Combines the specified channel with the selection mask.
</p><p>
This procedure combines the specified channel into the selection
mask.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>channel_ID</tt></i><EFBFBD>:</span></td><td> The channel.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>operation</tt></i><EFBFBD>:</span></td><td> The selection operation.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpregioniterator.html"><b>&lt;&lt;<EFBFBD>gimpregioniterator</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimptexttool.html"><b>gimptexttool<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,187 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimptexttool</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimpselection.html" title="gimpselection"><link rel="next" href="libgimp-gimptile.html" title="gimptile"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpselection.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimptile.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimptexttool"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimptexttool</span></h2><p>gimptexttool &#8212; Functions for controlling the text tool.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gint32 <a href="libgimp-gimptexttool.html#gimp-text-fontname">gimp_text_fontname</a> (gint32 image_ID,
gint32 drawable_ID,
gdouble x,
gdouble y,
const gchar *text,
gint border,
gboolean antialias,
gdouble size,
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
const gchar *fontname);
gboolean <a href="libgimp-gimptexttool.html#gimp-text-get-extents-fontname">gimp_text_get_extents_fontname</a> (const gchar *text,
gdouble size,
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
const gchar *fontname,
gint *width,
gint *height,
gint *ascent,
gint *descent);
gint32 <a href="libgimp-gimptexttool.html#gimp-text">gimp_text</a> (gint32 image_ID,
gint32 drawable_ID,
gdouble x,
gdouble y,
const gchar *text,
gint border,
gboolean antialias,
gdouble size,
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
const gchar *foundry,
const gchar *family,
const gchar *weight,
const gchar *slant,
const gchar *set_width,
const gchar *spacing,
const gchar *registry,
const gchar *encoding);
gboolean <a href="libgimp-gimptexttool.html#gimp-text-get-extents">gimp_text_get_extents</a> (const gchar *text,
gdouble size,
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
const gchar *foundry,
const gchar *family,
const gchar *weight,
const gchar *slant,
const gchar *set_width,
const gchar *spacing,
const gchar *registry,
const gchar *encoding,
gint *width,
gint *height,
gint *ascent,
gint *descent);
</pre></div><div class="refsect1" lang="en"><a name="id2632890"></a><h2>Description</h2><p>
Functions for controlling the text tool.
</p></div><div class="refsect1" lang="en"><a name="id2632899"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2632905"></a><h3><a name="gimp-text-fontname"></a>gimp_text_fontname ()</h3><a class="indexterm" name="id2632913"></a><pre class="programlisting">gint32 gimp_text_fontname (gint32 image_ID,
gint32 drawable_ID,
gdouble x,
gdouble y,
const gchar *text,
gint border,
gboolean antialias,
gdouble size,
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
const gchar *fontname);</pre><p>
Add text at the specified location as a floating selection or a new
layer.
</p><p>
This tool requires a fontname matching an installed PangoFT2 font.
You can specify the fontsize in units of pixels or points, and the
appropriate metric is specified using the size_type argument. The x
and y parameters together control the placement of the new text by
specifying the upper left corner of the text bounding box. If the
specified drawable parameter is valid, the text will be created as a
floating selection attached to the drawable. If the drawable
parameter is not valid (-1), the text will appear as a new layer.
Finally, a border can be specified around the final rendered text.
The border is measured in pixels.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable: (-1 for a new text layer).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> The x coordinate for the left of the text bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> The y coordinate for the top of the text bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>text</tt></i><EFBFBD>:</span></td><td> The text to generate (in UTF-8 encoding).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>border</tt></i><EFBFBD>:</span></td><td> The size of the border.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>antialias</tt></i><EFBFBD>:</span></td><td> Antialiasing.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size</tt></i><EFBFBD>:</span></td><td> The size of text in either pixels or points.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size_type</tt></i><EFBFBD>:</span></td><td> The units of specified size.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>fontname</tt></i><EFBFBD>:</span></td><td> The name of the font.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The new text layer or -1 if no layer was created.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2634836"></a><h3><a name="gimp-text-get-extents-fontname"></a>gimp_text_get_extents_fontname ()</h3><a class="indexterm" name="id2634843"></a><pre class="programlisting">gboolean gimp_text_get_extents_fontname (const gchar *text,
gdouble size,
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
const gchar *fontname,
gint *width,
gint *height,
gint *ascent,
gint *descent);</pre><p>
Get extents of the bounding box for the specified text.
</p><p>
This tool returns the width and height of a bounding box for the
specified text string with the specified font information. Ascent
and descent for the specified font are returned as well.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>text</tt></i><EFBFBD>:</span></td><td> The text to generate (in UTF-8 encoding).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size</tt></i><EFBFBD>:</span></td><td> The size of text in either pixels or points.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size_type</tt></i><EFBFBD>:</span></td><td> The units of specified size.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>fontname</tt></i><EFBFBD>:</span></td><td> The name of the font.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The width of the specified font.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The height of the specified font.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>ascent</tt></i><EFBFBD>:</span></td><td> The ascent of the specified font.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>descent</tt></i><EFBFBD>:</span></td><td> The descent of the specified font.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2635006"></a><h3><a name="gimp-text"></a>gimp_text ()</h3><a class="indexterm" name="id2635014"></a><pre class="programlisting">gint32 gimp_text (gint32 image_ID,
gint32 drawable_ID,
gdouble x,
gdouble y,
const gchar *text,
gint border,
gboolean antialias,
gdouble size,
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
const gchar *foundry,
const gchar *family,
const gchar *weight,
const gchar *slant,
const gchar *set_width,
const gchar *spacing,
const gchar *registry,
const gchar *encoding);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_text</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimptexttool.html#gimp-text-fontname"><tt class="function">gimp_text_fontname()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable: (-1 for a new text layer).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> The x coordinate for the left of the text bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> The y coordinate for the top of the text bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>text</tt></i><EFBFBD>:</span></td><td> The text to generate (in UTF-8 encoding).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>border</tt></i><EFBFBD>:</span></td><td> The size of the border.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>antialias</tt></i><EFBFBD>:</span></td><td> Antialiasing.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size</tt></i><EFBFBD>:</span></td><td> The size of text in either pixels or points.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size_type</tt></i><EFBFBD>:</span></td><td> The units of specified size.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>foundry</tt></i><EFBFBD>:</span></td><td> The font foundry.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>family</tt></i><EFBFBD>:</span></td><td> The font family.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>weight</tt></i><EFBFBD>:</span></td><td> The font weight.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>slant</tt></i><EFBFBD>:</span></td><td> The font slant.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>set_width</tt></i><EFBFBD>:</span></td><td> The font set-width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td> The font spacing.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>registry</tt></i><EFBFBD>:</span></td><td> The font registry.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>encoding</tt></i><EFBFBD>:</span></td><td> The font encoding.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The new text layer or -1 if no layer was created.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2642054"></a><h3><a name="gimp-text-get-extents"></a>gimp_text_get_extents ()</h3><a class="indexterm" name="id2642063"></a><pre class="programlisting">gboolean gimp_text_get_extents (const gchar *text,
gdouble size,
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
const gchar *foundry,
const gchar *family,
const gchar *weight,
const gchar *slant,
const gchar *set_width,
const gchar *spacing,
const gchar *registry,
const gchar *encoding,
gint *width,
gint *height,
gint *ascent,
gint *descent);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_text_get_extents</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use <a href="libgimp-gimptexttool.html#gimp-text-get-extents-fontname"><tt class="function">gimp_text_get_extents_fontname()</tt></a>
instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>text</tt></i><EFBFBD>:</span></td><td> The text to generate (in UTF-8 encoding).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size</tt></i><EFBFBD>:</span></td><td> The size of text in either pixels or points.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size_type</tt></i><EFBFBD>:</span></td><td> The units of specified size.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>foundry</tt></i><EFBFBD>:</span></td><td> The font foundry.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>family</tt></i><EFBFBD>:</span></td><td> The font family.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>weight</tt></i><EFBFBD>:</span></td><td> The font weight.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>slant</tt></i><EFBFBD>:</span></td><td> The font slant.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>set_width</tt></i><EFBFBD>:</span></td><td> The font set-width.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>spacing</tt></i><EFBFBD>:</span></td><td> The font spacing.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>registry</tt></i><EFBFBD>:</span></td><td> The font registry.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>encoding</tt></i><EFBFBD>:</span></td><td> The font encoding.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The width of the specified font.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The height of the specified font.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>ascent</tt></i><EFBFBD>:</span></td><td> The ascent of the specified font.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>descent</tt></i><EFBFBD>:</span></td><td> The descent of the specified font.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpselection.html"><b>&lt;&lt;<EFBFBD>gimpselection</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimptile.html"><b>gimptile<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,69 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimptile</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimptexttool.html" title="gimptexttool"><link rel="next" href="libgimp-gimptools.html" title="gimptools"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimptexttool.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimptools.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimptile"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimptile</span></h2><p>gimptile &#8212; Functions for working with tiles.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
<a href="libgimp-gimptile.html#GimpTile">GimpTile</a>;
void <a href="libgimp-gimptile.html#gimp-tile-ref">gimp_tile_ref</a> (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);
void <a href="libgimp-gimptile.html#gimp-tile-ref-zero">gimp_tile_ref_zero</a> (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);
void <a href="libgimp-gimptile.html#gimp-tile-unref">gimp_tile_unref</a> (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile,
gboolean dirty);
void <a href="libgimp-gimptile.html#gimp-tile-flush">gimp_tile_flush</a> (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);
void <a href="libgimp-gimptile.html#gimp-tile-cache-size">gimp_tile_cache_size</a> (gulong kilobytes);
void <a href="libgimp-gimptile.html#gimp-tile-cache-ntiles">gimp_tile_cache_ntiles</a> (gulong ntiles);
</pre></div><div class="refsect1" lang="en"><a name="id2633165"></a><h2>Description</h2><p>
Functions for working with tiles.
</p></div><div class="refsect1" lang="en"><a name="id2633175"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2633180"></a><h3><a name="GimpTile"></a>GimpTile</h3><a class="indexterm" name="id2633189"></a><pre class="programlisting">typedef struct {
guint ewidth; /* the effective width of the tile */
guint eheight; /* the effective height of the tile */
guint bpp; /* the bytes per pixel (1, 2, 3 or 4 ) */
guint tile_num; /* the number of this tile within the drawable */
guint16 ref_count; /* reference count for the tile */
guint dirty : 1; /* is the tile dirty? has it been modified? */
guint shadow: 1; /* is this a shadow tile */
guchar *data; /* the pixel data for the tile */
GimpDrawable *drawable; /* the drawable this tile came from */
} GimpTile;
</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2642607"></a><h3><a name="gimp-tile-ref"></a>gimp_tile_ref ()</h3><a class="indexterm" name="id2558118"></a><pre class="programlisting">void gimp_tile_ref (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>tile</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2545681"></a><h3><a name="gimp-tile-ref-zero"></a>gimp_tile_ref_zero ()</h3><a class="indexterm" name="id2633208"></a><pre class="programlisting">void gimp_tile_ref_zero (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>tile</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2620259"></a><h3><a name="gimp-tile-unref"></a>gimp_tile_unref ()</h3><a class="indexterm" name="id2620266"></a><pre class="programlisting">void gimp_tile_unref (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile,
gboolean dirty);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>tile</tt></i><EFBFBD>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dirty</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2620313"></a><h3><a name="gimp-tile-flush"></a>gimp_tile_flush ()</h3><a class="indexterm" name="id2620321"></a><pre class="programlisting">void gimp_tile_flush (<a href="libgimp-gimptile.html#GimpTile">GimpTile</a> *tile);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>tile</tt></i><EFBFBD>:</span></td><td>
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2620352"></a><h3><a name="gimp-tile-cache-size"></a>gimp_tile_cache_size ()</h3><a class="indexterm" name="id2620359"></a><pre class="programlisting">void gimp_tile_cache_size (gulong kilobytes);</pre><p>
Sets the size of the tile cache on the plug-in side. The tile cache
is used to reduce the number of tiles exchanged between the GIMP core
and the plug-in. See also <a href="libgimp-gimptile.html#gimp-tile-cache-ntiles"><tt class="function">gimp_tile_cache_ntiles()</tt></a>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>kilobytes</tt></i><EFBFBD>:</span></td><td> new cache size in kilobytes
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2634131"></a><h3><a name="gimp-tile-cache-ntiles"></a>gimp_tile_cache_ntiles ()</h3><a class="indexterm" name="id2634139"></a><pre class="programlisting">void gimp_tile_cache_ntiles (gulong ntiles);</pre><p>
Sets the size of the tile cache on the plug-in side. This function
is similar to <a href="libgimp-gimptile.html#gimp-tile-cache-size"><tt class="function">gimp_tile_cache_size()</tt></a> but allows to specify the
number of tiles directly.
</p><p>
If your plug-in access pixels tile-by-tile, it doesn't need a tile
cache at all. If however the plug-in accesses drawable pixel data
row-by-row, it should set the tile cache large enough to hold the
number of tiles per row. Double this size if your plug-in uses
shadow tiles.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>ntiles</tt></i><EFBFBD>:</span></td><td> number of tiles that should fit into the cache
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimptexttool.html"><b>&lt;&lt;<EFBFBD>gimptexttool</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimptools.html"><b>gimptools<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,673 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimptools</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimptile.html" title="gimptile"><link rel="next" href="libgimp-gimpundo.html" title="gimpundo"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimptile.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpundo.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimptools"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimptools</span></h2><p>gimptools &#8212; Access to common toolbox tools.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimptools.html#gimp-airbrush">gimp_airbrush</a> (gint32 drawable_ID,
gdouble pressure,
gint num_strokes,
const gdouble *strokes);
gboolean <a href="libgimp-gimptools.html#gimp-airbrush-default">gimp_airbrush_default</a> (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);
gboolean <a href="libgimp-gimptools.html#gimp-by-color-select">gimp_by_color_select</a> (gint32 drawable_ID,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
gint threshold,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation,
gboolean antialias,
gboolean feather,
gdouble feather_radius,
gboolean sample_merged);
gboolean <a href="libgimp-gimptools.html#gimp-clone">gimp_clone</a> (gint32 drawable_ID,
gint32 src_drawable_ID,
<a href="libgimp-gimpenums.html#GimpCloneType">GimpCloneType</a> clone_type,
gdouble src_x,
gdouble src_y,
gint num_strokes,
const gdouble *strokes);
gboolean <a href="libgimp-gimptools.html#gimp-clone-default">gimp_clone_default</a> (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);
gboolean <a href="libgimp-gimptools.html#gimp-convolve">gimp_convolve</a> (gint32 drawable_ID,
gdouble pressure,
<a href="libgimp-gimpenums.html#GimpConvolveType">GimpConvolveType</a> convolve_type,
gint num_strokes,
const gdouble *strokes);
gboolean <a href="libgimp-gimptools.html#gimp-convolve-default">gimp_convolve_default</a> (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);
gboolean <a href="libgimp-gimptools.html#gimp-dodgeburn">gimp_dodgeburn</a> (gint32 drawable_ID,
gdouble exposure,
<a href="libgimp-gimpenums.html#GimpDodgeBurnType">GimpDodgeBurnType</a> dodgeburn_type,
<a href="libgimp-gimpenums.html#GimpTransferMode">GimpTransferMode</a> dodgeburn_mode,
gint num_strokes,
const gdouble *strokes);
gboolean <a href="libgimp-gimptools.html#gimp-dodgeburn-default">gimp_dodgeburn_default</a> (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);
gboolean <a href="libgimp-gimptools.html#gimp-ellipse-select">gimp_ellipse_select</a> (gint32 image_ID,
gdouble x,
gdouble y,
gdouble width,
gdouble height,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation,
gboolean antialias,
gboolean feather,
gdouble feather_radius);
gboolean <a href="libgimp-gimptools.html#gimp-eraser">gimp_eraser</a> (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes,
<a href="libgimp-gimpenums.html#GimpBrushApplicationMode">GimpBrushApplicationMode</a> hardness,
<a href="libgimp-gimpenums.html#GimpPaintApplicationMode">GimpPaintApplicationMode</a> method);
gboolean <a href="libgimp-gimptools.html#gimp-eraser-default">gimp_eraser_default</a> (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);
gint32 <a href="libgimp-gimptools.html#gimp-flip">gimp_flip</a> (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> flip_type);
gboolean <a href="libgimp-gimptools.html#gimp-free-select">gimp_free_select</a> (gint32 image_ID,
gint num_segs,
const gdouble *segs,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation,
gboolean antialias,
gboolean feather,
gdouble feather_radius);
gboolean <a href="libgimp-gimptools.html#gimp-fuzzy-select">gimp_fuzzy_select</a> (gint32 drawable_ID,
gdouble x,
gdouble y,
gint threshold,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation,
gboolean antialias,
gboolean feather,
gdouble feather_radius,
gboolean sample_merged);
gboolean <a href="libgimp-gimptools.html#gimp-paintbrush">gimp_paintbrush</a> (gint32 drawable_ID,
gdouble fade_out,
gint num_strokes,
const gdouble *strokes,
<a href="libgimp-gimpenums.html#GimpPaintApplicationMode">GimpPaintApplicationMode</a> method,
gdouble gradient_length);
gboolean <a href="libgimp-gimptools.html#gimp-paintbrush-default">gimp_paintbrush_default</a> (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);
gboolean <a href="libgimp-gimptools.html#gimp-pencil">gimp_pencil</a> (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);
gint32 <a href="libgimp-gimptools.html#gimp-perspective">gimp_perspective</a> (gint32 drawable_ID,
gboolean interpolation,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2,
gdouble x3,
gdouble y3);
gboolean <a href="libgimp-gimptools.html#gimp-rect-select">gimp_rect_select</a> (gint32 image_ID,
gdouble x,
gdouble y,
gdouble width,
gdouble height,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation,
gboolean feather,
gdouble feather_radius);
gint32 <a href="libgimp-gimptools.html#gimp-rotate">gimp_rotate</a> (gint32 drawable_ID,
gboolean interpolation,
gdouble angle);
gint32 <a href="libgimp-gimptools.html#gimp-scale">gimp_scale</a> (gint32 drawable_ID,
gboolean interpolation,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1);
gint32 <a href="libgimp-gimptools.html#gimp-shear">gimp_shear</a> (gint32 drawable_ID,
gboolean interpolation,
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> shear_type,
gdouble magnitude);
gboolean <a href="libgimp-gimptools.html#gimp-smudge">gimp_smudge</a> (gint32 drawable_ID,
gdouble pressure,
gint num_strokes,
const gdouble *strokes);
gboolean <a href="libgimp-gimptools.html#gimp-smudge-default">gimp_smudge_default</a> (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);
gint32 <a href="libgimp-gimptools.html#gimp-transform-2d">gimp_transform_2d</a> (gint32 drawable_ID,
gboolean interpolation,
gdouble source_x,
gdouble source_y,
gdouble scale_x,
gdouble scale_y,
gdouble angle,
gdouble dest_x,
gdouble dest_y);
</pre></div><div class="refsect1" lang="en"><a name="id2648590"></a><h2>Description</h2><p>
Functions giving access to common toolbox tools.
</p></div><div class="refsect1" lang="en"><a name="id2648601"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2648606"></a><h3><a name="gimp-airbrush"></a>gimp_airbrush ()</h3><a class="indexterm" name="id2648614"></a><pre class="programlisting">gboolean gimp_airbrush (gint32 drawable_ID,
gdouble pressure,
gint num_strokes,
const gdouble *strokes);</pre><p>
Paint in the current brush with varying pressure. Paint application
is time-dependent.
</p><p>
This tool simulates the use of an airbrush. Paint pressure
represents the relative intensity of the paint application. High
pressure results in a thicker layer of paint while low pressure
results in a thinner layer.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pressure</tt></i><EFBFBD>:</span></td><td> The pressure of the airbrush strokes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2648723"></a><h3><a name="gimp-airbrush-default"></a>gimp_airbrush_default ()</h3><a class="indexterm" name="id2648731"></a><pre class="programlisting">gboolean gimp_airbrush_default (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);</pre><p>
Paint in the current brush with varying pressure. Paint application
is time-dependent.
</p><p>
This tool simulates the use of an airbrush. It is similar to
gimp_airbrush except that the pressure is derived from the airbrush
tools options box. It the option has not been set the default for
the option will be used.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2648823"></a><h3><a name="gimp-by-color-select"></a>gimp_by_color_select ()</h3><a class="indexterm" name="id2648832"></a><pre class="programlisting">gboolean gimp_by_color_select (gint32 drawable_ID,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color,
gint threshold,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation,
gboolean antialias,
gboolean feather,
gdouble feather_radius,
gboolean sample_merged);</pre><p>
Create a selection by selecting all pixels (in the specified
drawable) with the same (or similar) color to that specified.
</p><p>
This tool creates a selection over the specified image. A by-color
selection is determined by the supplied color under the constraints
of the specified threshold. Essentially, all pixels (in the
drawable) that have color sufficiently close to the specified color
(as determined by the threshold value) are included in the
selection. The antialiasing parameter allows the final selection
mask to contain intermediate values based on close misses to the
threshold bar. Feathering can be enabled optionally and is
controlled with the \"feather_radius\" parameter. If the
sample_merged parameter is non-zero, the data of the composite image
will be used instead of that for the specified drawable. This is
equivalent to sampling for colors after merging all visible layers.
In the case of a merged sampling, the supplied drawable is ignored.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i><EFBFBD>:</span></td><td> The color to select.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>threshold</tt></i><EFBFBD>:</span></td><td> Threshold in intensity levels %<tt class="literal">desc</tt>%%.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>operation</tt></i><EFBFBD>:</span></td><td> The selection operation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>antialias</tt></i><EFBFBD>:</span></td><td> Antialiasing.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather</tt></i><EFBFBD>:</span></td><td> Feather option for selections.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather_radius</tt></i><EFBFBD>:</span></td><td> Radius for feather operation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>sample_merged</tt></i><EFBFBD>:</span></td><td> Use the composite image, not the drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2648987"></a><h3><a name="gimp-clone"></a>gimp_clone ()</h3><a class="indexterm" name="id2648994"></a><pre class="programlisting">gboolean gimp_clone (gint32 drawable_ID,
gint32 src_drawable_ID,
<a href="libgimp-gimpenums.html#GimpCloneType">GimpCloneType</a> clone_type,
gdouble src_x,
gdouble src_y,
gint num_strokes,
const gdouble *strokes);</pre><p>
Clone from the source to the dest drawable using the current brush
</p><p>
This tool clones (copies) from the source drawable starting at the
specified source coordinates to the dest drawable. If the
\"clone_type\" argument is set to PATTERN-CLONE, then the current
pattern is used as the source and the \"src_drawable\" argument is
ignored. Pattern cloning assumes a tileable pattern and mods the sum
of the src coordinates and subsequent stroke offsets with the width
and height of the pattern. For image cloning, if the sum of the src
coordinates and subsequent stroke offsets exceeds the extents of the
src drawable, then no paint is transferred. The clone tool is
capable of transforming between any image types including
RGB-&gt;Indexed--although converting from any type to indexed is
significantly slower.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_drawable_ID</tt></i><EFBFBD>:</span></td><td> The source drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clone_type</tt></i><EFBFBD>:</span></td><td> The type of clone.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_x</tt></i><EFBFBD>:</span></td><td> The x coordinate in the source image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_y</tt></i><EFBFBD>:</span></td><td> The y coordinate in the source image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2649154"></a><h3><a name="gimp-clone-default"></a>gimp_clone_default ()</h3><a class="indexterm" name="id2649161"></a><pre class="programlisting">gboolean gimp_clone_default (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);</pre><p>
Clone from the source to the dest drawable using the current brush
</p><p>
This tool clones (copies) from the source drawable starting at the
specified source coordinates to the dest drawable. This function
performs exactly the same as the gimp_clone function except that the
tools arguments are obtained from the clones option dialog. It this
dialog has not been activated then the dialogs default values will
be used.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2649250"></a><h3><a name="gimp-convolve"></a>gimp_convolve ()</h3><a class="indexterm" name="id2649258"></a><pre class="programlisting">gboolean gimp_convolve (gint32 drawable_ID,
gdouble pressure,
<a href="libgimp-gimpenums.html#GimpConvolveType">GimpConvolveType</a> convolve_type,
gint num_strokes,
const gdouble *strokes);</pre><p>
Convolve (Blur, Sharpen) using the current brush.
</p><p>
This tool convolves the specified drawable with either a sharpening
or blurring kernel. The pressure parameter controls the magnitude of
the operation. Like the paintbrush, this tool linearly interpolates
between the specified stroke coordinates.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pressure</tt></i><EFBFBD>:</span></td><td> The pressure.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>convolve_type</tt></i><EFBFBD>:</span></td><td> Convolve type.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2649380"></a><h3><a name="gimp-convolve-default"></a>gimp_convolve_default ()</h3><a class="indexterm" name="id2649388"></a><pre class="programlisting">gboolean gimp_convolve_default (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);</pre><p>
Convolve (Blur, Sharpen) using the current brush.
</p><p>
This tool convolves the specified drawable with either a sharpening
or blurring kernel. This function performs exactly the same as the
gimp_convolve function except that the tools arguments are obtained
from the convolve option dialog. It this dialog has not been
activated then the dialogs default values will be used.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2649481"></a><h3><a name="gimp-dodgeburn"></a>gimp_dodgeburn ()</h3><a class="indexterm" name="id2649489"></a><pre class="programlisting">gboolean gimp_dodgeburn (gint32 drawable_ID,
gdouble exposure,
<a href="libgimp-gimpenums.html#GimpDodgeBurnType">GimpDodgeBurnType</a> dodgeburn_type,
<a href="libgimp-gimpenums.html#GimpTransferMode">GimpTransferMode</a> dodgeburn_mode,
gint num_strokes,
const gdouble *strokes);</pre><p>
Dodgeburn image with varying exposure.
</p><p>
Dodgeburn. More details here later.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>exposure</tt></i><EFBFBD>:</span></td><td> The exposer of the strokes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dodgeburn_type</tt></i><EFBFBD>:</span></td><td> The type either dodge or burn.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dodgeburn_mode</tt></i><EFBFBD>:</span></td><td> The mode.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2649627"></a><h3><a name="gimp-dodgeburn-default"></a>gimp_dodgeburn_default ()</h3><a class="indexterm" name="id2649635"></a><pre class="programlisting">gboolean gimp_dodgeburn_default (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);</pre><p>
Dodgeburn image with varying exposure. This is the same as the
gimp_dodgeburn function except that the exposure, type and mode are
taken from the tools option dialog. If the dialog has not been
activated then the defaults as used by the dialog will be used.
</p><p>
Dodgeburn. More details here later.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2649726"></a><h3><a name="gimp-ellipse-select"></a>gimp_ellipse_select ()</h3><a class="indexterm" name="id2649734"></a><pre class="programlisting">gboolean gimp_ellipse_select (gint32 image_ID,
gdouble x,
gdouble y,
gdouble width,
gdouble height,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation,
gboolean antialias,
gboolean feather,
gdouble feather_radius);</pre><p>
Create an elliptical selection over the specified image.
</p><p>
This tool creates an elliptical selection over the specified image.
The elliptical region can be either added to, subtracted from, or
replace the contents of the previous selection mask. If antialiasing
is turned on, the edges of the elliptical region will contain
intermediate values which give the appearance of a sharper, less
pixelized edge. This should be set as TRUE most of the time. If the
feather option is enabled, the resulting selection is blurred before
combining. The blur is a gaussian blur with the specified feather
radius.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> x coordinate of upper-left corner of ellipse bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> y coordinate of upper-left corner of ellipse bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The width of the ellipse.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The height of the ellipse.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>operation</tt></i><EFBFBD>:</span></td><td> The selection operation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>antialias</tt></i><EFBFBD>:</span></td><td> Antialiasing.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather</tt></i><EFBFBD>:</span></td><td> Feather option for selections.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather_radius</tt></i><EFBFBD>:</span></td><td> Radius for feather operation.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2649932"></a><h3><a name="gimp-eraser"></a>gimp_eraser ()</h3><a class="indexterm" name="id2649940"></a><pre class="programlisting">gboolean gimp_eraser (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes,
<a href="libgimp-gimpenums.html#GimpBrushApplicationMode">GimpBrushApplicationMode</a> hardness,
<a href="libgimp-gimpenums.html#GimpPaintApplicationMode">GimpPaintApplicationMode</a> method);</pre><p>
Erase using the current brush.
</p><p>
This tool erases using the current brush mask. If the specified
drawable contains an alpha channel, then the erased pixels will
become transparent. Otherwise, the eraser tool replaces the contents
of the drawable with the background color. Like paintbrush, this
tool linearly interpolates between the specified stroke coordinates.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>hardness</tt></i><EFBFBD>:</span></td><td> %<tt class="literal">desc</tt>%%.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>method</tt></i><EFBFBD>:</span></td><td> %<tt class="literal">desc</tt>%%.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2650073"></a><h3><a name="gimp-eraser-default"></a>gimp_eraser_default ()</h3><a class="indexterm" name="id2650081"></a><pre class="programlisting">gboolean gimp_eraser_default (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);</pre><p>
Erase using the current brush.
</p><p>
This tool erases using the current brush mask. This function
performs exactly the same as the gimp_eraser function except that
the tools arguments are obtained from the eraser option dialog. It
this dialog has not been activated then the dialogs default values
will be used.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2650172"></a><h3><a name="gimp-flip"></a>gimp_flip ()</h3><a class="indexterm" name="id2650180"></a><pre class="programlisting">gint32 gimp_flip (gint32 drawable_ID,
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> flip_type);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_flip</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use
<a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-flip-simple"><tt class="function">gimp_drawable_transform_flip_simple()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>flip_type</tt></i><EFBFBD>:</span></td><td> Type of flip.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The flipped drawable.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2650260"></a><h3><a name="gimp-free-select"></a>gimp_free_select ()</h3><a class="indexterm" name="id2650268"></a><pre class="programlisting">gboolean gimp_free_select (gint32 image_ID,
gint num_segs,
const gdouble *segs,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation,
gboolean antialias,
gboolean feather,
gdouble feather_radius);</pre><p>
Create a polygonal selection over the specified image.
</p><p>
This tool creates a polygonal selection over the specified image.
The polygonal region can be either added to, subtracted from, or
replace the contents of the previous selection mask. The polygon is
specified through an array of floating point numbers and its length.
The length of array must be 2n, where n is the number of points.
Each point is defined by 2 floating point values which correspond to
the x and y coordinates. If the final point does not connect to the
starting point, a connecting segment is automatically added. If the
feather option is enabled, the resulting selection is blurred before
combining. The blur is a gaussian blur with the specified feather
radius.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_segs</tt></i><EFBFBD>:</span></td><td> Number of points (count 1 coordinate as two points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>segs</tt></i><EFBFBD>:</span></td><td> Array of points: { p1.x, p1.y, p2.x, p2.y, ..., pn.x, pn.y}.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>operation</tt></i><EFBFBD>:</span></td><td> The selection operation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>antialias</tt></i><EFBFBD>:</span></td><td> Antialiasing.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather</tt></i><EFBFBD>:</span></td><td> Feather option for selections.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather_radius</tt></i><EFBFBD>:</span></td><td> Radius for feather operation.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2650434"></a><h3><a name="gimp-fuzzy-select"></a>gimp_fuzzy_select ()</h3><a class="indexterm" name="id2650443"></a><pre class="programlisting">gboolean gimp_fuzzy_select (gint32 drawable_ID,
gdouble x,
gdouble y,
gint threshold,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation,
gboolean antialias,
gboolean feather,
gdouble feather_radius,
gboolean sample_merged);</pre><p>
Create a fuzzy selection starting at the specified coordinates on
the specified drawable.
</p><p>
This tool creates a fuzzy selection over the specified image. A
fuzzy selection is determined by a seed fill under the constraints
of the specified threshold. Essentially, the color at the specified
coordinates (in the drawable) is measured and the selection expands
outwards from that point to any adjacent pixels which are not
significantly different (as determined by the threshold value). This
process continues until no more expansion is possible. The
antialiasing parameter allows the final selection mask to contain
intermediate values based on close misses to the threshold bar at
pixels along the seed fill boundary. Feathering can be enabled
optionally and is controlled with the \"feather_radius\" paramter.
If the sample_merged parameter is non-zero, the data of the
composite image will be used instead of that for the specified
drawable. This is equivalent to sampling for colors after merging
all visible layers. In the case of a merged sampling, the supplied
drawable is ignored. If the sample is merged, the specified
coordinates are relative to the image origin; otherwise, they are
relative to the drawable's origin.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> x coordinate of initial seed fill point: (image coordinates).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> y coordinate of initial seed fill point: (image coordinates).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>threshold</tt></i><EFBFBD>:</span></td><td> Threshold in intensity levels %<tt class="literal">desc</tt>%%.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>operation</tt></i><EFBFBD>:</span></td><td> The selection operation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>antialias</tt></i><EFBFBD>:</span></td><td> Antialiasing.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather</tt></i><EFBFBD>:</span></td><td> Feather option for selections.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather_radius</tt></i><EFBFBD>:</span></td><td> Radius for feather operation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>sample_merged</tt></i><EFBFBD>:</span></td><td> Use the composite image, not the drawable.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2650655"></a><h3><a name="gimp-paintbrush"></a>gimp_paintbrush ()</h3><a class="indexterm" name="id2650664"></a><pre class="programlisting">gboolean gimp_paintbrush (gint32 drawable_ID,
gdouble fade_out,
gint num_strokes,
const gdouble *strokes,
<a href="libgimp-gimpenums.html#GimpPaintApplicationMode">GimpPaintApplicationMode</a> method,
gdouble gradient_length);</pre><p>
Paint in the current brush with optional fade out parameter and pull
colors from a gradient.
</p><p>
This tool is the standard paintbrush. It draws linearly interpolated
lines through the specified stroke coordinates. It operates on the
specified drawable in the foreground color with the active brush.
The \"fade_out\" parameter is measured in pixels and allows the
brush stroke to linearly fall off. The pressure is set to the
maximum at the beginning of the stroke. As the distance of the
stroke nears the fade_out value, the pressure will approach zero.
The gradient_length is the distance to spread the gradient over. It
is measured in pixels. If the gradient_length is 0, no gradient is
used.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>fade_out</tt></i><EFBFBD>:</span></td><td> Fade out parameter.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>method</tt></i><EFBFBD>:</span></td><td> %<tt class="literal">desc</tt>%%.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>gradient_length</tt></i><EFBFBD>:</span></td><td> Length of gradient to draw.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2650816"></a><h3><a name="gimp-paintbrush-default"></a>gimp_paintbrush_default ()</h3><a class="indexterm" name="id2650824"></a><pre class="programlisting">gboolean gimp_paintbrush_default (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);</pre><p>
Paint in the current brush. The fade out parameter and pull colors
from a gradient parameter are set from the paintbrush options
dialog. If this dialog has not been activated then the dialog
defaults will be used.
</p><p>
This tool is similar to the standard paintbrush. It draws linearly
interpolated lines through the specified stroke coordinates. It
operates on the specified drawable in the foreground color with the
active brush. The \"fade_out\" parameter is measured in pixels and
allows the brush stroke to linearly fall off (value obtained from
the option dialog). The pressure is set to the maximum at the
beginning of the stroke. As the distance of the stroke nears the
fade_out value, the pressure will approach zero. The gradient_length
(value obtained from the option dialog) is the distance to spread
the gradient over. It is measured in pixels. If the gradient_length
is 0, no gradient is used.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2650926"></a><h3><a name="gimp-pencil"></a>gimp_pencil ()</h3><a class="indexterm" name="id2650934"></a><pre class="programlisting">gboolean gimp_pencil (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);</pre><p>
Paint in the current brush without sub-pixel sampling.
</p><p>
This tool is the standard pencil. It draws linearly interpolated
lines through the specified stroke coordinates. It operates on the
specified drawable in the foreground color with the active brush.
The brush mask is treated as though it contains only black and white
values. Any value below half is treated as black; any above half, as
white.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2651028"></a><h3><a name="gimp-perspective"></a>gimp_perspective ()</h3><a class="indexterm" name="id2651036"></a><pre class="programlisting">gint32 gimp_perspective (gint32 drawable_ID,
gboolean interpolation,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2,
gdouble x3,
gdouble y3);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_perspective</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use
<a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-perspective-default"><tt class="function">gimp_drawable_transform_perspective_default()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i><EFBFBD>:</span></td><td> Whether to use interpolation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x0</tt></i><EFBFBD>:</span></td><td> The new x coordinate of upper-left corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y0</tt></i><EFBFBD>:</span></td><td> The new y coordinate of upper-left corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x1</tt></i><EFBFBD>:</span></td><td> The new x coordinate of upper-right corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y1</tt></i><EFBFBD>:</span></td><td> The new y coordinate of upper-right corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x2</tt></i><EFBFBD>:</span></td><td> The new x coordinate of lower-left corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y2</tt></i><EFBFBD>:</span></td><td> The new y coordinate of lower-left corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x3</tt></i><EFBFBD>:</span></td><td> The new x coordinate of lower-right corner of original bounding box.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y3</tt></i><EFBFBD>:</span></td><td> The new y coordinate of lower-right corner of original bounding box.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The newly mapped drawable.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2651262"></a><h3><a name="gimp-rect-select"></a>gimp_rect_select ()</h3><a class="indexterm" name="id2651270"></a><pre class="programlisting">gboolean gimp_rect_select (gint32 image_ID,
gdouble x,
gdouble y,
gdouble width,
gdouble height,
<a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> operation,
gboolean feather,
gdouble feather_radius);</pre><p>
Create a rectangular selection over the specified image;
</p><p>
This tool creates a rectangular selection over the specified image.
The rectangular region can be either added to, subtracted from, or
replace the contents of the previous selection mask. If the feather
option is enabled, the resulting selection is blurred before
combining. The blur is a gaussian blur with the specified feather
radius.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i><EFBFBD>:</span></td><td> x coordinate of upper-left corner of rectangle.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y</tt></i><EFBFBD>:</span></td><td> y coordinate of upper-left corner of rectangle.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>width</tt></i><EFBFBD>:</span></td><td> The width of the rectangle.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i><EFBFBD>:</span></td><td> The height of the rectangle.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>operation</tt></i><EFBFBD>:</span></td><td> The selection operation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather</tt></i><EFBFBD>:</span></td><td> Feather option for selections.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather_radius</tt></i><EFBFBD>:</span></td><td> Radius for feather operation.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2651447"></a><h3><a name="gimp-rotate"></a>gimp_rotate ()</h3><a class="indexterm" name="id2651455"></a><pre class="programlisting">gint32 gimp_rotate (gint32 drawable_ID,
gboolean interpolation,
gdouble angle);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_rotate</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use
<a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-rotate-default"><tt class="function">gimp_drawable_transform_rotate_default()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i><EFBFBD>:</span></td><td> Whether to use interpolation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>angle</tt></i><EFBFBD>:</span></td><td> The angle of rotation (radians).
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The rotated drawable.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2651552"></a><h3><a name="gimp-scale"></a>gimp_scale ()</h3><a class="indexterm" name="id2651560"></a><pre class="programlisting">gint32 gimp_scale (gint32 drawable_ID,
gboolean interpolation,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_scale</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use
<a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-scale-default"><tt class="function">gimp_drawable_transform_scale_default()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i><EFBFBD>:</span></td><td> Whether to use interpolation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x0</tt></i><EFBFBD>:</span></td><td> The new x coordinate of upper-left corner of newly scaled region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y0</tt></i><EFBFBD>:</span></td><td> The new y coordinate of upper-left corner of newly scaled region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x1</tt></i><EFBFBD>:</span></td><td> The new x coordinate of lower-right corner of newly scaled region.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>y1</tt></i><EFBFBD>:</span></td><td> The new y coordinate of lower-right corner of newly scaled region.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The scaled drawable.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2651712"></a><h3><a name="gimp-shear"></a>gimp_shear ()</h3><a class="indexterm" name="id2651720"></a><pre class="programlisting">gint32 gimp_shear (gint32 drawable_ID,
gboolean interpolation,
<a href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> shear_type,
gdouble magnitude);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_shear</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use
<a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-shear-default"><tt class="function">gimp_drawable_transform_shear_default()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i><EFBFBD>:</span></td><td> Whether to use interpolation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>shear_type</tt></i><EFBFBD>:</span></td><td> Type of shear.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>magnitude</tt></i><EFBFBD>:</span></td><td> The magnitude of the shear.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The sheared drawable.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2651834"></a><h3><a name="gimp-smudge"></a>gimp_smudge ()</h3><a class="indexterm" name="id2651842"></a><pre class="programlisting">gboolean gimp_smudge (gint32 drawable_ID,
gdouble pressure,
gint num_strokes,
const gdouble *strokes);</pre><p>
Smudge image with varying pressure.
</p><p>
This tool simulates a smudge using the current brush. High pressure
results in a greater smudge of paint while low pressure results in a
lesser smudge.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pressure</tt></i><EFBFBD>:</span></td><td> The pressure of the smudge strokes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2651959"></a><h3><a name="gimp-smudge-default"></a>gimp_smudge_default ()</h3><a class="indexterm" name="id2651972"></a><pre class="programlisting">gboolean gimp_smudge_default (gint32 drawable_ID,
gint num_strokes,
const gdouble *strokes);</pre><p>
Smudge image with varying pressure.
</p><p>
This tool simulates a smudge using the current brush. It behaves
exactly the same as gimp_smudge except that the pressure value is
taken from the smudge tool options or the options default if the
tools option dialog has not been activated.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i><EFBFBD>:</span></td><td> Number of stroke control points (count each coordinate as 2 points).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>strokes</tt></i><EFBFBD>:</span></td><td> Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2652084"></a><h3><a name="gimp-transform-2d"></a>gimp_transform_2d ()</h3><a class="indexterm" name="id2652097"></a><pre class="programlisting">gint32 gimp_transform_2d (gint32 drawable_ID,
gboolean interpolation,
gdouble source_x,
gdouble source_y,
gdouble scale_x,
gdouble scale_y,
gdouble angle,
gdouble dest_x,
gdouble dest_y);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_transform_2d</tt> is deprecated and should not be used in newly-written code.</p></div><p>
This procedure is deprecated! Use
<a href="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-2d-default"><tt class="function">gimp_drawable_transform_2d_default()</tt></a> instead.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>drawable_ID</tt></i><EFBFBD>:</span></td><td> The affected drawable.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i><EFBFBD>:</span></td><td> Whether to use interpolation.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>source_x</tt></i><EFBFBD>:</span></td><td> X coordinate of the transformation center.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>source_y</tt></i><EFBFBD>:</span></td><td> Y coordinate of the transformation center.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>scale_x</tt></i><EFBFBD>:</span></td><td> Amount to scale in x direction.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>scale_y</tt></i><EFBFBD>:</span></td><td> Amount to scale in y direction.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>angle</tt></i><EFBFBD>:</span></td><td> The angle of rotation (radians).
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_x</tt></i><EFBFBD>:</span></td><td> X coordinate of where the centre goes.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_y</tt></i><EFBFBD>:</span></td><td> Y coordinate of where the centre goes.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The transformed drawable.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimptile.html"><b>&lt;&lt;<EFBFBD>gimptile</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpundo.html"><b>gimpundo<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,31 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpui</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="libgimpui-hierarchy.html" title="Object Hierarchy"><link rel="next" href="libgimp-gimpexport.html" title="gimpexport"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimpui-hierarchy.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpexport.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpui"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpui</span></h2><p>gimpui &#8212; Common user interface functions. This header includes all other GIMP User
Interface Library headers.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
void <a href="libgimp-gimpui.html#gimp-ui-init">gimp_ui_init</a> (const gchar *prog_name,
gboolean preview);
</pre></div><div class="refsect1" lang="en"><a name="id2634527"></a><h2>Description</h2><p>
Common user interface functions. This header includes all other GIMP User
Interface Library headers.
</p></div><div class="refsect1" lang="en"><a name="id2552188"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2552193"></a><h3><a name="gimp-ui-init"></a>gimp_ui_init ()</h3><a class="indexterm" name="id2663248"></a><pre class="programlisting">void gimp_ui_init (const gchar *prog_name,
gboolean preview);</pre><p>
This function initializes GTK+ with <tt class="function">gtk_init()</tt> and initializes GDK's
image rendering subsystem (GdkRGB) to follow the GIMP main program's
colormap allocation/installation policy.
</p><p>
The GIMP's colormap policy can be determinded by the user with the
gimprc variables <i class="parameter"><tt>min_colors</tt></i> and <i class="parameter"><tt>install_cmap</tt></i>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>prog_name</tt></i><EFBFBD>:</span></td><td> The name of the plug-in which will be passed as argv[0] to
<tt class="function">gtk_init()</tt>. It's a convention to use the name of the
executable and _not_ the PDB procedure name or something.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>preview</tt></i><EFBFBD>:</span></td><td> This parameter is unused and exists for historical
reasons only.
</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id2663333"></a><h2>See Also</h2><p>
<tt class="function">gtk_init()</tt>, <tt class="function">gdk_set_use_xshm()</tt>, <tt class="function">gdk_rgb_set_min_colors()</tt>,
<tt class="function">gdk_rgb_set_install()</tt>, <tt class="function">gdk_rgb_get_visual()</tt>, <tt class="function">gdk_rgb_get_cmap()</tt>,
<tt class="function">gtk_widget_set_default_visual()</tt>, <tt class="function">gtk_widget_set_default_colormap()</tt>,
<tt class="function">gtk_preview_set_gamma()</tt>.
</p></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimpui-hierarchy.html"><b>&lt;&lt;<EFBFBD>Object Hierarchy</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpexport.html"><b>gimpexport<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,96 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gimpundo</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="prev" href="libgimp-gimptools.html" title="gimptools"><link rel="next" href="libgimp-data.html" title="Data Objects"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimptools.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-data.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="libgimp-gimpundo"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">gimpundo</span></h2><p>gimpundo &#8212; Control of undo/redo.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
gboolean <a href="libgimp-gimpundo.html#gimp-image-undo-group-start">gimp_image_undo_group_start</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpundo.html#gimp-image-undo-group-end">gimp_image_undo_group_end</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpundo.html#gimp-image-undo-is-enabled">gimp_image_undo_is_enabled</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpundo.html#gimp-image-undo-disable">gimp_image_undo_disable</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpundo.html#gimp-image-undo-enable">gimp_image_undo_enable</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpundo.html#gimp-image-undo-freeze">gimp_image_undo_freeze</a> (gint32 image_ID);
gboolean <a href="libgimp-gimpundo.html#gimp-image-undo-thaw">gimp_image_undo_thaw</a> (gint32 image_ID);
</pre></div><div class="refsect1" lang="en"><a name="id2634706"></a><h2>Description</h2><p>
Control of undo/redo.
</p></div><div class="refsect1" lang="en"><a name="id2634716"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2634721"></a><h3><a name="gimp-image-undo-group-start"></a>gimp_image_undo_group_start ()</h3><a class="indexterm" name="id2634730"></a><pre class="programlisting">gboolean gimp_image_undo_group_start (gint32 image_ID);</pre><p>
Starts a group undo.
</p><p>
This function is used to start a group undo--necessary for logically
combining two or more undo operations into a single operation. This
call must be used in conjunction with a 'gimp-image-undo-group-end'
call.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The ID of the image in which to open an undo group.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2642433"></a><h3><a name="gimp-image-undo-group-end"></a>gimp_image_undo_group_end ()</h3><a class="indexterm" name="id2642441"></a><pre class="programlisting">gboolean gimp_image_undo_group_end (gint32 image_ID);</pre><p>
Finish a group undo.
</p><p>
This function must be called once for each
'gimp-image-undo-group-start' call that is made.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The ID of the image in which to close an undo group.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2642494"></a><h3><a name="gimp-image-undo-is-enabled"></a>gimp_image_undo_is_enabled ()</h3><a class="indexterm" name="id2642502"></a><pre class="programlisting">gboolean gimp_image_undo_is_enabled (gint32 image_ID);</pre><p>
Check if the image's undo stack is enabled.
</p><p>
This procedure checks if the image's undo stack is currently enabled
or disabled. This is useful when several plugins or scripts call
each other and want to check if their caller has already used
'gimp_image_undo_disable' or 'gimp_image_undo_freeze'.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> True if undo is enabled for this image.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2639002"></a><h3><a name="gimp-image-undo-disable"></a>gimp_image_undo_disable ()</h3><a class="indexterm" name="id2639010"></a><pre class="programlisting">gboolean gimp_image_undo_disable (gint32 image_ID);</pre><p>
Disable the image's undo stack.
</p><p>
This procedure disables the image's undo stack, allowing subsequent
operations to ignore their undo steps. This is generally called in
conjunction with 'gimp_image_undo_enable' to temporarily disable an
image undo stack. This is advantageous because saving undo steps can
be time and memory intensive.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> True if the image undo has been disabled.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2639066"></a><h3><a name="gimp-image-undo-enable"></a>gimp_image_undo_enable ()</h3><a class="indexterm" name="id2639075"></a><pre class="programlisting">gboolean gimp_image_undo_enable (gint32 image_ID);</pre><p>
Enable the image's undo stack.
</p><p>
This procedure enables the image's undo stack, allowing subsequent
operations to store their undo steps. This is generally called in
conjunction with 'gimp_image_undo_disable' to temporarily disable an
image undo stack.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> True if the image undo has been enabled.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2639130"></a><h3><a name="gimp-image-undo-freeze"></a>gimp_image_undo_freeze ()</h3><a class="indexterm" name="id2639138"></a><pre class="programlisting">gboolean gimp_image_undo_freeze (gint32 image_ID);</pre><p>
Freeze the image's undo stack.
</p><p>
This procedure freezes the image's undo stack, allowing subsequent
operations to ignore their undo steps. This is generally called in
conjunction with 'gimp_image_undo_thaw' to temporarily disable an
image undo stack. This is advantageous because saving undo steps can
be time and memory intensive. 'gimp_image_undo_{freeze,thaw}' and
'gimp_image_undo_{disable,enable}' differ in that the former does
not free up all undo steps when undo is thawed, so is more suited to
interactive in-situ previews. It is important in this case that the
image is back to the same state it was frozen in before thawing,
else 'undo' behaviour is undefined.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> True if the image undo has been frozen.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2544552"></a><h3><a name="gimp-image-undo-thaw"></a>gimp_image_undo_thaw ()</h3><a class="indexterm" name="id2548397"></a><pre class="programlisting">gboolean gimp_image_undo_thaw (gint32 image_ID);</pre><p>
Thaw the image's undo stack.
</p><p>
This procedure thaws the image's undo stack, allowing subsequent
operations to store their undo steps. This is generally called in
conjunction with 'gimp_image_undo_freeze' to temporarily freeze an
image undo stack. 'gimp_image_undo_thaw' does NOT free the undo
stack as 'gimp_image_undo_enable' does, so is suited for situations
where one wishes to leave the undo stack in the same state in which
one found it despite non-destructively playing with the image in the
meantime. An example would be in-situ plugin previews. Balancing
freezes and thaws and ensuring image consistancy is the
responsibility of the caller.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> True if the image undo has been thawed.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimptools.html"><b>&lt;&lt;<EFBFBD>gimptools</b></a></td><td align="right"><a accesskey="n" href="libgimp-data.html"><b>Data Objects<74>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Manupulating Images and all their Properties</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="prev" href="libgimp-gimpprogress.html" title="gimpprogress"><link rel="next" href="libgimp-gimpchannel.html" title="gimpchannel"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpprogress.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpchannel.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="libgimp-image"></a>Manupulating Images and all their Properties</h2></div></div></div><div class="toc"><dl><dt><a href="libgimp-gimpchannel.html">gimpchannel</a> - Functions for manipulating channels.</dt><dt><a href="libgimp-gimpcolor.html">gimpcolor</a> - Functions for manipulating color.</dt><dt><a href="libgimp-gimpconvert.html">gimpconvert</a> - Conversions between RGB, indexed, and grayscale modes.</dt><dt><a href="libgimp-gimpdisplay.html">gimpdisplay</a> - Functions to create, delete and flush new displays (views) on an image.</dt><dt><a href="libgimp-gimpdrawable.html">gimpdrawable</a> - Functions to manipulate drawables.</dt><dt><a href="libgimp-gimpdrawabletransform.html">gimpdrawabletransform</a> - </dt><dt><a href="libgimp-gimpedit.html">gimpedit</a> - Edit menu functions (cut, copy, paste, clear, etc.)</dt><dt><a href="libgimp-gimpfileops.html">gimpfileops</a> - File operations (load, save, etc.)</dt><dt><a href="libgimp-gimpfloatingsel.html">gimpfloatingsel</a> - Functions for removing or attaching floating selections.</dt><dt><a href="libgimp-gimpguides.html">gimpguides</a> - Functions for manipulating guides.</dt><dt><a href="libgimp-gimpimage.html">gimpimage</a> - Operations on complete images.</dt><dt><a href="libgimp-gimplayer.html">gimplayer</a> - Operations on a single layer.</dt><dt><a href="libgimp-gimppaths.html">gimppaths</a> - Operations related to paths.</dt><dt><a href="libgimp-gimppixelfetcher.html">gimppixelfetcher</a> - Functions for operating on pixel regions.</dt><dt><a href="libgimp-gimppixelrgn.html">gimppixelrgn</a> - Functions for operating on pixel regions.</dt><dt><a href="libgimp-gimpregioniterator.html">gimpregioniterator</a> - Functions to traverse a pixel regions.</dt><dt><a href="libgimp-gimpselection.html">gimpselection</a> - Functions for manipulating selections.</dt><dt><a href="libgimp-gimptexttool.html">gimptexttool</a> - Functions for controlling the text tool.</dt><dt><a href="libgimp-gimptile.html">gimptile</a> - Functions for working with tiles.</dt><dt><a href="libgimp-gimptools.html">gimptools</a> - Access to common toolbox tools.</dt><dt><a href="libgimp-gimpundo.html">gimpundo</a> - Control of undo/redo.</dt></dl></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpprogress.html"><b>&lt;&lt;<EFBFBD>gimpprogress</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpchannel.html"><b>gimpchannel<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Controlling the Core's Selection Dialogs</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="prev" href="libgimp-gimppatterns.html" title="gimppatterns"><link rel="next" href="libgimp-gimpbrushselect.html" title="gimpbrushselect"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimppatterns.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimp.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpbrushselect.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="libgimp-selectors"></a>Controlling the Core's Selection Dialogs</h2></div></div></div><div class="toc"><dl><dt><a href="libgimp-gimpbrushselect.html">gimpbrushselect</a> - Functions providing a brush selection dialog.</dt><dt><a href="libgimp-gimpfontselect.html">gimpfontselect</a> - Functions providing a font selection dialog.</dt><dt><a href="libgimp-gimpgradientselect.html">gimpgradientselect</a> - Functions providing a gradient selection dialog.</dt><dt><a href="libgimp-gimppaletteselect.html">gimppaletteselect</a> - Functions providing a palette selection dialog.</dt><dt><a href="libgimp-gimppatternselect.html">gimppatternselect</a> - Functions providing a pattern selection dialog.</dt></dl></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimppatterns.html"><b>&lt;&lt;<EFBFBD>gimppatterns</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpbrushselect.html"><b>gimpbrushselect<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,705 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<book xmlns="http://www.devhelp.net/book" title="GIMP Library Reference Manual" link="index.html" author="" name="libgimp">
<chapters>
<sub name="GIMP Constants" link="gimpdefinitions.html">
<sub name="gimpenums" link="libgimp-gimpenums.html"/>
</sub>
<sub name="GIMP Library" link="libgimp.html">
<sub name="Functions not Related to Specific Images" link="libgimp-general.html">
<sub name="gimp" link="libgimp-gimp.html"/>
<sub name="gimpcontext" link="libgimp-gimpcontext.html"/>
<sub name="gimpgimprc" link="libgimp-gimpgimprc.html"/>
<sub name="gimphelp" link="libgimp-gimphelp.html"/>
<sub name="gimpmessage" link="libgimp-gimpmessage.html"/>
<sub name="gimpplugin" link="libgimp-gimpplugin.html"/>
<sub name="gimpproceduraldb" link="libgimp-gimpproceduraldb.html"/>
<sub name="gimpprogress" link="libgimp-gimpprogress.html"/>
</sub>
<sub name="Manupulating Images and all their Properties" link="libgimp-image.html">
<sub name="gimpchannel" link="libgimp-gimpchannel.html"/>
<sub name="gimpcolor" link="libgimp-gimpcolor.html"/>
<sub name="gimpconvert" link="libgimp-gimpconvert.html"/>
<sub name="gimpdisplay" link="libgimp-gimpdisplay.html"/>
<sub name="gimpdrawable" link="libgimp-gimpdrawable.html"/>
<sub name="gimpdrawabletransform" link="libgimp-gimpdrawabletransform.html"/>
<sub name="gimpedit" link="libgimp-gimpedit.html"/>
<sub name="gimpfileops" link="libgimp-gimpfileops.html"/>
<sub name="gimpfloatingsel" link="libgimp-gimpfloatingsel.html"/>
<sub name="gimpguides" link="libgimp-gimpguides.html"/>
<sub name="gimpimage" link="libgimp-gimpimage.html"/>
<sub name="gimplayer" link="libgimp-gimplayer.html"/>
<sub name="gimppaths" link="libgimp-gimppaths.html"/>
<sub name="gimppixelfetcher" link="libgimp-gimppixelfetcher.html"/>
<sub name="gimppixelrgn" link="libgimp-gimppixelrgn.html"/>
<sub name="gimpregioniterator" link="libgimp-gimpregioniterator.html"/>
<sub name="gimpselection" link="libgimp-gimpselection.html"/>
<sub name="gimptexttool" link="libgimp-gimptexttool.html"/>
<sub name="gimptile" link="libgimp-gimptile.html"/>
<sub name="gimptools" link="libgimp-gimptools.html"/>
<sub name="gimpundo" link="libgimp-gimpundo.html"/>
</sub>
<sub name="Data Objects" link="libgimp-data.html">
<sub name="gimpbrush" link="libgimp-gimpbrush.html"/>
<sub name="gimpbrushes" link="libgimp-gimpbrushes.html"/>
<sub name="gimpfonts" link="libgimp-gimpfonts.html"/>
<sub name="gimpgradient" link="libgimp-gimpgradient.html"/>
<sub name="gimpgradients" link="libgimp-gimpgradients.html"/>
<sub name="gimppalette" link="libgimp-gimppalette.html"/>
<sub name="gimppalettes" link="libgimp-gimppalettes.html"/>
<sub name="gimppattern" link="libgimp-gimppattern.html"/>
<sub name="gimppatterns" link="libgimp-gimppatterns.html"/>
</sub>
<sub name="Controlling the Core's Selection Dialogs" link="libgimp-selectors.html">
<sub name="gimpbrushselect" link="libgimp-gimpbrushselect.html"/>
<sub name="gimpfontselect" link="libgimp-gimpfontselect.html"/>
<sub name="gimpgradientselect" link="libgimp-gimpgradientselect.html"/>
<sub name="gimppaletteselect" link="libgimp-gimppaletteselect.html"/>
<sub name="gimppatternselect" link="libgimp-gimppatternselect.html"/>
</sub>
</sub>
<sub name="GIMP User Interface Library" link="libgimpui.html">
<sub name="Object Hierarchy" link="libgimpui-hierarchy.html"/>
<sub name="gimpui" link="libgimp-gimpui.html"/>
<sub name="gimpexport" link="libgimp-gimpexport.html"/>
<sub name="GimpAspectPreview" link="GimpAspectPreview.html"/>
<sub name="GimpDrawablePreview" link="GimpDrawablePreview.html"/>
<sub name="gimpdrawablecombobox" link="libgimp-gimpdrawablecombobox.html"/>
<sub name="gimpimagecombobox" link="libgimp-gimpimagecombobox.html"/>
<sub name="gimppixbuf" link="libgimp-gimppixbuf.html"/>
<sub name="GimpProgressBar" link="GimpProgressBar.html"/>
<sub name="gimpmenu" link="libgimp-gimpmenu.html"/>
<sub name="gimpbrushmenu" link="libgimp-gimpbrushmenu.html"/>
<sub name="gimpfontmenu" link="libgimp-gimpfontmenu.html"/>
<sub name="gimpgradientmenu" link="libgimp-gimpgradientmenu.html"/>
<sub name="gimppalettemenu" link="libgimp-gimppalettemenu.html"/>
<sub name="gimppatternmenu" link="libgimp-gimppatternmenu.html"/>
</sub>
</chapters>
<functions>
<function name="enum GimpAddMaskType" link="libgimp-gimpenums.html#GimpAddMaskType"/>
<function name="enum GimpBlendMode" link="libgimp-gimpenums.html#GimpBlendMode"/>
<function name="enum GimpBrushApplicationMode" link="libgimp-gimpenums.html#GimpBrushApplicationMode"/>
<function name="enum GimpBucketFillMode" link="libgimp-gimpenums.html#GimpBucketFillMode"/>
<function name="enum GimpChannelOps" link="libgimp-gimpenums.html#GimpChannelOps"/>
<function name="enum GimpChannelType" link="libgimp-gimpenums.html#GimpChannelType"/>
<function name="enum GimpCloneType" link="libgimp-gimpenums.html#GimpCloneType"/>
<function name="enum GimpConvertDitherType" link="libgimp-gimpenums.html#GimpConvertDitherType"/>
<function name="enum GimpConvertPaletteType" link="libgimp-gimpenums.html#GimpConvertPaletteType"/>
<function name="enum GimpConvolutionType" link="libgimp-gimpenums.html#GimpConvolutionType"/>
<function name="enum GimpConvolveType" link="libgimp-gimpenums.html#GimpConvolveType"/>
<function name="enum GimpDodgeBurnType" link="libgimp-gimpenums.html#GimpDodgeBurnType"/>
<function name="enum GimpFillType" link="libgimp-gimpenums.html#GimpFillType"/>
<function name="enum GimpGradientSegmentColor" link="libgimp-gimpenums.html#GimpGradientSegmentColor"/>
<function name="enum GimpGradientSegmentType" link="libgimp-gimpenums.html#GimpGradientSegmentType"/>
<function name="enum GimpGradientType" link="libgimp-gimpenums.html#GimpGradientType"/>
<function name="enum GimpHistogramChannel" link="libgimp-gimpenums.html#GimpHistogramChannel"/>
<function name="enum GimpHueRange" link="libgimp-gimpenums.html#GimpHueRange"/>
<function name="enum GimpIconType" link="libgimp-gimpenums.html#GimpIconType"/>
<function name="enum GimpInterpolationType" link="libgimp-gimpenums.html#GimpInterpolationType"/>
<function name="enum GimpLayerModeEffects" link="libgimp-gimpenums.html#GimpLayerModeEffects"/>
<function name="enum GimpMaskApplyMode" link="libgimp-gimpenums.html#GimpMaskApplyMode"/>
<function name="enum GimpMergeType" link="libgimp-gimpenums.html#GimpMergeType"/>
<function name="enum GimpOffsetType" link="libgimp-gimpenums.html#GimpOffsetType"/>
<function name="enum GimpOrientationType" link="libgimp-gimpenums.html#GimpOrientationType"/>
<function name="enum GimpPaintApplicationMode" link="libgimp-gimpenums.html#GimpPaintApplicationMode"/>
<function name="enum GimpRepeatMode" link="libgimp-gimpenums.html#GimpRepeatMode"/>
<function name="enum GimpRotationType" link="libgimp-gimpenums.html#GimpRotationType"/>
<function name="enum GimpRunMode" link="libgimp-gimpenums.html#GimpRunMode"/>
<function name="enum GimpSizeType" link="libgimp-gimpenums.html#GimpSizeType"/>
<function name="enum GimpTransferMode" link="libgimp-gimpenums.html#GimpTransferMode"/>
<function name="enum GimpTransformDirection" link="libgimp-gimpenums.html#GimpTransformDirection"/>
<function name="gimp_enums_get_type_names ()" link="libgimp-gimpenums.html#gimp-enums-get-type-names"/>
<function name="GIMPVAR" link="libgimp-gimp.html#GIMPVAR:CAPS"/>
<function name="gimp_version ()" link="libgimp-gimp.html#gimp-version"/>
<function name="gimp_major_version" link="libgimp-gimp.html#gimp-major-version"/>
<function name="gimp_minor_version" link="libgimp-gimp.html#gimp-minor-version"/>
<function name="gimp_micro_version" link="libgimp-gimp.html#gimp-micro-version"/>
<function name="gimp_get_data" link="libgimp-gimp.html#gimp-get-data"/>
<function name="gimp_get_data_size" link="libgimp-gimp.html#gimp-get-data-size"/>
<function name="gimp_set_data" link="libgimp-gimp.html#gimp-set-data"/>
<function name="GimpInitProc ()" link="libgimp-gimp.html#GimpInitProc"/>
<function name="GimpQuitProc ()" link="libgimp-gimp.html#GimpQuitProc"/>
<function name="GimpQueryProc ()" link="libgimp-gimp.html#GimpQueryProc"/>
<function name="GimpRunProc ()" link="libgimp-gimp.html#GimpRunProc"/>
<function name="GimpPlugInInfo" link="libgimp-gimp.html#GimpPlugInInfo"/>
<function name="GimpParamDef" link="libgimp-gimp.html#GimpParamDef"/>
<function name="GimpParamRegion" link="libgimp-gimp.html#GimpParamRegion"/>
<function name="union GimpParamData" link="libgimp-gimp.html#GimpParamData"/>
<function name="GimpParam" link="libgimp-gimp.html#GimpParam"/>
<function name="MAIN()" link="libgimp-gimp.html#MAIN:CAPS"/>
<function name="gimp_main ()" link="libgimp-gimp.html#gimp-main"/>
<function name="gimp_quit ()" link="libgimp-gimp.html#gimp-quit"/>
<function name="gimp_install_procedure ()" link="libgimp-gimp.html#gimp-install-procedure"/>
<function name="gimp_install_temp_proc ()" link="libgimp-gimp.html#gimp-install-temp-proc"/>
<function name="gimp_uninstall_temp_proc ()" link="libgimp-gimp.html#gimp-uninstall-temp-proc"/>
<function name="gimp_run_procedure ()" link="libgimp-gimp.html#gimp-run-procedure"/>
<function name="gimp_run_procedure2 ()" link="libgimp-gimp.html#gimp-run-procedure2"/>
<function name="gimp_destroy_params ()" link="libgimp-gimp.html#gimp-destroy-params"/>
<function name="gimp_destroy_paramdefs ()" link="libgimp-gimp.html#gimp-destroy-paramdefs"/>
<function name="gimp_tile_width ()" link="libgimp-gimp.html#gimp-tile-width"/>
<function name="gimp_tile_height ()" link="libgimp-gimp.html#gimp-tile-height"/>
<function name="gimp_shm_ID ()" link="libgimp-gimp.html#gimp-shm-ID"/>
<function name="gimp_shm_addr ()" link="libgimp-gimp.html#gimp-shm-addr"/>
<function name="gimp_gamma ()" link="libgimp-gimp.html#gimp-gamma"/>
<function name="gimp_install_cmap ()" link="libgimp-gimp.html#gimp-install-cmap"/>
<function name="gimp_min_colors ()" link="libgimp-gimp.html#gimp-min-colors"/>
<function name="gimp_show_tool_tips ()" link="libgimp-gimp.html#gimp-show-tool-tips"/>
<function name="gimp_show_help_button ()" link="libgimp-gimp.html#gimp-show-help-button"/>
<function name="gimp_check_size ()" link="libgimp-gimp.html#gimp-check-size"/>
<function name="gimp_check_type ()" link="libgimp-gimp.html#gimp-check-type"/>
<function name="gimp_default_display ()" link="libgimp-gimp.html#gimp-default-display"/>
<function name="gimp_wm_class ()" link="libgimp-gimp.html#gimp-wm-class"/>
<function name="gimp_display_name ()" link="libgimp-gimp.html#gimp-display-name"/>
<function name="gimp_monitor_number ()" link="libgimp-gimp.html#gimp-monitor-number"/>
<function name="gimp_get_progname ()" link="libgimp-gimp.html#gimp-get-progname"/>
<function name="gimp_extension_enable ()" link="libgimp-gimp.html#gimp-extension-enable"/>
<function name="gimp_extension_ack ()" link="libgimp-gimp.html#gimp-extension-ack"/>
<function name="gimp_extension_process ()" link="libgimp-gimp.html#gimp-extension-process"/>
<function name="gimp_parasite_find ()" link="libgimp-gimp.html#gimp-parasite-find"/>
<function name="gimp_parasite_list ()" link="libgimp-gimp.html#gimp-parasite-list"/>
<function name="gimp_parasite_attach ()" link="libgimp-gimp.html#gimp-parasite-attach"/>
<function name="gimp_parasite_detach ()" link="libgimp-gimp.html#gimp-parasite-detach"/>
<function name="gimp_attach_new_parasite ()" link="libgimp-gimp.html#gimp-attach-new-parasite"/>
<function name="gimp_context_push ()" link="libgimp-gimpcontext.html#gimp-context-push"/>
<function name="gimp_context_pop ()" link="libgimp-gimpcontext.html#gimp-context-pop"/>
<function name="gimp_context_get_foreground ()" link="libgimp-gimpcontext.html#gimp-context-get-foreground"/>
<function name="gimp_context_set_foreground ()" link="libgimp-gimpcontext.html#gimp-context-set-foreground"/>
<function name="gimp_context_get_background ()" link="libgimp-gimpcontext.html#gimp-context-get-background"/>
<function name="gimp_context_set_background ()" link="libgimp-gimpcontext.html#gimp-context-set-background"/>
<function name="gimp_context_set_default_colors ()" link="libgimp-gimpcontext.html#gimp-context-set-default-colors"/>
<function name="gimp_context_swap_colors ()" link="libgimp-gimpcontext.html#gimp-context-swap-colors"/>
<function name="gimp_context_get_opacity ()" link="libgimp-gimpcontext.html#gimp-context-get-opacity"/>
<function name="gimp_context_set_opacity ()" link="libgimp-gimpcontext.html#gimp-context-set-opacity"/>
<function name="gimp_context_get_paint_mode ()" link="libgimp-gimpcontext.html#gimp-context-get-paint-mode"/>
<function name="gimp_context_set_paint_mode ()" link="libgimp-gimpcontext.html#gimp-context-set-paint-mode"/>
<function name="gimp_context_get_brush ()" link="libgimp-gimpcontext.html#gimp-context-get-brush"/>
<function name="gimp_context_set_brush ()" link="libgimp-gimpcontext.html#gimp-context-set-brush"/>
<function name="gimp_context_get_pattern ()" link="libgimp-gimpcontext.html#gimp-context-get-pattern"/>
<function name="gimp_context_set_pattern ()" link="libgimp-gimpcontext.html#gimp-context-set-pattern"/>
<function name="gimp_context_get_gradient ()" link="libgimp-gimpcontext.html#gimp-context-get-gradient"/>
<function name="gimp_context_set_gradient ()" link="libgimp-gimpcontext.html#gimp-context-set-gradient"/>
<function name="gimp_context_get_palette ()" link="libgimp-gimpcontext.html#gimp-context-get-palette"/>
<function name="gimp_context_set_palette ()" link="libgimp-gimpcontext.html#gimp-context-set-palette"/>
<function name="gimp_context_get_font ()" link="libgimp-gimpcontext.html#gimp-context-get-font"/>
<function name="gimp_context_set_font ()" link="libgimp-gimpcontext.html#gimp-context-set-font"/>
<function name="gimp_gimprc_query ()" link="libgimp-gimpgimprc.html#gimp-gimprc-query"/>
<function name="gimp_gimprc_set ()" link="libgimp-gimpgimprc.html#gimp-gimprc-set"/>
<function name="gimp_get_default_comment ()" link="libgimp-gimpgimprc.html#gimp-get-default-comment"/>
<function name="gimp_get_module_load_inhibit ()" link="libgimp-gimpgimprc.html#gimp-get-module-load-inhibit"/>
<function name="gimp_get_monitor_resolution ()" link="libgimp-gimpgimprc.html#gimp-get-monitor-resolution"/>
<function name="gimp_get_theme_dir ()" link="libgimp-gimpgimprc.html#gimp-get-theme-dir"/>
<function name="gimp_help ()" link="libgimp-gimphelp.html#gimp-help"/>
<function name="gimp_message ()" link="libgimp-gimpmessage.html#gimp-message"/>
<function name="gimp_message_get_handler ()" link="libgimp-gimpmessage.html#gimp-message-get-handler"/>
<function name="gimp_message_set_handler ()" link="libgimp-gimpmessage.html#gimp-message-set-handler"/>
<function name="gimp_plugin_domain_register ()" link="libgimp-gimpplugin.html#gimp-plugin-domain-register"/>
<function name="gimp_plugin_help_register ()" link="libgimp-gimpplugin.html#gimp-plugin-help-register"/>
<function name="gimp_plugin_icon_register ()" link="libgimp-gimpplugin.html#gimp-plugin-icon-register"/>
<function name="gimp_plugin_menu_register ()" link="libgimp-gimpplugin.html#gimp-plugin-menu-register"/>
<function name="gimp_procedural_db_temp_name ()" link="libgimp-gimpproceduraldb.html#gimp-procedural-db-temp-name"/>
<function name="gimp_procedural_db_proc_info ()" link="libgimp-gimpproceduraldb.html#gimp-procedural-db-proc-info"/>
<function name="gimp_procedural_db_get_data ()" link="libgimp-gimpproceduraldb.html#gimp-procedural-db-get-data"/>
<function name="gimp_procedural_db_set_data ()" link="libgimp-gimpproceduraldb.html#gimp-procedural-db-set-data"/>
<function name="gimp_procedural_db_dump ()" link="libgimp-gimpproceduraldb.html#gimp-procedural-db-dump"/>
<function name="gimp_procedural_db_query ()" link="libgimp-gimpproceduraldb.html#gimp-procedural-db-query"/>
<function name="gimp_procedural_db_proc_arg ()" link="libgimp-gimpproceduraldb.html#gimp-procedural-db-proc-arg"/>
<function name="gimp_procedural_db_proc_val ()" link="libgimp-gimpproceduraldb.html#gimp-procedural-db-proc-val"/>
<function name="gimp_procedural_db_get_data_size ()" link="libgimp-gimpproceduraldb.html#gimp-procedural-db-get-data-size"/>
<function name="GimpProgressStartCallback ()" link="libgimp-gimpprogress.html#GimpProgressStartCallback"/>
<function name="GimpProgressEndCallback ()" link="libgimp-gimpprogress.html#GimpProgressEndCallback"/>
<function name="GimpProgressTextCallback ()" link="libgimp-gimpprogress.html#GimpProgressTextCallback"/>
<function name="GimpProgressValueCallback ()" link="libgimp-gimpprogress.html#GimpProgressValueCallback"/>
<function name="gimp_progress_init ()" link="libgimp-gimpprogress.html#gimp-progress-init"/>
<function name="gimp_progress_update ()" link="libgimp-gimpprogress.html#gimp-progress-update"/>
<function name="gimp_progress_install ()" link="libgimp-gimpprogress.html#gimp-progress-install"/>
<function name="gimp_progress_uninstall ()" link="libgimp-gimpprogress.html#gimp-progress-uninstall"/>
<function name="gimp_progress_cancel ()" link="libgimp-gimpprogress.html#gimp-progress-cancel"/>
<function name="gimp_channel_new ()" link="libgimp-gimpchannel.html#gimp-channel-new"/>
<function name="gimp_channel_copy ()" link="libgimp-gimpchannel.html#gimp-channel-copy"/>
<function name="gimp_channel_get_show_masked ()" link="libgimp-gimpchannel.html#gimp-channel-get-show-masked"/>
<function name="gimp_channel_set_show_masked ()" link="libgimp-gimpchannel.html#gimp-channel-set-show-masked"/>
<function name="gimp_channel_get_opacity ()" link="libgimp-gimpchannel.html#gimp-channel-get-opacity"/>
<function name="gimp_channel_set_opacity ()" link="libgimp-gimpchannel.html#gimp-channel-set-opacity"/>
<function name="gimp_channel_get_color ()" link="libgimp-gimpchannel.html#gimp-channel-get-color"/>
<function name="gimp_channel_set_color ()" link="libgimp-gimpchannel.html#gimp-channel-set-color"/>
<function name="gimp_channel_combine_masks ()" link="libgimp-gimpchannel.html#gimp-channel-combine-masks"/>
<function name="gimp_brightness_contrast ()" link="libgimp-gimpcolor.html#gimp-brightness-contrast"/>
<function name="gimp_levels ()" link="libgimp-gimpcolor.html#gimp-levels"/>
<function name="gimp_levels_auto ()" link="libgimp-gimpcolor.html#gimp-levels-auto"/>
<function name="gimp_levels_stretch ()" link="libgimp-gimpcolor.html#gimp-levels-stretch"/>
<function name="gimp_posterize ()" link="libgimp-gimpcolor.html#gimp-posterize"/>
<function name="gimp_desaturate ()" link="libgimp-gimpcolor.html#gimp-desaturate"/>
<function name="gimp_equalize ()" link="libgimp-gimpcolor.html#gimp-equalize"/>
<function name="gimp_invert ()" link="libgimp-gimpcolor.html#gimp-invert"/>
<function name="gimp_curves_spline ()" link="libgimp-gimpcolor.html#gimp-curves-spline"/>
<function name="gimp_curves_explicit ()" link="libgimp-gimpcolor.html#gimp-curves-explicit"/>
<function name="gimp_color_balance ()" link="libgimp-gimpcolor.html#gimp-color-balance"/>
<function name="gimp_colorize ()" link="libgimp-gimpcolor.html#gimp-colorize"/>
<function name="gimp_histogram ()" link="libgimp-gimpcolor.html#gimp-histogram"/>
<function name="gimp_hue_saturation ()" link="libgimp-gimpcolor.html#gimp-hue-saturation"/>
<function name="gimp_threshold ()" link="libgimp-gimpcolor.html#gimp-threshold"/>
<function name="gimp_image_convert_rgb ()" link="libgimp-gimpconvert.html#gimp-image-convert-rgb"/>
<function name="gimp_image_convert_grayscale ()" link="libgimp-gimpconvert.html#gimp-image-convert-grayscale"/>
<function name="gimp_image_convert_indexed ()" link="libgimp-gimpconvert.html#gimp-image-convert-indexed"/>
<function name="gimp_display_new ()" link="libgimp-gimpdisplay.html#gimp-display-new"/>
<function name="gimp_display_delete ()" link="libgimp-gimpdisplay.html#gimp-display-delete"/>
<function name="gimp_displays_flush ()" link="libgimp-gimpdisplay.html#gimp-displays-flush"/>
<function name="gimp_displays_reconnect ()" link="libgimp-gimpdisplay.html#gimp-displays-reconnect"/>
<function name="GimpDrawable" link="libgimp-gimpdrawable.html#GimpDrawable"/>
<function name="gimp_drawable_get ()" link="libgimp-gimpdrawable.html#gimp-drawable-get"/>
<function name="gimp_drawable_detach ()" link="libgimp-gimpdrawable.html#gimp-drawable-detach"/>
<function name="gimp_drawable_flush ()" link="libgimp-gimpdrawable.html#gimp-drawable-flush"/>
<function name="gimp_drawable_delete ()" link="libgimp-gimpdrawable.html#gimp-drawable-delete"/>
<function name="gimp_drawable_get_name ()" link="libgimp-gimpdrawable.html#gimp-drawable-get-name"/>
<function name="gimp_drawable_set_name ()" link="libgimp-gimpdrawable.html#gimp-drawable-set-name"/>
<function name="gimp_drawable_get_visible ()" link="libgimp-gimpdrawable.html#gimp-drawable-get-visible"/>
<function name="gimp_drawable_set_visible ()" link="libgimp-gimpdrawable.html#gimp-drawable-set-visible"/>
<function name="gimp_drawable_get_linked ()" link="libgimp-gimpdrawable.html#gimp-drawable-get-linked"/>
<function name="gimp_drawable_set_linked ()" link="libgimp-gimpdrawable.html#gimp-drawable-set-linked"/>
<function name="gimp_drawable_get_tattoo ()" link="libgimp-gimpdrawable.html#gimp-drawable-get-tattoo"/>
<function name="gimp_drawable_set_tattoo ()" link="libgimp-gimpdrawable.html#gimp-drawable-set-tattoo"/>
<function name="gimp_drawable_get_pixel ()" link="libgimp-gimpdrawable.html#gimp-drawable-get-pixel"/>
<function name="gimp_drawable_set_pixel ()" link="libgimp-gimpdrawable.html#gimp-drawable-set-pixel"/>
<function name="gimp_drawable_get_tile ()" link="libgimp-gimpdrawable.html#gimp-drawable-get-tile"/>
<function name="gimp_drawable_get_tile2 ()" link="libgimp-gimpdrawable.html#gimp-drawable-get-tile2"/>
<function name="gimp_drawable_get_thumbnail_data ()" link="libgimp-gimpdrawable.html#gimp-drawable-get-thumbnail-data"/>
<function name="gimp_drawable_get_sub_thumbnail_data ()" link="libgimp-gimpdrawable.html#gimp-drawable-get-sub-thumbnail-data"/>
<function name="gimp_drawable_get_color_uchar ()" link="libgimp-gimpdrawable.html#gimp-drawable-get-color-uchar"/>
<function name="gimp_drawable_merge_shadow ()" link="libgimp-gimpdrawable.html#gimp-drawable-merge-shadow"/>
<function name="gimp_drawable_fill ()" link="libgimp-gimpdrawable.html#gimp-drawable-fill"/>
<function name="gimp_drawable_update ()" link="libgimp-gimpdrawable.html#gimp-drawable-update"/>
<function name="gimp_drawable_mask_bounds ()" link="libgimp-gimpdrawable.html#gimp-drawable-mask-bounds"/>
<function name="gimp_drawable_mask_intersect ()" link="libgimp-gimpdrawable.html#gimp-drawable-mask-intersect"/>
<function name="gimp_drawable_get_image ()" link="libgimp-gimpdrawable.html#gimp-drawable-get-image"/>
<function name="gimp_drawable_set_image ()" link="libgimp-gimpdrawable.html#gimp-drawable-set-image"/>
<function name="gimp_drawable_has_alpha ()" link="libgimp-gimpdrawable.html#gimp-drawable-has-alpha"/>
<function name="gimp_drawable_type_with_alpha ()" link="libgimp-gimpdrawable.html#gimp-drawable-type-with-alpha"/>
<function name="gimp_drawable_type ()" link="libgimp-gimpdrawable.html#gimp-drawable-type"/>
<function name="gimp_drawable_is_rgb ()" link="libgimp-gimpdrawable.html#gimp-drawable-is-rgb"/>
<function name="gimp_drawable_is_gray ()" link="libgimp-gimpdrawable.html#gimp-drawable-is-gray"/>
<function name="gimp_drawable_is_indexed ()" link="libgimp-gimpdrawable.html#gimp-drawable-is-indexed"/>
<function name="gimp_drawable_bpp ()" link="libgimp-gimpdrawable.html#gimp-drawable-bpp"/>
<function name="gimp_drawable_width ()" link="libgimp-gimpdrawable.html#gimp-drawable-width"/>
<function name="gimp_drawable_height ()" link="libgimp-gimpdrawable.html#gimp-drawable-height"/>
<function name="gimp_drawable_offsets ()" link="libgimp-gimpdrawable.html#gimp-drawable-offsets"/>
<function name="gimp_drawable_is_layer ()" link="libgimp-gimpdrawable.html#gimp-drawable-is-layer"/>
<function name="gimp_drawable_is_layer_mask ()" link="libgimp-gimpdrawable.html#gimp-drawable-is-layer-mask"/>
<function name="gimp_drawable_is_channel ()" link="libgimp-gimpdrawable.html#gimp-drawable-is-channel"/>
<function name="gimp_drawable_offset ()" link="libgimp-gimpdrawable.html#gimp-drawable-offset"/>
<function name="gimp_drawable_parasite_find ()" link="libgimp-gimpdrawable.html#gimp-drawable-parasite-find"/>
<function name="gimp_drawable_parasite_list ()" link="libgimp-gimpdrawable.html#gimp-drawable-parasite-list"/>
<function name="gimp_drawable_parasite_attach ()" link="libgimp-gimpdrawable.html#gimp-drawable-parasite-attach"/>
<function name="gimp_drawable_parasite_detach ()" link="libgimp-gimpdrawable.html#gimp-drawable-parasite-detach"/>
<function name="gimp_drawable_attach_new_parasite ()" link="libgimp-gimpdrawable.html#gimp-drawable-attach-new-parasite"/>
<function name="gimp_drawable_transform_flip_simple ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-flip-simple"/>
<function name="gimp_drawable_transform_flip ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-flip"/>
<function name="gimp_drawable_transform_flip_default ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-flip-default"/>
<function name="gimp_drawable_transform_perspective ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-perspective"/>
<function name="gimp_drawable_transform_perspective_default ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-perspective-default"/>
<function name="gimp_drawable_transform_rotate_simple ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-rotate-simple"/>
<function name="gimp_drawable_transform_rotate ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-rotate"/>
<function name="gimp_drawable_transform_rotate_default ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-rotate-default"/>
<function name="gimp_drawable_transform_scale ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-scale"/>
<function name="gimp_drawable_transform_scale_default ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-scale-default"/>
<function name="gimp_drawable_transform_shear ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-shear"/>
<function name="gimp_drawable_transform_shear_default ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-shear-default"/>
<function name="gimp_drawable_transform_2d ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-2d"/>
<function name="gimp_drawable_transform_2d_default ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-2d-default"/>
<function name="gimp_drawable_transform_matrix ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-matrix"/>
<function name="gimp_drawable_transform_matrix_default ()" link="libgimp-gimpdrawabletransform.html#gimp-drawable-transform-matrix-default"/>
<function name="gimp_edit_cut ()" link="libgimp-gimpedit.html#gimp-edit-cut"/>
<function name="gimp_edit_copy ()" link="libgimp-gimpedit.html#gimp-edit-copy"/>
<function name="gimp_edit_copy_visible ()" link="libgimp-gimpedit.html#gimp-edit-copy-visible"/>
<function name="gimp_edit_paste ()" link="libgimp-gimpedit.html#gimp-edit-paste"/>
<function name="gimp_edit_clear ()" link="libgimp-gimpedit.html#gimp-edit-clear"/>
<function name="gimp_edit_fill ()" link="libgimp-gimpedit.html#gimp-edit-fill"/>
<function name="gimp_edit_bucket_fill ()" link="libgimp-gimpedit.html#gimp-edit-bucket-fill"/>
<function name="gimp_edit_blend ()" link="libgimp-gimpedit.html#gimp-edit-blend"/>
<function name="gimp_edit_stroke ()" link="libgimp-gimpedit.html#gimp-edit-stroke"/>
<function name="gimp_temp_name ()" link="libgimp-gimpfileops.html#gimp-temp-name"/>
<function name="gimp_file_load ()" link="libgimp-gimpfileops.html#gimp-file-load"/>
<function name="gimp_file_save ()" link="libgimp-gimpfileops.html#gimp-file-save"/>
<function name="gimp_register_magic_load_handler ()" link="libgimp-gimpfileops.html#gimp-register-magic-load-handler"/>
<function name="gimp_register_load_handler ()" link="libgimp-gimpfileops.html#gimp-register-load-handler"/>
<function name="gimp_register_save_handler ()" link="libgimp-gimpfileops.html#gimp-register-save-handler"/>
<function name="gimp_register_file_handler_mime ()" link="libgimp-gimpfileops.html#gimp-register-file-handler-mime"/>
<function name="gimp_register_thumbnail_loader ()" link="libgimp-gimpfileops.html#gimp-register-thumbnail-loader"/>
<function name="gimp_floating_sel_remove ()" link="libgimp-gimpfloatingsel.html#gimp-floating-sel-remove"/>
<function name="gimp_floating_sel_anchor ()" link="libgimp-gimpfloatingsel.html#gimp-floating-sel-anchor"/>
<function name="gimp_floating_sel_to_layer ()" link="libgimp-gimpfloatingsel.html#gimp-floating-sel-to-layer"/>
<function name="gimp_floating_sel_attach ()" link="libgimp-gimpfloatingsel.html#gimp-floating-sel-attach"/>
<function name="gimp_floating_sel_rigor ()" link="libgimp-gimpfloatingsel.html#gimp-floating-sel-rigor"/>
<function name="gimp_floating_sel_relax ()" link="libgimp-gimpfloatingsel.html#gimp-floating-sel-relax"/>
<function name="gimp_image_add_hguide ()" link="libgimp-gimpguides.html#gimp-image-add-hguide"/>
<function name="gimp_image_add_vguide ()" link="libgimp-gimpguides.html#gimp-image-add-vguide"/>
<function name="gimp_image_delete_guide ()" link="libgimp-gimpguides.html#gimp-image-delete-guide"/>
<function name="gimp_image_find_next_guide ()" link="libgimp-gimpguides.html#gimp-image-find-next-guide"/>
<function name="gimp_image_get_guide_orientation ()" link="libgimp-gimpguides.html#gimp-image-get-guide-orientation"/>
<function name="gimp_image_get_guide_position ()" link="libgimp-gimpguides.html#gimp-image-get-guide-position"/>
<function name="gimp_image_list ()" link="libgimp-gimpimage.html#gimp-image-list"/>
<function name="gimp_image_new ()" link="libgimp-gimpimage.html#gimp-image-new"/>
<function name="gimp_image_duplicate ()" link="libgimp-gimpimage.html#gimp-image-duplicate"/>
<function name="gimp_image_delete ()" link="libgimp-gimpimage.html#gimp-image-delete"/>
<function name="gimp_image_base_type ()" link="libgimp-gimpimage.html#gimp-image-base-type"/>
<function name="gimp_image_width ()" link="libgimp-gimpimage.html#gimp-image-width"/>
<function name="gimp_image_height ()" link="libgimp-gimpimage.html#gimp-image-height"/>
<function name="gimp_image_free_shadow ()" link="libgimp-gimpimage.html#gimp-image-free-shadow"/>
<function name="gimp_image_flip ()" link="libgimp-gimpimage.html#gimp-image-flip"/>
<function name="gimp_image_rotate ()" link="libgimp-gimpimage.html#gimp-image-rotate"/>
<function name="gimp_image_resize ()" link="libgimp-gimpimage.html#gimp-image-resize"/>
<function name="gimp_image_resize_to_layers ()" link="libgimp-gimpimage.html#gimp-image-resize-to-layers"/>
<function name="gimp_image_scale ()" link="libgimp-gimpimage.html#gimp-image-scale"/>
<function name="gimp_image_crop ()" link="libgimp-gimpimage.html#gimp-image-crop"/>
<function name="gimp_image_get_layers ()" link="libgimp-gimpimage.html#gimp-image-get-layers"/>
<function name="gimp_image_get_channels ()" link="libgimp-gimpimage.html#gimp-image-get-channels"/>
<function name="gimp_image_get_active_drawable ()" link="libgimp-gimpimage.html#gimp-image-get-active-drawable"/>
<function name="gimp_image_unset_active_channel ()" link="libgimp-gimpimage.html#gimp-image-unset-active-channel"/>
<function name="gimp_image_get_floating_sel ()" link="libgimp-gimpimage.html#gimp-image-get-floating-sel"/>
<function name="gimp_image_floating_sel_attached_to ()" link="libgimp-gimpimage.html#gimp-image-floating-sel-attached-to"/>
<function name="gimp_image_pick_color ()" link="libgimp-gimpimage.html#gimp-image-pick-color"/>
<function name="gimp_image_pick_correlate_layer ()" link="libgimp-gimpimage.html#gimp-image-pick-correlate-layer"/>
<function name="gimp_image_add_layer ()" link="libgimp-gimpimage.html#gimp-image-add-layer"/>
<function name="gimp_image_remove_layer ()" link="libgimp-gimpimage.html#gimp-image-remove-layer"/>
<function name="gimp_image_raise_layer ()" link="libgimp-gimpimage.html#gimp-image-raise-layer"/>
<function name="gimp_image_lower_layer ()" link="libgimp-gimpimage.html#gimp-image-lower-layer"/>
<function name="gimp_image_raise_layer_to_top ()" link="libgimp-gimpimage.html#gimp-image-raise-layer-to-top"/>
<function name="gimp_image_lower_layer_to_bottom ()" link="libgimp-gimpimage.html#gimp-image-lower-layer-to-bottom"/>
<function name="gimp_image_add_channel ()" link="libgimp-gimpimage.html#gimp-image-add-channel"/>
<function name="gimp_image_remove_channel ()" link="libgimp-gimpimage.html#gimp-image-remove-channel"/>
<function name="gimp_image_raise_channel ()" link="libgimp-gimpimage.html#gimp-image-raise-channel"/>
<function name="gimp_image_lower_channel ()" link="libgimp-gimpimage.html#gimp-image-lower-channel"/>
<function name="gimp_image_flatten ()" link="libgimp-gimpimage.html#gimp-image-flatten"/>
<function name="gimp_image_merge_visible_layers ()" link="libgimp-gimpimage.html#gimp-image-merge-visible-layers"/>
<function name="gimp_image_merge_down ()" link="libgimp-gimpimage.html#gimp-image-merge-down"/>
<function name="gimp_image_clean_all ()" link="libgimp-gimpimage.html#gimp-image-clean-all"/>
<function name="gimp_image_is_dirty ()" link="libgimp-gimpimage.html#gimp-image-is-dirty"/>
<function name="gimp_image_get_active_layer ()" link="libgimp-gimpimage.html#gimp-image-get-active-layer"/>
<function name="gimp_image_set_active_layer ()" link="libgimp-gimpimage.html#gimp-image-set-active-layer"/>
<function name="gimp_image_get_active_channel ()" link="libgimp-gimpimage.html#gimp-image-get-active-channel"/>
<function name="gimp_image_set_active_channel ()" link="libgimp-gimpimage.html#gimp-image-set-active-channel"/>
<function name="gimp_image_get_selection ()" link="libgimp-gimpimage.html#gimp-image-get-selection"/>
<function name="gimp_image_get_component_active ()" link="libgimp-gimpimage.html#gimp-image-get-component-active"/>
<function name="gimp_image_set_component_active ()" link="libgimp-gimpimage.html#gimp-image-set-component-active"/>
<function name="gimp_image_get_component_visible ()" link="libgimp-gimpimage.html#gimp-image-get-component-visible"/>
<function name="gimp_image_set_component_visible ()" link="libgimp-gimpimage.html#gimp-image-set-component-visible"/>
<function name="gimp_image_get_filename ()" link="libgimp-gimpimage.html#gimp-image-get-filename"/>
<function name="gimp_image_set_filename ()" link="libgimp-gimpimage.html#gimp-image-set-filename"/>
<function name="gimp_image_get_name ()" link="libgimp-gimpimage.html#gimp-image-get-name"/>
<function name="gimp_image_get_resolution ()" link="libgimp-gimpimage.html#gimp-image-get-resolution"/>
<function name="gimp_image_set_resolution ()" link="libgimp-gimpimage.html#gimp-image-set-resolution"/>
<function name="gimp_image_get_unit ()" link="libgimp-gimpimage.html#gimp-image-get-unit"/>
<function name="gimp_image_set_unit ()" link="libgimp-gimpimage.html#gimp-image-set-unit"/>
<function name="gimp_image_set_tattoo_state ()" link="libgimp-gimpimage.html#gimp-image-set-tattoo-state"/>
<function name="gimp_image_get_tattoo_state ()" link="libgimp-gimpimage.html#gimp-image-get-tattoo-state"/>
<function name="gimp_image_get_layer_by_tattoo ()" link="libgimp-gimpimage.html#gimp-image-get-layer-by-tattoo"/>
<function name="gimp_image_get_channel_by_tattoo ()" link="libgimp-gimpimage.html#gimp-image-get-channel-by-tattoo"/>
<function name="gimp_image_get_cmap ()" link="libgimp-gimpimage.html#gimp-image-get-cmap"/>
<function name="gimp_image_set_cmap ()" link="libgimp-gimpimage.html#gimp-image-set-cmap"/>
<function name="gimp_image_get_colormap ()" link="libgimp-gimpimage.html#gimp-image-get-colormap"/>
<function name="gimp_image_set_colormap ()" link="libgimp-gimpimage.html#gimp-image-set-colormap"/>
<function name="gimp_image_get_thumbnail_data ()" link="libgimp-gimpimage.html#gimp-image-get-thumbnail-data"/>
<function name="gimp_image_parasite_find ()" link="libgimp-gimpimage.html#gimp-image-parasite-find"/>
<function name="gimp_image_parasite_list ()" link="libgimp-gimpimage.html#gimp-image-parasite-list"/>
<function name="gimp_image_parasite_attach ()" link="libgimp-gimpimage.html#gimp-image-parasite-attach"/>
<function name="gimp_image_parasite_detach ()" link="libgimp-gimpimage.html#gimp-image-parasite-detach"/>
<function name="gimp_image_attach_new_parasite ()" link="libgimp-gimpimage.html#gimp-image-attach-new-parasite"/>
<function name="gimp_layer_new ()" link="libgimp-gimplayer.html#gimp-layer-new"/>
<function name="gimp_layer_copy ()" link="libgimp-gimplayer.html#gimp-layer-copy"/>
<function name="gimp_layer_scale ()" link="libgimp-gimplayer.html#gimp-layer-scale"/>
<function name="gimp_layer_resize ()" link="libgimp-gimplayer.html#gimp-layer-resize"/>
<function name="gimp_layer_resize_to_image_size ()" link="libgimp-gimplayer.html#gimp-layer-resize-to-image-size"/>
<function name="gimp_layer_translate ()" link="libgimp-gimplayer.html#gimp-layer-translate"/>
<function name="gimp_layer_add_alpha ()" link="libgimp-gimplayer.html#gimp-layer-add-alpha"/>
<function name="gimp_layer_set_offsets ()" link="libgimp-gimplayer.html#gimp-layer-set-offsets"/>
<function name="gimp_layer_create_mask ()" link="libgimp-gimplayer.html#gimp-layer-create-mask"/>
<function name="gimp_layer_from_mask ()" link="libgimp-gimplayer.html#gimp-layer-from-mask"/>
<function name="gimp_layer_get_mask ()" link="libgimp-gimplayer.html#gimp-layer-get-mask"/>
<function name="gimp_layer_add_mask ()" link="libgimp-gimplayer.html#gimp-layer-add-mask"/>
<function name="gimp_layer_remove_mask ()" link="libgimp-gimplayer.html#gimp-layer-remove-mask"/>
<function name="gimp_layer_new_from_drawable ()" link="libgimp-gimplayer.html#gimp-layer-new-from-drawable"/>
<function name="gimp_layer_get_preserve_trans ()" link="libgimp-gimplayer.html#gimp-layer-get-preserve-trans"/>
<function name="gimp_layer_set_preserve_trans ()" link="libgimp-gimplayer.html#gimp-layer-set-preserve-trans"/>
<function name="gimp_layer_get_apply_mask ()" link="libgimp-gimplayer.html#gimp-layer-get-apply-mask"/>
<function name="gimp_layer_set_apply_mask ()" link="libgimp-gimplayer.html#gimp-layer-set-apply-mask"/>
<function name="gimp_layer_get_show_mask ()" link="libgimp-gimplayer.html#gimp-layer-get-show-mask"/>
<function name="gimp_layer_set_show_mask ()" link="libgimp-gimplayer.html#gimp-layer-set-show-mask"/>
<function name="gimp_layer_get_edit_mask ()" link="libgimp-gimplayer.html#gimp-layer-get-edit-mask"/>
<function name="gimp_layer_set_edit_mask ()" link="libgimp-gimplayer.html#gimp-layer-set-edit-mask"/>
<function name="gimp_layer_get_opacity ()" link="libgimp-gimplayer.html#gimp-layer-get-opacity"/>
<function name="gimp_layer_set_opacity ()" link="libgimp-gimplayer.html#gimp-layer-set-opacity"/>
<function name="gimp_layer_get_mode ()" link="libgimp-gimplayer.html#gimp-layer-get-mode"/>
<function name="gimp_layer_set_mode ()" link="libgimp-gimplayer.html#gimp-layer-set-mode"/>
<function name="gimp_layer_is_floating_sel ()" link="libgimp-gimplayer.html#gimp-layer-is-floating-sel"/>
<function name="gimp_path_list ()" link="libgimp-gimppaths.html#gimp-path-list"/>
<function name="gimp_path_get_points ()" link="libgimp-gimppaths.html#gimp-path-get-points"/>
<function name="gimp_path_get_current ()" link="libgimp-gimppaths.html#gimp-path-get-current"/>
<function name="gimp_path_set_current ()" link="libgimp-gimppaths.html#gimp-path-set-current"/>
<function name="gimp_path_set_points ()" link="libgimp-gimppaths.html#gimp-path-set-points"/>
<function name="gimp_path_stroke_current ()" link="libgimp-gimppaths.html#gimp-path-stroke-current"/>
<function name="gimp_path_get_point_at_dist ()" link="libgimp-gimppaths.html#gimp-path-get-point-at-dist"/>
<function name="gimp_path_get_tattoo ()" link="libgimp-gimppaths.html#gimp-path-get-tattoo"/>
<function name="gimp_get_path_by_tattoo ()" link="libgimp-gimppaths.html#gimp-get-path-by-tattoo"/>
<function name="gimp_path_delete ()" link="libgimp-gimppaths.html#gimp-path-delete"/>
<function name="gimp_path_get_locked ()" link="libgimp-gimppaths.html#gimp-path-get-locked"/>
<function name="gimp_path_set_locked ()" link="libgimp-gimppaths.html#gimp-path-set-locked"/>
<function name="gimp_path_set_tattoo ()" link="libgimp-gimppaths.html#gimp-path-set-tattoo"/>
<function name="gimp_path_to_selection ()" link="libgimp-gimppaths.html#gimp-path-to-selection"/>
<function name="gimp_path_import ()" link="libgimp-gimppaths.html#gimp-path-import"/>
<function name="enum GimpPixelFetcherEdgeMode" link="libgimp-gimppixelfetcher.html#GimpPixelFetcherEdgeMode"/>
<function name="GimpPixelFetcher" link="libgimp-gimppixelfetcher.html#GimpPixelFetcher"/>
<function name="gimp_pixel_fetcher_new ()" link="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-new"/>
<function name="gimp_pixel_fetcher_set_edge_mode ()" link="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-set-edge-mode"/>
<function name="gimp_pixel_fetcher_set_bg_color ()" link="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-set-bg-color"/>
<function name="gimp_pixel_fetcher_get_pixel ()" link="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-get-pixel"/>
<function name="gimp_pixel_fetcher_put_pixel ()" link="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-put-pixel"/>
<function name="gimp_pixel_fetcher_destroy ()" link="libgimp-gimppixelfetcher.html#gimp-pixel-fetcher-destroy"/>
<function name="GimpPixelRgn" link="libgimp-gimppixelrgn.html#GimpPixelRgn"/>
<function name="gimp_pixel_rgn_init ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgn-init"/>
<function name="gimp_pixel_rgn_resize ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgn-resize"/>
<function name="gimp_pixel_rgn_get_pixel ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-pixel"/>
<function name="gimp_pixel_rgn_get_row ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-row"/>
<function name="gimp_pixel_rgn_get_col ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-col"/>
<function name="gimp_pixel_rgn_get_rect ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgn-get-rect"/>
<function name="gimp_pixel_rgn_set_pixel ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-pixel"/>
<function name="gimp_pixel_rgn_set_row ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-row"/>
<function name="gimp_pixel_rgn_set_col ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-col"/>
<function name="gimp_pixel_rgn_set_rect ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgn-set-rect"/>
<function name="gimp_pixel_rgns_register ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgns-register"/>
<function name="gimp_pixel_rgns_register2 ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgns-register2"/>
<function name="gimp_pixel_rgns_process ()" link="libgimp-gimppixelrgn.html#gimp-pixel-rgns-process"/>
<function name="GimpRgnIterator" link="libgimp-gimpregioniterator.html#GimpRgnIterator"/>
<function name="GimpRgnFunc1 ()" link="libgimp-gimpregioniterator.html#GimpRgnFunc1"/>
<function name="GimpRgnFunc2 ()" link="libgimp-gimpregioniterator.html#GimpRgnFunc2"/>
<function name="GimpRgnFuncSrc ()" link="libgimp-gimpregioniterator.html#GimpRgnFuncSrc"/>
<function name="GimpRgnFuncDest ()" link="libgimp-gimpregioniterator.html#GimpRgnFuncDest"/>
<function name="GimpRgnFuncSrcDest ()" link="libgimp-gimpregioniterator.html#GimpRgnFuncSrcDest"/>
<function name="gimp_rgn_iterator_new ()" link="libgimp-gimpregioniterator.html#gimp-rgn-iterator-new"/>
<function name="gimp_rgn_iterator_free ()" link="libgimp-gimpregioniterator.html#gimp-rgn-iterator-free"/>
<function name="gimp_rgn_iterator_src ()" link="libgimp-gimpregioniterator.html#gimp-rgn-iterator-src"/>
<function name="gimp_rgn_iterator_dest ()" link="libgimp-gimpregioniterator.html#gimp-rgn-iterator-dest"/>
<function name="gimp_rgn_iterator_src_dest ()" link="libgimp-gimpregioniterator.html#gimp-rgn-iterator-src-dest"/>
<function name="gimp_rgn_iterate1 ()" link="libgimp-gimpregioniterator.html#gimp-rgn-iterate1"/>
<function name="gimp_rgn_iterate2 ()" link="libgimp-gimpregioniterator.html#gimp-rgn-iterate2"/>
<function name="gimp_selection_bounds ()" link="libgimp-gimpselection.html#gimp-selection-bounds"/>
<function name="gimp_selection_all ()" link="libgimp-gimpselection.html#gimp-selection-all"/>
<function name="gimp_selection_none ()" link="libgimp-gimpselection.html#gimp-selection-none"/>
<function name="gimp_selection_clear ()" link="libgimp-gimpselection.html#gimp-selection-clear"/>
<function name="gimp_selection_is_empty ()" link="libgimp-gimpselection.html#gimp-selection-is-empty"/>
<function name="gimp_selection_float ()" link="libgimp-gimpselection.html#gimp-selection-float"/>
<function name="gimp_selection_load ()" link="libgimp-gimpselection.html#gimp-selection-load"/>
<function name="gimp_selection_save ()" link="libgimp-gimpselection.html#gimp-selection-save"/>
<function name="gimp_selection_value ()" link="libgimp-gimpselection.html#gimp-selection-value"/>
<function name="gimp_selection_grow ()" link="libgimp-gimpselection.html#gimp-selection-grow"/>
<function name="gimp_selection_shrink ()" link="libgimp-gimpselection.html#gimp-selection-shrink"/>
<function name="gimp_selection_invert ()" link="libgimp-gimpselection.html#gimp-selection-invert"/>
<function name="gimp_selection_feather ()" link="libgimp-gimpselection.html#gimp-selection-feather"/>
<function name="gimp_selection_sharpen ()" link="libgimp-gimpselection.html#gimp-selection-sharpen"/>
<function name="gimp_selection_border ()" link="libgimp-gimpselection.html#gimp-selection-border"/>
<function name="gimp_selection_translate ()" link="libgimp-gimpselection.html#gimp-selection-translate"/>
<function name="gimp_selection_layer_alpha ()" link="libgimp-gimpselection.html#gimp-selection-layer-alpha"/>
<function name="gimp_selection_combine ()" link="libgimp-gimpselection.html#gimp-selection-combine"/>
<function name="gimp_text_fontname ()" link="libgimp-gimptexttool.html#gimp-text-fontname"/>
<function name="gimp_text_get_extents_fontname ()" link="libgimp-gimptexttool.html#gimp-text-get-extents-fontname"/>
<function name="gimp_text ()" link="libgimp-gimptexttool.html#gimp-text"/>
<function name="gimp_text_get_extents ()" link="libgimp-gimptexttool.html#gimp-text-get-extents"/>
<function name="GimpTile" link="libgimp-gimptile.html#GimpTile"/>
<function name="gimp_tile_ref ()" link="libgimp-gimptile.html#gimp-tile-ref"/>
<function name="gimp_tile_ref_zero ()" link="libgimp-gimptile.html#gimp-tile-ref-zero"/>
<function name="gimp_tile_unref ()" link="libgimp-gimptile.html#gimp-tile-unref"/>
<function name="gimp_tile_flush ()" link="libgimp-gimptile.html#gimp-tile-flush"/>
<function name="gimp_tile_cache_size ()" link="libgimp-gimptile.html#gimp-tile-cache-size"/>
<function name="gimp_tile_cache_ntiles ()" link="libgimp-gimptile.html#gimp-tile-cache-ntiles"/>
<function name="gimp_airbrush ()" link="libgimp-gimptools.html#gimp-airbrush"/>
<function name="gimp_airbrush_default ()" link="libgimp-gimptools.html#gimp-airbrush-default"/>
<function name="gimp_by_color_select ()" link="libgimp-gimptools.html#gimp-by-color-select"/>
<function name="gimp_clone ()" link="libgimp-gimptools.html#gimp-clone"/>
<function name="gimp_clone_default ()" link="libgimp-gimptools.html#gimp-clone-default"/>
<function name="gimp_convolve ()" link="libgimp-gimptools.html#gimp-convolve"/>
<function name="gimp_convolve_default ()" link="libgimp-gimptools.html#gimp-convolve-default"/>
<function name="gimp_dodgeburn ()" link="libgimp-gimptools.html#gimp-dodgeburn"/>
<function name="gimp_dodgeburn_default ()" link="libgimp-gimptools.html#gimp-dodgeburn-default"/>
<function name="gimp_ellipse_select ()" link="libgimp-gimptools.html#gimp-ellipse-select"/>
<function name="gimp_eraser ()" link="libgimp-gimptools.html#gimp-eraser"/>
<function name="gimp_eraser_default ()" link="libgimp-gimptools.html#gimp-eraser-default"/>
<function name="gimp_flip ()" link="libgimp-gimptools.html#gimp-flip"/>
<function name="gimp_free_select ()" link="libgimp-gimptools.html#gimp-free-select"/>
<function name="gimp_fuzzy_select ()" link="libgimp-gimptools.html#gimp-fuzzy-select"/>
<function name="gimp_paintbrush ()" link="libgimp-gimptools.html#gimp-paintbrush"/>
<function name="gimp_paintbrush_default ()" link="libgimp-gimptools.html#gimp-paintbrush-default"/>
<function name="gimp_pencil ()" link="libgimp-gimptools.html#gimp-pencil"/>
<function name="gimp_perspective ()" link="libgimp-gimptools.html#gimp-perspective"/>
<function name="gimp_rect_select ()" link="libgimp-gimptools.html#gimp-rect-select"/>
<function name="gimp_rotate ()" link="libgimp-gimptools.html#gimp-rotate"/>
<function name="gimp_scale ()" link="libgimp-gimptools.html#gimp-scale"/>
<function name="gimp_shear ()" link="libgimp-gimptools.html#gimp-shear"/>
<function name="gimp_smudge ()" link="libgimp-gimptools.html#gimp-smudge"/>
<function name="gimp_smudge_default ()" link="libgimp-gimptools.html#gimp-smudge-default"/>
<function name="gimp_transform_2d ()" link="libgimp-gimptools.html#gimp-transform-2d"/>
<function name="gimp_image_undo_group_start ()" link="libgimp-gimpundo.html#gimp-image-undo-group-start"/>
<function name="gimp_image_undo_group_end ()" link="libgimp-gimpundo.html#gimp-image-undo-group-end"/>
<function name="gimp_image_undo_is_enabled ()" link="libgimp-gimpundo.html#gimp-image-undo-is-enabled"/>
<function name="gimp_image_undo_disable ()" link="libgimp-gimpundo.html#gimp-image-undo-disable"/>
<function name="gimp_image_undo_enable ()" link="libgimp-gimpundo.html#gimp-image-undo-enable"/>
<function name="gimp_image_undo_freeze ()" link="libgimp-gimpundo.html#gimp-image-undo-freeze"/>
<function name="gimp_image_undo_thaw ()" link="libgimp-gimpundo.html#gimp-image-undo-thaw"/>
<function name="gimp_brush_new ()" link="libgimp-gimpbrush.html#gimp-brush-new"/>
<function name="gimp_brush_duplicate ()" link="libgimp-gimpbrush.html#gimp-brush-duplicate"/>
<function name="gimp_brush_rename ()" link="libgimp-gimpbrush.html#gimp-brush-rename"/>
<function name="gimp_brush_delete ()" link="libgimp-gimpbrush.html#gimp-brush-delete"/>
<function name="gimp_brush_get_info ()" link="libgimp-gimpbrush.html#gimp-brush-get-info"/>
<function name="gimp_brush_get_pixels ()" link="libgimp-gimpbrush.html#gimp-brush-get-pixels"/>
<function name="gimp_brush_get_spacing ()" link="libgimp-gimpbrush.html#gimp-brush-get-spacing"/>
<function name="gimp_brush_set_spacing ()" link="libgimp-gimpbrush.html#gimp-brush-set-spacing"/>
<function name="gimp_brushes_refresh ()" link="libgimp-gimpbrushes.html#gimp-brushes-refresh"/>
<function name="gimp_brushes_get_list ()" link="libgimp-gimpbrushes.html#gimp-brushes-get-list"/>
<function name="gimp_brushes_get_brush ()" link="libgimp-gimpbrushes.html#gimp-brushes-get-brush"/>
<function name="gimp_brushes_set_brush ()" link="libgimp-gimpbrushes.html#gimp-brushes-set-brush"/>
<function name="gimp_brushes_get_opacity ()" link="libgimp-gimpbrushes.html#gimp-brushes-get-opacity"/>
<function name="gimp_brushes_set_opacity ()" link="libgimp-gimpbrushes.html#gimp-brushes-set-opacity"/>
<function name="gimp_brushes_get_paint_mode ()" link="libgimp-gimpbrushes.html#gimp-brushes-get-paint-mode"/>
<function name="gimp_brushes_set_paint_mode ()" link="libgimp-gimpbrushes.html#gimp-brushes-set-paint-mode"/>
<function name="gimp_brushes_get_spacing ()" link="libgimp-gimpbrushes.html#gimp-brushes-get-spacing"/>
<function name="gimp_brushes_set_spacing ()" link="libgimp-gimpbrushes.html#gimp-brushes-set-spacing"/>
<function name="gimp_brushes_get_brush_data ()" link="libgimp-gimpbrushes.html#gimp-brushes-get-brush-data"/>
<function name="gimp_fonts_refresh ()" link="libgimp-gimpfonts.html#gimp-fonts-refresh"/>
<function name="gimp_fonts_get_list ()" link="libgimp-gimpfonts.html#gimp-fonts-get-list"/>
<function name="gimp_gradient_new ()" link="libgimp-gimpgradient.html#gimp-gradient-new"/>
<function name="gimp_gradient_duplicate ()" link="libgimp-gimpgradient.html#gimp-gradient-duplicate"/>
<function name="gimp_gradient_rename ()" link="libgimp-gimpgradient.html#gimp-gradient-rename"/>
<function name="gimp_gradient_delete ()" link="libgimp-gimpgradient.html#gimp-gradient-delete"/>
<function name="gimp_gradient_get_uniform_samples ()" link="libgimp-gimpgradient.html#gimp-gradient-get-uniform-samples"/>
<function name="gimp_gradient_get_custom_samples ()" link="libgimp-gimpgradient.html#gimp-gradient-get-custom-samples"/>
<function name="gimp_gradient_segment_get_left_color ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-get-left-color"/>
<function name="gimp_gradient_segment_set_left_color ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-set-left-color"/>
<function name="gimp_gradient_segment_get_right_color ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-get-right-color"/>
<function name="gimp_gradient_segment_set_right_color ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-set-right-color"/>
<function name="gimp_gradient_segment_get_left_pos ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-get-left-pos"/>
<function name="gimp_gradient_segment_set_left_pos ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-set-left-pos"/>
<function name="gimp_gradient_segment_get_middle_pos ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-get-middle-pos"/>
<function name="gimp_gradient_segment_set_middle_pos ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-set-middle-pos"/>
<function name="gimp_gradient_segment_get_right_pos ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-get-right-pos"/>
<function name="gimp_gradient_segment_set_right_pos ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-set-right-pos"/>
<function name="gimp_gradient_segment_get_blending_function ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-get-blending-function"/>
<function name="gimp_gradient_segment_get_coloring_type ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-get-coloring-type"/>
<function name="gimp_gradient_segment_range_set_blending_function ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-range-set-blending-function"/>
<function name="gimp_gradient_segment_range_set_coloring_type ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-range-set-coloring-type"/>
<function name="gimp_gradient_segment_range_flip ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-range-flip"/>
<function name="gimp_gradient_segment_range_replicate ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-range-replicate"/>
<function name="gimp_gradient_segment_range_split_midpoint ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-range-split-midpoint"/>
<function name="gimp_gradient_segment_range_split_uniform ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-range-split-uniform"/>
<function name="gimp_gradient_segment_range_delete ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-range-delete"/>
<function name="gimp_gradient_segment_range_redistribute_handles ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-range-redistribute-handles"/>
<function name="gimp_gradient_segment_range_blend_colors ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-range-blend-colors"/>
<function name="gimp_gradient_segment_range_blend_opacity ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-range-blend-opacity"/>
<function name="gimp_gradient_segment_range_move ()" link="libgimp-gimpgradient.html#gimp-gradient-segment-range-move"/>
<function name="gimp_gradients_refresh ()" link="libgimp-gimpgradients.html#gimp-gradients-refresh"/>
<function name="gimp_gradients_get_list ()" link="libgimp-gimpgradients.html#gimp-gradients-get-list"/>
<function name="gimp_gradients_get_gradient ()" link="libgimp-gimpgradients.html#gimp-gradients-get-gradient"/>
<function name="gimp_gradients_set_gradient ()" link="libgimp-gimpgradients.html#gimp-gradients-set-gradient"/>
<function name="gimp_gradients_sample_uniform ()" link="libgimp-gimpgradients.html#gimp-gradients-sample-uniform"/>
<function name="gimp_gradients_sample_custom ()" link="libgimp-gimpgradients.html#gimp-gradients-sample-custom"/>
<function name="gimp_gradients_get_gradient_data ()" link="libgimp-gimpgradients.html#gimp-gradients-get-gradient-data"/>
<function name="gimp_palette_new ()" link="libgimp-gimppalette.html#gimp-palette-new"/>
<function name="gimp_palette_duplicate ()" link="libgimp-gimppalette.html#gimp-palette-duplicate"/>
<function name="gimp_palette_rename ()" link="libgimp-gimppalette.html#gimp-palette-rename"/>
<function name="gimp_palette_delete ()" link="libgimp-gimppalette.html#gimp-palette-delete"/>
<function name="gimp_palette_get_info ()" link="libgimp-gimppalette.html#gimp-palette-get-info"/>
<function name="gimp_palette_add_entry ()" link="libgimp-gimppalette.html#gimp-palette-add-entry"/>
<function name="gimp_palette_delete_entry ()" link="libgimp-gimppalette.html#gimp-palette-delete-entry"/>
<function name="gimp_palette_entry_get_color ()" link="libgimp-gimppalette.html#gimp-palette-entry-get-color"/>
<function name="gimp_palette_entry_set_color ()" link="libgimp-gimppalette.html#gimp-palette-entry-set-color"/>
<function name="gimp_palette_entry_get_name ()" link="libgimp-gimppalette.html#gimp-palette-entry-get-name"/>
<function name="gimp_palette_entry_set_name ()" link="libgimp-gimppalette.html#gimp-palette-entry-set-name"/>
<function name="gimp_palette_get_foreground ()" link="libgimp-gimppalette.html#gimp-palette-get-foreground"/>
<function name="gimp_palette_get_background ()" link="libgimp-gimppalette.html#gimp-palette-get-background"/>
<function name="gimp_palette_set_foreground ()" link="libgimp-gimppalette.html#gimp-palette-set-foreground"/>
<function name="gimp_palette_set_background ()" link="libgimp-gimppalette.html#gimp-palette-set-background"/>
<function name="gimp_palette_set_default_colors ()" link="libgimp-gimppalette.html#gimp-palette-set-default-colors"/>
<function name="gimp_palette_swap_colors ()" link="libgimp-gimppalette.html#gimp-palette-swap-colors"/>
<function name="gimp_palettes_refresh ()" link="libgimp-gimppalettes.html#gimp-palettes-refresh"/>
<function name="gimp_palettes_get_list ()" link="libgimp-gimppalettes.html#gimp-palettes-get-list"/>
<function name="gimp_palettes_get_palette ()" link="libgimp-gimppalettes.html#gimp-palettes-get-palette"/>
<function name="gimp_palettes_set_palette ()" link="libgimp-gimppalettes.html#gimp-palettes-set-palette"/>
<function name="gimp_palettes_get_palette_entry ()" link="libgimp-gimppalettes.html#gimp-palettes-get-palette-entry"/>
<function name="gimp_pattern_get_info ()" link="libgimp-gimppattern.html#gimp-pattern-get-info"/>
<function name="gimp_pattern_get_pixels ()" link="libgimp-gimppattern.html#gimp-pattern-get-pixels"/>
<function name="gimp_patterns_refresh ()" link="libgimp-gimppatterns.html#gimp-patterns-refresh"/>
<function name="gimp_patterns_get_list ()" link="libgimp-gimppatterns.html#gimp-patterns-get-list"/>
<function name="gimp_patterns_get_pattern ()" link="libgimp-gimppatterns.html#gimp-patterns-get-pattern"/>
<function name="gimp_patterns_set_pattern ()" link="libgimp-gimppatterns.html#gimp-patterns-set-pattern"/>
<function name="gimp_patterns_get_pattern_data ()" link="libgimp-gimppatterns.html#gimp-patterns-get-pattern-data"/>
<function name="GimpRunBrushCallback ()" link="libgimp-gimpbrushselect.html#GimpRunBrushCallback"/>
<function name="gimp_brush_select_new ()" link="libgimp-gimpbrushselect.html#gimp-brush-select-new"/>
<function name="gimp_brush_select_destroy ()" link="libgimp-gimpbrushselect.html#gimp-brush-select-destroy"/>
<function name="gimp_brushes_popup ()" link="libgimp-gimpbrushselect.html#gimp-brushes-popup"/>
<function name="gimp_brushes_close_popup ()" link="libgimp-gimpbrushselect.html#gimp-brushes-close-popup"/>
<function name="gimp_brushes_set_popup ()" link="libgimp-gimpbrushselect.html#gimp-brushes-set-popup"/>
<function name="GimpRunFontCallback ()" link="libgimp-gimpfontselect.html#GimpRunFontCallback"/>
<function name="gimp_font_select_new ()" link="libgimp-gimpfontselect.html#gimp-font-select-new"/>
<function name="gimp_font_select_destroy ()" link="libgimp-gimpfontselect.html#gimp-font-select-destroy"/>
<function name="gimp_fonts_popup ()" link="libgimp-gimpfontselect.html#gimp-fonts-popup"/>
<function name="gimp_fonts_close_popup ()" link="libgimp-gimpfontselect.html#gimp-fonts-close-popup"/>
<function name="gimp_fonts_set_popup ()" link="libgimp-gimpfontselect.html#gimp-fonts-set-popup"/>
<function name="GimpRunGradientCallback ()" link="libgimp-gimpgradientselect.html#GimpRunGradientCallback"/>
<function name="gimp_gradient_select_new ()" link="libgimp-gimpgradientselect.html#gimp-gradient-select-new"/>
<function name="gimp_gradient_select_destroy ()" link="libgimp-gimpgradientselect.html#gimp-gradient-select-destroy"/>
<function name="gimp_gradients_popup ()" link="libgimp-gimpgradientselect.html#gimp-gradients-popup"/>
<function name="gimp_gradients_close_popup ()" link="libgimp-gimpgradientselect.html#gimp-gradients-close-popup"/>
<function name="gimp_gradients_set_popup ()" link="libgimp-gimpgradientselect.html#gimp-gradients-set-popup"/>
<function name="GimpRunPaletteCallback ()" link="libgimp-gimppaletteselect.html#GimpRunPaletteCallback"/>
<function name="gimp_palette_select_new ()" link="libgimp-gimppaletteselect.html#gimp-palette-select-new"/>
<function name="gimp_palette_select_destroy ()" link="libgimp-gimppaletteselect.html#gimp-palette-select-destroy"/>
<function name="gimp_palettes_popup ()" link="libgimp-gimppaletteselect.html#gimp-palettes-popup"/>
<function name="gimp_palettes_close_popup ()" link="libgimp-gimppaletteselect.html#gimp-palettes-close-popup"/>
<function name="gimp_palettes_set_popup ()" link="libgimp-gimppaletteselect.html#gimp-palettes-set-popup"/>
<function name="GimpRunPatternCallback ()" link="libgimp-gimppatternselect.html#GimpRunPatternCallback"/>
<function name="gimp_pattern_select_new ()" link="libgimp-gimppatternselect.html#gimp-pattern-select-new"/>
<function name="gimp_pattern_select_destroy ()" link="libgimp-gimppatternselect.html#gimp-pattern-select-destroy"/>
<function name="gimp_patterns_popup ()" link="libgimp-gimppatternselect.html#gimp-patterns-popup"/>
<function name="gimp_patterns_close_popup ()" link="libgimp-gimppatternselect.html#gimp-patterns-close-popup"/>
<function name="gimp_patterns_set_popup ()" link="libgimp-gimppatternselect.html#gimp-patterns-set-popup"/>
<function name="gimp_ui_init ()" link="libgimp-gimpui.html#gimp-ui-init"/>
<function name="enum GimpExportCapabilities" link="libgimp-gimpexport.html#GimpExportCapabilities"/>
<function name="enum GimpExportReturn" link="libgimp-gimpexport.html#GimpExportReturn"/>
<function name="gimp_export_image ()" link="libgimp-gimpexport.html#gimp-export-image"/>
<function name="GimpAspectPreview" link="GimpAspectPreview.html#GimpAspectPreview-struct"/>
<function name="gimp_aspect_preview_new ()" link="GimpAspectPreview.html#gimp-aspect-preview-new"/>
<function name="GimpDrawablePreview" link="GimpDrawablePreview.html#GimpDrawablePreview-struct"/>
<function name="gimp_drawable_preview_new ()" link="GimpDrawablePreview.html#gimp-drawable-preview-new"/>
<function name="gimp_drawable_preview_get_drawable ()" link="GimpDrawablePreview.html#gimp-drawable-preview-get-drawable"/>
<function name="gimp_drawable_preview_draw_region ()" link="GimpDrawablePreview.html#gimp-drawable-preview-draw-region"/>
<function name="GimpDrawableConstraintFunc ()" link="libgimp-gimpdrawablecombobox.html#GimpDrawableConstraintFunc"/>
<function name="gimp_drawable_combo_box_new ()" link="libgimp-gimpdrawablecombobox.html#gimp-drawable-combo-box-new"/>
<function name="gimp_channel_combo_box_new ()" link="libgimp-gimpdrawablecombobox.html#gimp-channel-combo-box-new"/>
<function name="gimp_layer_combo_box_new ()" link="libgimp-gimpdrawablecombobox.html#gimp-layer-combo-box-new"/>
<function name="GimpImageConstraintFunc ()" link="libgimp-gimpimagecombobox.html#GimpImageConstraintFunc"/>
<function name="gimp_image_combo_box_new ()" link="libgimp-gimpimagecombobox.html#gimp-image-combo-box-new"/>
<function name="enum GimpPixbufTransparency" link="libgimp-gimppixbuf.html#GimpPixbufTransparency"/>
<function name="gimp_image_get_thumbnail ()" link="libgimp-gimppixbuf.html#gimp-image-get-thumbnail"/>
<function name="gimp_drawable_get_thumbnail ()" link="libgimp-gimppixbuf.html#gimp-drawable-get-thumbnail"/>
<function name="gimp_drawable_get_sub_thumbnail ()" link="libgimp-gimppixbuf.html#gimp-drawable-get-sub-thumbnail"/>
<function name="GimpProgressBar" link="GimpProgressBar.html#GimpProgressBar-struct"/>
<function name="gimp_progress_bar_new ()" link="GimpProgressBar.html#gimp-progress-bar-new"/>
<function name="GimpConstraintFunc ()" link="libgimp-gimpmenu.html#GimpConstraintFunc"/>
<function name="GimpMenuCallback ()" link="libgimp-gimpmenu.html#GimpMenuCallback"/>
<function name="gimp_image_menu_new ()" link="libgimp-gimpmenu.html#gimp-image-menu-new"/>
<function name="gimp_layer_menu_new ()" link="libgimp-gimpmenu.html#gimp-layer-menu-new"/>
<function name="gimp_channel_menu_new ()" link="libgimp-gimpmenu.html#gimp-channel-menu-new"/>
<function name="gimp_drawable_menu_new ()" link="libgimp-gimpmenu.html#gimp-drawable-menu-new"/>
<function name="gimp_brush_select_widget_new ()" link="libgimp-gimpbrushmenu.html#gimp-brush-select-widget-new"/>
<function name="gimp_brush_select_widget_close ()" link="libgimp-gimpbrushmenu.html#gimp-brush-select-widget-close"/>
<function name="gimp_brush_select_widget_set ()" link="libgimp-gimpbrushmenu.html#gimp-brush-select-widget-set"/>
<function name="gimp_font_select_widget_new ()" link="libgimp-gimpfontmenu.html#gimp-font-select-widget-new"/>
<function name="gimp_font_select_widget_close ()" link="libgimp-gimpfontmenu.html#gimp-font-select-widget-close"/>
<function name="gimp_font_select_widget_set ()" link="libgimp-gimpfontmenu.html#gimp-font-select-widget-set"/>
<function name="gimp_gradient_select_widget_new ()" link="libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-new"/>
<function name="gimp_gradient_select_widget_close ()" link="libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-close"/>
<function name="gimp_gradient_select_widget_set ()" link="libgimp-gimpgradientmenu.html#gimp-gradient-select-widget-set"/>
<function name="gimp_palette_select_widget_new ()" link="libgimp-gimppalettemenu.html#gimp-palette-select-widget-new"/>
<function name="gimp_palette_select_widget_close ()" link="libgimp-gimppalettemenu.html#gimp-palette-select-widget-close"/>
<function name="gimp_palette_select_widget_set ()" link="libgimp-gimppalettemenu.html#gimp-palette-select-widget-set"/>
<function name="gimp_pattern_select_widget_new ()" link="libgimp-gimppatternmenu.html#gimp-pattern-select-widget-new"/>
<function name="gimp_pattern_select_widget_close ()" link="libgimp-gimppatternmenu.html#gimp-pattern-select-widget-close"/>
<function name="gimp_pattern_select_widget_set ()" link="libgimp-gimppatternmenu.html#gimp-pattern-select-widget-set"/>
</functions>
</book>

View File

@ -0,0 +1,5 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Part<EFBFBD>II.<2E>GIMP Library</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="index.html" title="GIMP Library Reference Manual"><link rel="prev" href="libgimp-gimpenums.html" title="gimpenums"><link rel="next" href="libgimp-general.html" title="Functions not Related to Specific Images"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimpenums.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-general.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="part" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="libgimp"></a>GIMP Library</h1></div></div></div><div class="partintro" lang="en"><div></div><p>
GIMP's Procedural Database (PDB) offers an interface to core
functions and to functionality provided by plug-ins. The role
of libgimp is to provide C bindings for this interface.
</p></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimpenums.html"><b>&lt;&lt;<EFBFBD>gimpenums</b></a></td><td align="right"><a accesskey="n" href="libgimp-general.html"><b>Functions not Related to Specific Images<65>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1,19 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Object Hierarchy</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="prev" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="next" href="libgimp-gimpui.html" title="gimpui"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimpui.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimp-gimpui.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="libgimpui-hierarchy"></a>Object Hierarchy</h2></div></div></div><pre class="screen">
GObject
GtkObject
GtkWidget
GtkContainer
GtkBox
GtkVBox
<a
href="../libgimpwidgets/GimpPreview.html"
>GimpPreview</a>
<a href="GimpAspectPreview.html" title="GimpAspectPreview">GimpAspectPreview</a>
<a
href="../libgimpwidgets/libgimpwidgets-GimpScrolledPreview.html#GimpScrolledPreview"
>GimpScrolledPreview</a>
<a href="GimpDrawablePreview.html" title="GimpDrawablePreview">GimpDrawablePreview</a>
GtkProgress
GtkProgressBar
<a href="GimpProgressBar.html" title="GimpProgressBar">GimpProgressBar</a>
</pre></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimpui.html"><b>&lt;&lt;<EFBFBD>Part<EFBFBD>III.<2E>GIMP User Interface Library</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpui.html"><b>gimpui<EFBFBD>&gt;&gt;</b></a></td></tr></table></body></html>

View File

@ -0,0 +1 @@
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Part<EFBFBD>III.<2E>GIMP User Interface Library</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Library Reference Manual"><link rel="up" href="index.html" title="GIMP Library Reference Manual"><link rel="prev" href="libgimp-gimppatternselect.html" title="gimppatternselect"><link rel="next" href="libgimpui-hierarchy.html" title="Object Hierarchy"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gimpdefinitions.html" title="Part<72>I.<2E>GIMP Constants"><link rel="part" href="libgimp.html" title="Part<72>II.<2E>GIMP Library"><link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images"><link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties"><link rel="chapter" href="libgimp-data.html" title="Data Objects"><link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs"><link rel="part" href="libgimpui.html" title="Part<72>III.<2E>GIMP User Interface Library"><link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimp-gimppatternselect.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Library Reference Manual</th><td><a accesskey="n" href="libgimpui-hierarchy.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="part" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="libgimpui"></a>GIMP User Interface Library</h1></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimp-gimppatternselect.html"><b>&lt;&lt;<EFBFBD>gimppatternselect</b></a></td><td align="right"><a accesskey="n" href="libgimpui-hierarchy.html"><b>Object Hierarchy<68>&gt;&gt;</b></a></td></tr></table></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

View File

@ -0,0 +1,66 @@
.synopsis, .classsynopsis
{
background: #eeeeee;
border: solid 1px #aaaaaa;
padding: 0.5em;
}
.programlisting
{
background: #eeeeff;
border: solid 1px #aaaaff;
padding: 0.5em;
}
.variablelist
{
padding: 4px;
margin-left: 3em;
}
.variablelist td:first-child
{
vertical-align: top;
}
table.navigation
{
background: #ffeeee;
border: solid 1px #ffaaaa;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.navigation a
{
color: #770000;
}
.navigation a:visited
{
color: #550000;
}
.navigation .title
{
font-size: 200%;
}
div.refnamediv
{
margin-top: 2em;
}
div.gallery-float
{
float: left;
padding: 10px;
}
div.gallery-float img
{
border-style: none;
}
div.gallery-spacer
{
clear: both;
}
a
{
text-decoration: none;
}
a:hover
{
text-decoration: underline;
color: #FF0000;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B