674 lines
65 KiB
HTML
674 lines
65 KiB
HTML
<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 I. GIMP Constants"><link rel="part" href="libgimp.html" title="Part II. 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 III. 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 — 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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pressure</tt></i> :</span></td><td> The pressure of the airbrush strokes.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i> :</span></td><td> The color to select.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>threshold</tt></i> :</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> :</span></td><td> The selection operation.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>antialias</tt></i> :</span></td><td> Antialiasing.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather</tt></i> :</span></td><td> Feather option for selections.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather_radius</tt></i> :</span></td><td> Radius for feather operation.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>sample_merged</tt></i> :</span></td><td> Use the composite image, not the drawable.
|
||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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->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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_drawable_ID</tt></i> :</span></td><td> The source drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>clone_type</tt></i> :</span></td><td> The type of clone.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>src_x</tt></i> :</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> :</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> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pressure</tt></i> :</span></td><td> The pressure.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>convolve_type</tt></i> :</span></td><td> Convolve type.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>exposure</tt></i> :</span></td><td> The exposer of the strokes.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dodgeburn_type</tt></i> :</span></td><td> The type either dodge or burn.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dodgeburn_mode</tt></i> :</span></td><td> The mode.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</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> :</span></td><td> The image.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i> :</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> :</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> :</span></td><td> The width of the ellipse.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i> :</span></td><td> The height of the ellipse.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>operation</tt></i> :</span></td><td> The selection operation.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>antialias</tt></i> :</span></td><td> Antialiasing.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather</tt></i> :</span></td><td> Feather option for selections.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather_radius</tt></i> :</span></td><td> Radius for feather operation.
|
||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</span></td><td> %<tt class="literal">desc</tt>%%.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>method</tt></i> :</span></td><td> %<tt class="literal">desc</tt>%%.
|
||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>flip_type</tt></i> :</span></td><td> Type of flip.
|
||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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> :</span></td><td> The image.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_segs</tt></i> :</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> :</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> :</span></td><td> The selection operation.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>antialias</tt></i> :</span></td><td> Antialiasing.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather</tt></i> :</span></td><td> Feather option for selections.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather_radius</tt></i> :</span></td><td> Radius for feather operation.
|
||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i> :</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> :</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> :</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> :</span></td><td> The selection operation.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>antialias</tt></i> :</span></td><td> Antialiasing.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather</tt></i> :</span></td><td> Feather option for selections.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather_radius</tt></i> :</span></td><td> Radius for feather operation.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>sample_merged</tt></i> :</span></td><td> Use the composite image, not the drawable.
|
||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>fade_out</tt></i> :</span></td><td> Fade out parameter.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</span></td><td> %<tt class="literal">desc</tt>%%.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>gradient_length</tt></i> :</span></td><td> Length of gradient to draw.
|
||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i> :</span></td><td> Whether to use interpolation.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x0</tt></i> :</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> :</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> :</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> :</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> :</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> :</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> :</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> :</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> :</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> :</span></td><td> The image.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x</tt></i> :</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> :</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> :</span></td><td> The width of the rectangle.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>height</tt></i> :</span></td><td> The height of the rectangle.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>operation</tt></i> :</span></td><td> The selection operation.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather</tt></i> :</span></td><td> Feather option for selections.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>feather_radius</tt></i> :</span></td><td> Radius for feather operation.
|
||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i> :</span></td><td> Whether to use interpolation.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>angle</tt></i> :</span></td><td> The angle of rotation (radians).
|
||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i> :</span></td><td> Whether to use interpolation.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>x0</tt></i> :</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> :</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> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i> :</span></td><td> Whether to use interpolation.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>shear_type</tt></i> :</span></td><td> Type of shear.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>magnitude</tt></i> :</span></td><td> The magnitude of the shear.
|
||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pressure</tt></i> :</span></td><td> The pressure of the smudge strokes.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>num_strokes</tt></i> :</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> :</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> :</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> :</span></td><td> The affected drawable.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>interpolation</tt></i> :</span></td><td> Whether to use interpolation.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>source_x</tt></i> :</span></td><td> X coordinate of the transformation center.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>source_y</tt></i> :</span></td><td> Y coordinate of the transformation center.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>scale_x</tt></i> :</span></td><td> Amount to scale in x direction.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>scale_y</tt></i> :</span></td><td> Amount to scale in y direction.
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>angle</tt></i> :</span></td><td> The angle of rotation (radians).
|
||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>dest_x</tt></i> :</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> :</span></td><td> Y coordinate of where the centre goes.
|
||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</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><< gimptile</b></a></td><td align="right"><a accesskey="n" href="libgimp-gimpundo.html"><b>gimpundo >></b></a></td></tr></table></body></html>
|