Imported Upstream version 2.3.7
This commit is contained in:
@ -109,18 +109,18 @@ gboolean <a href="libgimp-gimplayer.html#gimp-layer-is-floating-sel">gimp_lay
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2595935"></a><h2>Description</h2>
|
||||
<a name="id2598722"></a><h2>Description</h2>
|
||||
<p>
|
||||
Operations on a single layer.
|
||||
|
||||
</p>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2595946"></a><h2>Details</h2>
|
||||
<a name="id2598733"></a><h2>Details</h2>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2595952"></a><h3>
|
||||
<a name="id2598739"></a><h3>
|
||||
<a name="gimp-layer-new"></a>gimp_layer_new ()</h3>
|
||||
<a class="indexterm" name="id2595962"></a><pre class="programlisting">gint32 gimp_layer_new (gint32 image_ID,
|
||||
<a class="indexterm" name="id2598749"></a><pre class="programlisting">gint32 gimp_layer_new (gint32 image_ID,
|
||||
const gchar *name,
|
||||
gint width,
|
||||
gint height,
|
||||
@ -198,9 +198,9 @@ should be set with explicit procedure calls.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2600914"></a><h3>
|
||||
<a name="id2601659"></a><h3>
|
||||
<a name="gimp-layer-copy"></a>gimp_layer_copy ()</h3>
|
||||
<a class="indexterm" name="id2600924"></a><pre class="programlisting">gint32 gimp_layer_copy (gint32 layer_ID);</pre>
|
||||
<a class="indexterm" name="id2601669"></a><pre class="programlisting">gint32 gimp_layer_copy (gint32 layer_ID);</pre>
|
||||
<p>
|
||||
Copy a layer.
|
||||
</p>
|
||||
@ -233,9 +233,9 @@ before you add the new layer to the image.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2600992"></a><h3>
|
||||
<a name="id2601737"></a><h3>
|
||||
<a name="gimp-layer-scale"></a>gimp_layer_scale ()</h3>
|
||||
<a class="indexterm" name="id2601002"></a><pre class="programlisting">gboolean gimp_layer_scale (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2601747"></a><pre class="programlisting">gboolean gimp_layer_scale (gint32 layer_ID,
|
||||
gint new_width,
|
||||
gint new_height,
|
||||
gboolean local_origin);</pre>
|
||||
@ -289,9 +289,9 @@ to an image.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2601134"></a><h3>
|
||||
<a name="id2601879"></a><h3>
|
||||
<a name="gimp-layer-resize"></a>gimp_layer_resize ()</h3>
|
||||
<a class="indexterm" name="id2601145"></a><pre class="programlisting">gboolean gimp_layer_resize (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2601889"></a><pre class="programlisting">gboolean gimp_layer_resize (gint32 layer_ID,
|
||||
gint new_width,
|
||||
gint new_height,
|
||||
gint offx,
|
||||
@ -351,9 +351,9 @@ operation only works if the layer has been added to an image.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2601299"></a><h3>
|
||||
<a name="id2602044"></a><h3>
|
||||
<a name="gimp-layer-resize-to-image-size"></a>gimp_layer_resize_to_image_size ()</h3>
|
||||
<a class="indexterm" name="id2601308"></a><pre class="programlisting">gboolean gimp_layer_resize_to_image_size (gint32 layer_ID);</pre>
|
||||
<a class="indexterm" name="id2602053"></a><pre class="programlisting">gboolean gimp_layer_resize_to_image_size (gint32 layer_ID);</pre>
|
||||
<p>
|
||||
Resize a layer to the image size.
|
||||
</p>
|
||||
@ -383,9 +383,9 @@ are equal to the width and height of its image container.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2601372"></a><h3>
|
||||
<a name="id2602117"></a><h3>
|
||||
<a name="gimp-layer-translate"></a>gimp_layer_translate ()</h3>
|
||||
<a class="indexterm" name="id2601381"></a><pre class="programlisting">gboolean gimp_layer_translate (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2602126"></a><pre class="programlisting">gboolean gimp_layer_translate (gint32 layer_ID,
|
||||
gint offx,
|
||||
gint offy);</pre>
|
||||
<p>
|
||||
@ -433,9 +433,9 @@ the specified offsets.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2601493"></a><h3>
|
||||
<a name="id2602238"></a><h3>
|
||||
<a name="gimp-layer-add-alpha"></a>gimp_layer_add_alpha ()</h3>
|
||||
<a class="indexterm" name="id2601502"></a><pre class="programlisting">gboolean gimp_layer_add_alpha (gint32 layer_ID);</pre>
|
||||
<a class="indexterm" name="id2602246"></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>
|
||||
@ -469,9 +469,9 @@ and INDEXED to INDEXEDA.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2601572"></a><h3>
|
||||
<a name="id2602316"></a><h3>
|
||||
<a name="gimp-layer-set-offsets"></a>gimp_layer_set_offsets ()</h3>
|
||||
<a class="indexterm" name="id2601580"></a><pre class="programlisting">gboolean gimp_layer_set_offsets (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2602325"></a><pre class="programlisting">gboolean gimp_layer_set_offsets (gint32 layer_ID,
|
||||
gint offx,
|
||||
gint offy);</pre>
|
||||
<p>
|
||||
@ -516,9 +516,9 @@ operation is valid only on layers which have been added to an image.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2601688"></a><h3>
|
||||
<a name="id2602433"></a><h3>
|
||||
<a name="gimp-layer-create-mask"></a>gimp_layer_create_mask ()</h3>
|
||||
<a class="indexterm" name="id2601697"></a><pre class="programlisting">gint32 gimp_layer_create_mask (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2602442"></a><pre class="programlisting">gint32 gimp_layer_create_mask (gint32 layer_ID,
|
||||
<a
|
||||
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpAddMaskType"
|
||||
>GimpAddMaskType</a> mask_type);</pre>
|
||||
@ -565,9 +565,9 @@ to 'gimp_layer_add_mask'.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2601792"></a><h3>
|
||||
<a name="id2602537"></a><h3>
|
||||
<a name="gimp-layer-from-mask"></a>gimp_layer_from_mask ()</h3>
|
||||
<a class="indexterm" name="id2601801"></a><pre class="programlisting">gint32 gimp_layer_from_mask (gint32 mask_ID);</pre>
|
||||
<a class="indexterm" name="id2602546"></a><pre class="programlisting">gint32 gimp_layer_from_mask (gint32 mask_ID);</pre>
|
||||
<p>
|
||||
Get the specified mask's layer.
|
||||
</p>
|
||||
@ -600,9 +600,9 @@ exists.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2601869"></a><h3>
|
||||
<a name="id2602614"></a><h3>
|
||||
<a name="gimp-layer-get-mask"></a>gimp_layer_get_mask ()</h3>
|
||||
<a class="indexterm" name="id2601879"></a><pre class="programlisting">gint32 gimp_layer_get_mask (gint32 layer_ID);</pre>
|
||||
<a class="indexterm" name="id2602624"></a><pre class="programlisting">gint32 gimp_layer_get_mask (gint32 layer_ID);</pre>
|
||||
<p>
|
||||
Get the specified layer's mask if it exists.
|
||||
</p>
|
||||
@ -632,9 +632,9 @@ exists.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2601944"></a><h3>
|
||||
<a name="id2602689"></a><h3>
|
||||
<a name="gimp-layer-add-mask"></a>gimp_layer_add_mask ()</h3>
|
||||
<a class="indexterm" name="id2601954"></a><pre class="programlisting">gboolean gimp_layer_add_mask (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2602700"></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.
|
||||
@ -675,9 +675,9 @@ have been created for use with the specified image.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2602045"></a><h3>
|
||||
<a name="id2602791"></a><h3>
|
||||
<a name="gimp-layer-remove-mask"></a>gimp_layer_remove_mask ()</h3>
|
||||
<a class="indexterm" name="id2602054"></a><pre class="programlisting">gboolean gimp_layer_remove_mask (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2602800"></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.
|
||||
@ -714,9 +714,9 @@ the mask doesn't exist, an error is returned.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2602142"></a><h3>
|
||||
<a name="id2602888"></a><h3>
|
||||
<a name="gimp-layer-new-from-drawable"></a>gimp_layer_new_from_drawable ()</h3>
|
||||
<a class="indexterm" name="id2602153"></a><pre class="programlisting">gint32 gimp_layer_new_from_drawable (gint32 drawable_ID,
|
||||
<a class="indexterm" name="id2602897"></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.
|
||||
@ -756,9 +756,9 @@ modes, and offsets should be set with explicit procedure calls.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2602246"></a><h3>
|
||||
<a name="id2602990"></a><h3>
|
||||
<a name="gimp-layer-get-lock-alpha"></a>gimp_layer_get_lock_alpha ()</h3>
|
||||
<a class="indexterm" name="id2602255"></a><pre class="programlisting">gboolean gimp_layer_get_lock_alpha (gint32 layer_ID);</pre>
|
||||
<a class="indexterm" name="id2603000"></a><pre class="programlisting">gboolean gimp_layer_get_lock_alpha (gint32 layer_ID);</pre>
|
||||
<p>
|
||||
Get the lock alpha channel setting of the specified layer.
|
||||
</p>
|
||||
@ -788,9 +788,9 @@ setting.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2602322"></a><h3>
|
||||
<a name="id2603066"></a><h3>
|
||||
<a name="gimp-layer-set-lock-alpha"></a>gimp_layer_set_lock_alpha ()</h3>
|
||||
<a class="indexterm" name="id2602331"></a><pre class="programlisting">gboolean gimp_layer_set_lock_alpha (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2603075"></a><pre class="programlisting">gboolean gimp_layer_set_lock_alpha (gint32 layer_ID,
|
||||
gboolean lock_alpha);</pre>
|
||||
<p>
|
||||
Set the lock alpha channel setting of the specified layer.
|
||||
@ -827,9 +827,9 @@ setting.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2602419"></a><h3>
|
||||
<a name="id2603163"></a><h3>
|
||||
<a name="gimp-layer-get-preserve-trans"></a>gimp_layer_get_preserve_trans ()</h3>
|
||||
<a class="indexterm" name="id2602430"></a><pre class="programlisting">gboolean gimp_layer_get_preserve_trans (gint32 layer_ID);</pre>
|
||||
<a class="indexterm" name="id2603174"></a><pre class="programlisting">gboolean gimp_layer_get_preserve_trans (gint32 layer_ID);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
<p><code class="literal">gimp_layer_get_preserve_trans</code> is deprecated and should not be used in newly-written code.</p>
|
||||
@ -859,9 +859,9 @@ This procedure is deprecated! Use <a href="libgimp-gimplayer.html#gimp-layer-get
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2602513"></a><h3>
|
||||
<a name="id2603258"></a><h3>
|
||||
<a name="gimp-layer-set-preserve-trans"></a>gimp_layer_set_preserve_trans ()</h3>
|
||||
<a class="indexterm" name="id2602524"></a><pre class="programlisting">gboolean gimp_layer_set_preserve_trans (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2603269"></a><pre class="programlisting">gboolean gimp_layer_set_preserve_trans (gint32 layer_ID,
|
||||
gboolean preserve_trans);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
@ -898,9 +898,9 @@ This procedure is deprecated! Use <a href="libgimp-gimplayer.html#gimp-layer-set
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2602629"></a><h3>
|
||||
<a name="id2603374"></a><h3>
|
||||
<a name="gimp-layer-get-apply-mask"></a>gimp_layer_get_apply_mask ()</h3>
|
||||
<a class="indexterm" name="id2602639"></a><pre class="programlisting">gboolean gimp_layer_get_apply_mask (gint32 layer_ID);</pre>
|
||||
<a class="indexterm" name="id2603383"></a><pre class="programlisting">gboolean gimp_layer_get_apply_mask (gint32 layer_ID);</pre>
|
||||
<p>
|
||||
Get the apply mask of the specified layer.
|
||||
</p>
|
||||
@ -931,9 +931,9 @@ being composited with the layer's alpha channel.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2602706"></a><h3>
|
||||
<a name="id2603450"></a><h3>
|
||||
<a name="gimp-layer-set-apply-mask"></a>gimp_layer_set_apply_mask ()</h3>
|
||||
<a class="indexterm" name="id2602716"></a><pre class="programlisting">gboolean gimp_layer_set_apply_mask (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2603460"></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.
|
||||
@ -971,9 +971,9 @@ If there is no layer mask, this function will return an error.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2602804"></a><h3>
|
||||
<a name="id2603549"></a><h3>
|
||||
<a name="gimp-layer-get-show-mask"></a>gimp_layer_get_show_mask ()</h3>
|
||||
<a class="indexterm" name="id2602813"></a><pre class="programlisting">gboolean gimp_layer_get_show_mask (gint32 layer_ID);</pre>
|
||||
<a class="indexterm" name="id2603558"></a><pre class="programlisting">gboolean gimp_layer_get_show_mask (gint32 layer_ID);</pre>
|
||||
<p>
|
||||
Get the show mask of the specified layer.
|
||||
</p>
|
||||
@ -1004,9 +1004,9 @@ shown instead of the layer.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2602880"></a><h3>
|
||||
<a name="id2603624"></a><h3>
|
||||
<a name="gimp-layer-set-show-mask"></a>gimp_layer_set_show_mask ()</h3>
|
||||
<a class="indexterm" name="id2602889"></a><pre class="programlisting">gboolean gimp_layer_set_show_mask (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2603633"></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.
|
||||
@ -1045,9 +1045,9 @@ function returns an error.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2602978"></a><h3>
|
||||
<a name="id2603722"></a><h3>
|
||||
<a name="gimp-layer-get-edit-mask"></a>gimp_layer_get_edit_mask ()</h3>
|
||||
<a class="indexterm" name="id2602987"></a><pre class="programlisting">gboolean gimp_layer_get_edit_mask (gint32 layer_ID);</pre>
|
||||
<a class="indexterm" name="id2603731"></a><pre class="programlisting">gboolean gimp_layer_get_edit_mask (gint32 layer_ID);</pre>
|
||||
<p>
|
||||
Get the edit mask of the specified layer.
|
||||
</p>
|
||||
@ -1078,9 +1078,9 @@ and not the layer.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2603053"></a><h3>
|
||||
<a name="id2603798"></a><h3>
|
||||
<a name="gimp-layer-set-edit-mask"></a>gimp_layer_set_edit_mask ()</h3>
|
||||
<a class="indexterm" name="id2603062"></a><pre class="programlisting">gboolean gimp_layer_set_edit_mask (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2603807"></a><pre class="programlisting">gboolean gimp_layer_set_edit_mask (gint32 layer_ID,
|
||||
gboolean edit_mask);</pre>
|
||||
<p>
|
||||
Set the edit mask of the specified layer.
|
||||
@ -1119,9 +1119,9 @@ return an error.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2603151"></a><h3>
|
||||
<a name="id2603895"></a><h3>
|
||||
<a name="gimp-layer-get-opacity"></a>gimp_layer_get_opacity ()</h3>
|
||||
<a class="indexterm" name="id2603160"></a><pre class="programlisting">gdouble gimp_layer_get_opacity (gint32 layer_ID);</pre>
|
||||
<a class="indexterm" name="id2603904"></a><pre class="programlisting">gdouble gimp_layer_get_opacity (gint32 layer_ID);</pre>
|
||||
<p>
|
||||
Get the opacity of the specified layer.
|
||||
</p>
|
||||
@ -1150,9 +1150,9 @@ This procedure returns the specified layer's opacity.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2603225"></a><h3>
|
||||
<a name="id2603969"></a><h3>
|
||||
<a name="gimp-layer-set-opacity"></a>gimp_layer_set_opacity ()</h3>
|
||||
<a class="indexterm" name="id2603234"></a><pre class="programlisting">gboolean gimp_layer_set_opacity (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2603978"></a><pre class="programlisting">gboolean gimp_layer_set_opacity (gint32 layer_ID,
|
||||
gdouble opacity);</pre>
|
||||
<p>
|
||||
Set the opacity of the specified layer.
|
||||
@ -1188,9 +1188,9 @@ This procedure sets the specified layer's opacity.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2603320"></a><h3>
|
||||
<a name="id2604064"></a><h3>
|
||||
<a name="gimp-layer-get-mode"></a>gimp_layer_get_mode ()</h3>
|
||||
<a class="indexterm" name="id2603330"></a><pre class="programlisting"><a href="libgimp-gimpenums.html#GimpLayerModeEffects">GimpLayerModeEffects</a> gimp_layer_get_mode (gint32 layer_ID);</pre>
|
||||
<a class="indexterm" name="id2604074"></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>
|
||||
@ -1219,9 +1219,9 @@ This procedure returns the specified layer's combination mode.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2603394"></a><h3>
|
||||
<a name="id2604138"></a><h3>
|
||||
<a name="gimp-layer-set-mode"></a>gimp_layer_set_mode ()</h3>
|
||||
<a class="indexterm" name="id2603404"></a><pre class="programlisting">gboolean gimp_layer_set_mode (gint32 layer_ID,
|
||||
<a class="indexterm" name="id2604149"></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.
|
||||
@ -1257,9 +1257,9 @@ This procedure sets the specified layer's combination mode.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2603491"></a><h3>
|
||||
<a name="id2604235"></a><h3>
|
||||
<a name="gimp-layer-is-floating-sel"></a>gimp_layer_is_floating_sel ()</h3>
|
||||
<a class="indexterm" name="id2603500"></a><pre class="programlisting">gboolean gimp_layer_is_floating_sel (gint32 layer_ID);</pre>
|
||||
<a class="indexterm" name="id2604245"></a><pre class="programlisting">gboolean gimp_layer_is_floating_sel (gint32 layer_ID);</pre>
|
||||
<p>
|
||||
Is the specified layer a floating selection?
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user