Imported Upstream version 2.2.11

This commit is contained in:
Ari Pollak
2010-08-11 01:16:22 -04:00
parent c9211190ce
commit 36a37ecc21
253 changed files with 9385 additions and 8966 deletions

View File

@ -100,18 +100,18 @@ gboolean <a href="libgimp-gimplayer.html#gimp-layer-is-floating-sel">gimp_lay
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2591357"></a><h2>Description</h2>
<a name="id2592066"></a><h2>Description</h2>
<p>
Operations on a single layer.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2591368"></a><h2>Details</h2>
<a name="id2592076"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2591374"></a><h3>
<a name="id2592083"></a><h3>
<a name="gimp-layer-new"></a>gimp_layer_new ()</h3>
<a class="indexterm" name="id2591384"></a><pre class="programlisting">gint32 gimp_layer_new (gint32 image_ID,
<a class="indexterm" name="id2592093"></a><pre class="programlisting">gint32 gimp_layer_new (gint32 image_ID,
const gchar *name,
gint width,
gint height,
@ -189,9 +189,9 @@ should be set with explicit procedure calls.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2596048"></a><h3>
<a name="id2596491"></a><h3>
<a name="gimp-layer-copy"></a>gimp_layer_copy ()</h3>
<a class="indexterm" name="id2596058"></a><pre class="programlisting">gint32 gimp_layer_copy (gint32 layer_ID);</pre>
<a class="indexterm" name="id2596500"></a><pre class="programlisting">gint32 gimp_layer_copy (gint32 layer_ID);</pre>
<p>
Copy a layer.
</p>
@ -224,9 +224,9 @@ before you add the new layer to the image.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2596126"></a><h3>
<a name="id2596568"></a><h3>
<a name="gimp-layer-scale"></a>gimp_layer_scale ()</h3>
<a class="indexterm" name="id2596136"></a><pre class="programlisting">gboolean gimp_layer_scale (gint32 layer_ID,
<a class="indexterm" name="id2596578"></a><pre class="programlisting">gboolean gimp_layer_scale (gint32 layer_ID,
gint new_width,
gint new_height,
gboolean local_origin);</pre>
@ -280,9 +280,9 @@ to an image.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2596268"></a><h3>
<a name="id2596711"></a><h3>
<a name="gimp-layer-resize"></a>gimp_layer_resize ()</h3>
<a class="indexterm" name="id2596278"></a><pre class="programlisting">gboolean gimp_layer_resize (gint32 layer_ID,
<a class="indexterm" name="id2596721"></a><pre class="programlisting">gboolean gimp_layer_resize (gint32 layer_ID,
gint new_width,
gint new_height,
gint offx,
@ -342,9 +342,9 @@ operation only works if the layer has been added to an image.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2596434"></a><h3>
<a name="id2596876"></a><h3>
<a name="gimp-layer-resize-to-image-size"></a>gimp_layer_resize_to_image_size ()</h3>
<a class="indexterm" name="id2596443"></a><pre class="programlisting">gboolean gimp_layer_resize_to_image_size (gint32 layer_ID);</pre>
<a class="indexterm" name="id2596884"></a><pre class="programlisting">gboolean gimp_layer_resize_to_image_size (gint32 layer_ID);</pre>
<p>
Resize a layer to the image size.
</p>
@ -374,9 +374,9 @@ are equal to the width and height of its image container.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2596510"></a><h3>
<a name="id2596950"></a><h3>
<a name="gimp-layer-translate"></a>gimp_layer_translate ()</h3>
<a class="indexterm" name="id2596519"></a><pre class="programlisting">gboolean gimp_layer_translate (gint32 layer_ID,
<a class="indexterm" name="id2596959"></a><pre class="programlisting">gboolean gimp_layer_translate (gint32 layer_ID,
gint offx,
gint offy);</pre>
<p>
@ -424,9 +424,9 @@ the specified offsets.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2596631"></a><h3>
<a name="id2597071"></a><h3>
<a name="gimp-layer-add-alpha"></a>gimp_layer_add_alpha ()</h3>
<a class="indexterm" name="id2596640"></a><pre class="programlisting">gboolean gimp_layer_add_alpha (gint32 layer_ID);</pre>
<a class="indexterm" name="id2597080"></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>
@ -460,9 +460,9 @@ and INDEXED to INDEXEDA.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2596710"></a><h3>
<a name="id2597150"></a><h3>
<a name="gimp-layer-set-offsets"></a>gimp_layer_set_offsets ()</h3>
<a class="indexterm" name="id2596719"></a><pre class="programlisting">gboolean gimp_layer_set_offsets (gint32 layer_ID,
<a class="indexterm" name="id2597159"></a><pre class="programlisting">gboolean gimp_layer_set_offsets (gint32 layer_ID,
gint offx,
gint offy);</pre>
<p>
@ -507,9 +507,9 @@ operation is valid only on layers which have been added to an image.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2596828"></a><h3>
<a name="id2597268"></a><h3>
<a name="gimp-layer-create-mask"></a>gimp_layer_create_mask ()</h3>
<a class="indexterm" name="id2596837"></a><pre class="programlisting">gint32 gimp_layer_create_mask (gint32 layer_ID,
<a class="indexterm" name="id2597277"></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.
@ -554,9 +554,9 @@ to 'gimp_layer_add_mask'.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2596902"></a><h3>
<a name="id2597340"></a><h3>
<a name="gimp-layer-from-mask"></a>gimp_layer_from_mask ()</h3>
<a class="indexterm" name="id2596911"></a><pre class="programlisting">gint32 gimp_layer_from_mask (gint32 mask_ID);</pre>
<a class="indexterm" name="id2597349"></a><pre class="programlisting">gint32 gimp_layer_from_mask (gint32 mask_ID);</pre>
<p>
Get the specified mask's layer.
</p>
@ -589,9 +589,9 @@ exists.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2596980"></a><h3>
<a name="id2597418"></a><h3>
<a name="gimp-layer-get-mask"></a>gimp_layer_get_mask ()</h3>
<a class="indexterm" name="id2596990"></a><pre class="programlisting">gint32 gimp_layer_get_mask (gint32 layer_ID);</pre>
<a class="indexterm" name="id2597428"></a><pre class="programlisting">gint32 gimp_layer_get_mask (gint32 layer_ID);</pre>
<p>
Get the specified layer's mask if it exists.
</p>
@ -621,9 +621,9 @@ exists.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2597055"></a><h3>
<a name="id2597494"></a><h3>
<a name="gimp-layer-add-mask"></a>gimp_layer_add_mask ()</h3>
<a class="indexterm" name="id2597066"></a><pre class="programlisting">gboolean gimp_layer_add_mask (gint32 layer_ID,
<a class="indexterm" name="id2597504"></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.
@ -664,9 +664,9 @@ have been created for use with the specified image.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2597158"></a><h3>
<a name="id2597595"></a><h3>
<a name="gimp-layer-remove-mask"></a>gimp_layer_remove_mask ()</h3>
<a class="indexterm" name="id2597167"></a><pre class="programlisting">gboolean gimp_layer_remove_mask (gint32 layer_ID,
<a class="indexterm" name="id2597604"></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.
@ -703,9 +703,9 @@ the mask doesn't exist, an error is returned.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2597255"></a><h3>
<a name="id2597692"></a><h3>
<a name="gimp-layer-new-from-drawable"></a>gimp_layer_new_from_drawable ()</h3>
<a class="indexterm" name="id2597266"></a><pre class="programlisting">gint32 gimp_layer_new_from_drawable (gint32 drawable_ID,
<a class="indexterm" name="id2597701"></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.
@ -745,9 +745,9 @@ modes, and offsets should be set with explicit procedure calls.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2597359"></a><h3>
<a name="id2597793"></a><h3>
<a name="gimp-layer-get-preserve-trans"></a>gimp_layer_get_preserve_trans ()</h3>
<a class="indexterm" name="id2597370"></a><pre class="programlisting">gboolean gimp_layer_get_preserve_trans (gint32 layer_ID);</pre>
<a class="indexterm" name="id2597802"></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>
@ -777,9 +777,9 @@ setting.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2597437"></a><h3>
<a name="id2597868"></a><h3>
<a name="gimp-layer-set-preserve-trans"></a>gimp_layer_set_preserve_trans ()</h3>
<a class="indexterm" name="id2597448"></a><pre class="programlisting">gboolean gimp_layer_set_preserve_trans (gint32 layer_ID,
<a class="indexterm" name="id2597878"></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.
@ -816,9 +816,9 @@ setting.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2597536"></a><h3>
<a name="id2597966"></a><h3>
<a name="gimp-layer-get-apply-mask"></a>gimp_layer_get_apply_mask ()</h3>
<a class="indexterm" name="id2597546"></a><pre class="programlisting">gboolean gimp_layer_get_apply_mask (gint32 layer_ID);</pre>
<a class="indexterm" name="id2597976"></a><pre class="programlisting">gboolean gimp_layer_get_apply_mask (gint32 layer_ID);</pre>
<p>
Get the apply mask of the specified layer.
</p>
@ -849,9 +849,9 @@ being composited with the layer's alpha channel.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2597613"></a><h3>
<a name="id2598043"></a><h3>
<a name="gimp-layer-set-apply-mask"></a>gimp_layer_set_apply_mask ()</h3>
<a class="indexterm" name="id2597622"></a><pre class="programlisting">gboolean gimp_layer_set_apply_mask (gint32 layer_ID,
<a class="indexterm" name="id2598053"></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.
@ -889,9 +889,9 @@ If there is no layer mask, this function will return an error.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2597711"></a><h3>
<a name="id2598141"></a><h3>
<a name="gimp-layer-get-show-mask"></a>gimp_layer_get_show_mask ()</h3>
<a class="indexterm" name="id2597720"></a><pre class="programlisting">gboolean gimp_layer_get_show_mask (gint32 layer_ID);</pre>
<a class="indexterm" name="id2598150"></a><pre class="programlisting">gboolean gimp_layer_get_show_mask (gint32 layer_ID);</pre>
<p>
Get the show mask of the specified layer.
</p>
@ -922,9 +922,9 @@ shown instead of the layer.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2597787"></a><h3>
<a name="id2598217"></a><h3>
<a name="gimp-layer-set-show-mask"></a>gimp_layer_set_show_mask ()</h3>
<a class="indexterm" name="id2597796"></a><pre class="programlisting">gboolean gimp_layer_set_show_mask (gint32 layer_ID,
<a class="indexterm" name="id2598226"></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.
@ -963,9 +963,9 @@ function returns an error.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2597885"></a><h3>
<a name="id2598315"></a><h3>
<a name="gimp-layer-get-edit-mask"></a>gimp_layer_get_edit_mask ()</h3>
<a class="indexterm" name="id2597894"></a><pre class="programlisting">gboolean gimp_layer_get_edit_mask (gint32 layer_ID);</pre>
<a class="indexterm" name="id2598324"></a><pre class="programlisting">gboolean gimp_layer_get_edit_mask (gint32 layer_ID);</pre>
<p>
Get the show mask of the specified layer.
</p>
@ -996,9 +996,9 @@ and not the layer.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2597960"></a><h3>
<a name="id2598390"></a><h3>
<a name="gimp-layer-set-edit-mask"></a>gimp_layer_set_edit_mask ()</h3>
<a class="indexterm" name="id2597969"></a><pre class="programlisting">gboolean gimp_layer_set_edit_mask (gint32 layer_ID,
<a class="indexterm" name="id2598399"></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.
@ -1037,9 +1037,9 @@ return an error.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2598058"></a><h3>
<a name="id2598488"></a><h3>
<a name="gimp-layer-get-opacity"></a>gimp_layer_get_opacity ()</h3>
<a class="indexterm" name="id2598067"></a><pre class="programlisting">gdouble gimp_layer_get_opacity (gint32 layer_ID);</pre>
<a class="indexterm" name="id2598497"></a><pre class="programlisting">gdouble gimp_layer_get_opacity (gint32 layer_ID);</pre>
<p>
Get the opacity of the specified layer.
</p>
@ -1068,9 +1068,9 @@ This procedure returns the specified layer's opacity.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2598132"></a><h3>
<a name="id2598562"></a><h3>
<a name="gimp-layer-set-opacity"></a>gimp_layer_set_opacity ()</h3>
<a class="indexterm" name="id2598141"></a><pre class="programlisting">gboolean gimp_layer_set_opacity (gint32 layer_ID,
<a class="indexterm" name="id2598571"></a><pre class="programlisting">gboolean gimp_layer_set_opacity (gint32 layer_ID,
gdouble opacity);</pre>
<p>
Set the opacity of the specified layer.
@ -1106,9 +1106,9 @@ This procedure sets the specified layer's opacity.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2598226"></a><h3>
<a name="id2598657"></a><h3>
<a name="gimp-layer-get-mode"></a>gimp_layer_get_mode ()</h3>
<a class="indexterm" name="id2598237"></a><pre class="programlisting"><a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> gimp_layer_get_mode (gint32 layer_ID);</pre>
<a class="indexterm" name="id2598667"></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>
@ -1137,9 +1137,9 @@ This procedure returns the specified layer's combination mode.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2598301"></a><h3>
<a name="id2598731"></a><h3>
<a name="gimp-layer-set-mode"></a>gimp_layer_set_mode ()</h3>
<a class="indexterm" name="id2598311"></a><pre class="programlisting">gboolean gimp_layer_set_mode (gint32 layer_ID,
<a class="indexterm" name="id2598741"></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.
@ -1175,9 +1175,9 @@ This procedure sets the specified layer's combination mode.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2598398"></a><h3>
<a name="id2598828"></a><h3>
<a name="gimp-layer-is-floating-sel"></a>gimp_layer_is_floating_sel ()</h3>
<a class="indexterm" name="id2598407"></a><pre class="programlisting">gboolean gimp_layer_is_floating_sel (gint32 layer_ID);</pre>
<a class="indexterm" name="id2598837"></a><pre class="programlisting">gboolean gimp_layer_is_floating_sel (gint32 layer_ID);</pre>
<p>
Is the specified layer a floating selection?
</p>