Imported Upstream version 2.3.13
This commit is contained in:
@ -18,10 +18,10 @@
|
||||
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
|
||||
<link rel="part" href="libgimpui.html" title="Part III. GIMP User Interface Library">
|
||||
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
|
||||
<link rel="index" href="ix01.html" title="Index">
|
||||
<link rel="index" href="ix02.html" title="Index of new symbols in GIMP 2.2">
|
||||
<link rel="index" href="ix03.html" title="Index of new symbols in GIMP 2.4">
|
||||
<link rel="index" href="ix04.html" title="Index of deprecated symbols">
|
||||
<link rel="index" href="libgimp-index.html" title="Index">
|
||||
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
|
||||
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
|
||||
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
||||
@ -32,16 +32,16 @@
|
||||
<th width="100%" align="center">GIMP Library Reference Manual</th>
|
||||
<td><a accesskey="n" href="libgimp-gimppixelfetcher.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
||||
</tr>
|
||||
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2557933" class="shortcut">Top</a>
|
||||
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2580600" class="shortcut">Top</a>
|
||||
 | 
|
||||
<a href="#id2630934" class="shortcut">Description</a></nobr></td></tr>
|
||||
<a href="#id2632213" class="shortcut">Description</a></nobr></td></tr>
|
||||
</table>
|
||||
<div class="refentry" lang="en">
|
||||
<a name="libgimp-gimppaths"></a><div class="titlepage"></div>
|
||||
<div class="refnamediv"><table width="100%"><tr>
|
||||
<td valign="top">
|
||||
<h2>
|
||||
<a name="id2557933"></a><span class="refentrytitle">gimppaths</span>
|
||||
<a name="id2580600"></a><span class="refentrytitle">gimppaths</span>
|
||||
</h2>
|
||||
<p>gimppaths — Operations related to paths.</p>
|
||||
</td>
|
||||
@ -100,25 +100,20 @@ gboolean <a href="libgimp-gimppaths.html#gimp-path-import">gimp_path_import</
|
||||
const gchar *filename,
|
||||
gboolean merge,
|
||||
gboolean scale);
|
||||
gboolean <a href="libgimp-gimppaths.html#gimp-path-import-string">gimp_path_import_string</a> (gint32 image_ID,
|
||||
const gchar *string,
|
||||
gint length,
|
||||
gboolean merge,
|
||||
gboolean scale);
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2630934"></a><h2>Description</h2>
|
||||
<a name="id2632213"></a><h2>Description</h2>
|
||||
<p>
|
||||
Operations related to paths.
|
||||
</p>
|
||||
</div>
|
||||
<div class="refsect1" lang="en">
|
||||
<a name="id2630949"></a><h2>Details</h2>
|
||||
<a name="id2632228"></a><h2>Details</h2>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2630960"></a><h3>
|
||||
<a name="id2632239"></a><h3>
|
||||
<a name="gimp-path-list"></a>gimp_path_list ()</h3>
|
||||
<a class="indexterm" name="id2630975"></a><pre class="programlisting">gchar** gimp_path_list (gint32 image_ID,
|
||||
<a class="indexterm" name="id2632254"></a><pre class="programlisting">gchar** gimp_path_list (gint32 image_ID,
|
||||
gint *num_paths);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
@ -133,20 +128,17 @@ This procedure is deprecated! Use <a href="libgimp-gimpimage.html#gimp-image-get
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image to list the paths from.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>num_paths</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>num_paths</code></em> :</span></td>
|
||||
<td> The number of paths returned.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> List of the paths belonging to this image.
|
||||
</td>
|
||||
</tr>
|
||||
@ -155,18 +147,20 @@ This procedure is deprecated! Use <a href="libgimp-gimpimage.html#gimp-image-get
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2631077"></a><h3>
|
||||
<a name="id2630847"></a><h3>
|
||||
<a name="gimp-path-get-points"></a>gimp_path_get_points ()</h3>
|
||||
<a class="indexterm" name="id2631088"></a><pre class="programlisting">gint gimp_path_get_points (gint32 image_ID,
|
||||
<a class="indexterm" name="id2630861"></a><pre class="programlisting">gint gimp_path_get_points (gint32 image_ID,
|
||||
const gchar *name,
|
||||
gint *path_closed,
|
||||
gint *num_path_point_details,
|
||||
gdouble **points_pairs);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
<p><code class="literal">gimp_path_get_points</code> is deprecated and should not be used in newly-written code.</p>
|
||||
</div>
|
||||
<p>
|
||||
List the points associated with the named path.
|
||||
</p>
|
||||
<p>
|
||||
List the points associated with the named path.</p>
|
||||
This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors-stroke-get-points"><code class="function">gimp_vectors_stroke_get_points()</code></a>
|
||||
instead.</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
@ -174,38 +168,32 @@ List the points associated with the named path.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image to list the paths from.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td> The name of the path whose points should be listed.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>path_closed</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>path_closed</code></em> :</span></td>
|
||||
<td> Return if the path is closed. (0 = path open, 1 = path closed).
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>num_path_point_details</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>num_path_point_details</code></em> :</span></td>
|
||||
<td> The number of points returned. Each point is made up of (x, y, pnt_type) of floats.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>points_pairs</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>points_pairs</code></em> :</span></td>
|
||||
<td> The points in the path represented as 3 floats. The first is the x pos, next is the y pos, last is the type of the pnt. The type field is dependant on the path type. For beziers (type 1 paths) the type can either be (1.0 = BEZIER_ANCHOR, 2.0 = BEZIER_CONTROL, 3.0 = BEZIER_MOVE). Note all points are returned in pixel resolution.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The type of the path. Currently only one type (1 = Bezier) is supported.
|
||||
</td>
|
||||
</tr>
|
||||
@ -214,9 +202,9 @@ List the points associated with the named path.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2631246"></a><h3>
|
||||
<a name="id2631035"></a><h3>
|
||||
<a name="gimp-path-get-current"></a>gimp_path_get_current ()</h3>
|
||||
<a class="indexterm" name="id2631260"></a><pre class="programlisting">gchar* gimp_path_get_current (gint32 image_ID);</pre>
|
||||
<a class="indexterm" name="id2631048"></a><pre class="programlisting">gchar* gimp_path_get_current (gint32 image_ID);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
<p><code class="literal">gimp_path_get_current</code> is deprecated and should not be used in newly-written code.</p>
|
||||
@ -231,14 +219,12 @@ instead.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image to get the current path from.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The name of the current path.
|
||||
</td>
|
||||
</tr>
|
||||
@ -247,9 +233,9 @@ instead.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2639050"></a><h3>
|
||||
<a name="id2631128"></a><h3>
|
||||
<a name="gimp-path-set-current"></a>gimp_path_set_current ()</h3>
|
||||
<a class="indexterm" name="id2639063"></a><pre class="programlisting">gboolean gimp_path_set_current (gint32 image_ID,
|
||||
<a class="indexterm" name="id2631141"></a><pre class="programlisting">gboolean gimp_path_set_current (gint32 image_ID,
|
||||
const gchar *name);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
@ -265,20 +251,17 @@ instead.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image in which a path will become current.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td> The name of the path to make current.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> TRUE on success.
|
||||
</td>
|
||||
</tr>
|
||||
@ -287,18 +270,20 @@ instead.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2639165"></a><h3>
|
||||
<a name="id2635223"></a><h3>
|
||||
<a name="gimp-path-set-points"></a>gimp_path_set_points ()</h3>
|
||||
<a class="indexterm" name="id2639176"></a><pre class="programlisting">gboolean gimp_path_set_points (gint32 image_ID,
|
||||
<a class="indexterm" name="id2635236"></a><pre class="programlisting">gboolean gimp_path_set_points (gint32 image_ID,
|
||||
const gchar *name,
|
||||
gint ptype,
|
||||
gint num_path_points,
|
||||
const gdouble *points_pairs);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
<p><code class="literal">gimp_path_set_points</code> is deprecated and should not be used in newly-written code.</p>
|
||||
</div>
|
||||
<p>
|
||||
Set the points associated with the named path.
|
||||
</p>
|
||||
<p>
|
||||
Set the points associated with the named path.</p>
|
||||
This procedure is deprecated! Use <code class="function">vectors_stroke_new_from_points()</code>
|
||||
instead.</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
@ -306,38 +291,32 @@ Set the points associated with the named path.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image to set the paths in.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td> The name of the path to create. If it exists then a unique name will be created - query the list of paths if you want to make sure that the name of the path you create is unique. This will be set as the current path.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>ptype</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>ptype</code></em> :</span></td>
|
||||
<td> The type of the path. Currently only one type (1 = Bezier) is supported.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>num_path_points</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>num_path_points</code></em> :</span></td>
|
||||
<td> The number of elements in the array, i.e. the number of points in the path * 3. Each point is made up of (x, y, type) of floats. Currently only the creation of bezier curves is allowed. The type parameter must be set to (1) to indicate a BEZIER type curve. Note that for BEZIER curves, points must be given in the following order: ACCACCAC... If the path is not closed the last control point is missed off. Points consist of three control points (control/anchor/control) so for a curve that is not closed there must be at least two points passed (2 x,y pairs). If (num_path_points/3) % 3 = 0 then the path is assumed to be closed and the points are ACCACCACCACC.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>points_pairs</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>points_pairs</code></em> :</span></td>
|
||||
<td> The points in the path represented as 3 floats. The first is the x pos, next is the y pos, last is the type of the pnt. The type field is dependant on the path type. For beziers (type 1 paths) the type can either be (1.0 = BEZIER_ANCHOR, 2.0 = BEZIER_CONTROL, 3.0= BEZIER_MOVE). Note all points are returned in pixel resolution.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> TRUE on success.
|
||||
</td>
|
||||
</tr>
|
||||
@ -346,14 +325,16 @@ Set the points associated with the named path.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2639346"></a><h3>
|
||||
<a name="id2635422"></a><h3>
|
||||
<a name="gimp-path-stroke-current"></a>gimp_path_stroke_current ()</h3>
|
||||
<a class="indexterm" name="id2639357"></a><pre class="programlisting">gboolean gimp_path_stroke_current (gint32 image_ID);</pre>
|
||||
<a class="indexterm" name="id2635436"></a><pre class="programlisting">gboolean gimp_path_stroke_current (gint32 image_ID);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
<p><code class="literal">gimp_path_stroke_current</code> is deprecated and should not be used in newly-written code.</p>
|
||||
</div>
|
||||
<p>
|
||||
Stroke the current path in the passed image.
|
||||
</p>
|
||||
<p>
|
||||
Stroke the current path in the passed image.</p>
|
||||
This procedure is deprecated! Use <a href="libgimp-gimpedit.html#gimp-edit-stroke-vectors"><code class="function">gimp_edit_stroke_vectors()</code></a>
|
||||
instead.</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
@ -361,14 +342,12 @@ Stroke the current path in the passed image.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image which contains the path to stroke.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> TRUE on success.
|
||||
</td>
|
||||
</tr>
|
||||
@ -377,9 +356,9 @@ Stroke the current path in the passed image.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2639422"></a><h3>
|
||||
<a name="id2635516"></a><h3>
|
||||
<a name="gimp-path-get-point-at-dist"></a>gimp_path_get_point_at_dist ()</h3>
|
||||
<a class="indexterm" name="id2639436"></a><pre class="programlisting">gint gimp_path_get_point_at_dist (gint32 image_ID,
|
||||
<a class="indexterm" name="id2635530"></a><pre class="programlisting">gint gimp_path_get_point_at_dist (gint32 image_ID,
|
||||
gdouble distance,
|
||||
gint *y_point,
|
||||
gdouble *slope);</pre>
|
||||
@ -397,32 +376,27 @@ This procedure is deprecated! Use
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image the paths belongs to.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>distance</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>distance</code></em> :</span></td>
|
||||
<td> The distance along the path.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>y_point</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>y_point</code></em> :</span></td>
|
||||
<td> The y position of the point.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>slope</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>slope</code></em> :</span></td>
|
||||
<td> The slope (dy / dx) at the specified point.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The x position of the point.
|
||||
</td>
|
||||
</tr>
|
||||
@ -431,9 +405,9 @@ This procedure is deprecated! Use
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2639579"></a><h3>
|
||||
<a name="id2635673"></a><h3>
|
||||
<a name="gimp-path-get-tattoo"></a>gimp_path_get_tattoo ()</h3>
|
||||
<a class="indexterm" name="id2639592"></a><pre class="programlisting">gint gimp_path_get_tattoo (gint32 image_ID,
|
||||
<a class="indexterm" name="id2635686"></a><pre class="programlisting">gint gimp_path_get_tattoo (gint32 image_ID,
|
||||
const gchar *name);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
@ -448,20 +422,17 @@ This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td> The name of the path whose tattoo should be obtained.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The tattoo associated with the named path.
|
||||
</td>
|
||||
</tr>
|
||||
@ -470,9 +441,9 @@ This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2639695"></a><h3>
|
||||
<a name="id2635790"></a><h3>
|
||||
<a name="gimp-get-path-by-tattoo"></a>gimp_get_path_by_tattoo ()</h3>
|
||||
<a class="indexterm" name="id2639708"></a><pre class="programlisting">gchar* gimp_get_path_by_tattoo (gint32 image_ID,
|
||||
<a class="indexterm" name="id2635803"></a><pre class="programlisting">gchar* gimp_get_path_by_tattoo (gint32 image_ID,
|
||||
gint tattoo);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
@ -490,20 +461,17 @@ instead.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>tattoo</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>tattoo</code></em> :</span></td>
|
||||
<td> The tattoo of the required path.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> The name of the path with the specified tattoo.
|
||||
</td>
|
||||
</tr>
|
||||
@ -512,9 +480,9 @@ instead.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2639813"></a><h3>
|
||||
<a name="id2635907"></a><h3>
|
||||
<a name="gimp-path-delete"></a>gimp_path_delete ()</h3>
|
||||
<a class="indexterm" name="id2639827"></a><pre class="programlisting">gboolean gimp_path_delete (gint32 image_ID,
|
||||
<a class="indexterm" name="id2635922"></a><pre class="programlisting">gboolean gimp_path_delete (gint32 image_ID,
|
||||
const gchar *name);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
@ -530,20 +498,17 @@ instead.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image to delete the path from.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td> The name of the path to delete.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> TRUE on success.
|
||||
</td>
|
||||
</tr>
|
||||
@ -552,9 +517,9 @@ instead.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2639932"></a><h3>
|
||||
<a name="id2639650"></a><h3>
|
||||
<a name="gimp-path-get-locked"></a>gimp_path_get_locked ()</h3>
|
||||
<a class="indexterm" name="id2639945"></a><pre class="programlisting">gboolean gimp_path_get_locked (gint32 image_ID,
|
||||
<a class="indexterm" name="id2639663"></a><pre class="programlisting">gboolean gimp_path_get_locked (gint32 image_ID,
|
||||
const gchar *name);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
@ -569,20 +534,17 @@ This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td> The name of the path whose locked status should be obtained.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> TRUE if the path is locked, FALSE otherwise.
|
||||
</td>
|
||||
</tr>
|
||||
@ -591,9 +553,9 @@ This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2640050"></a><h3>
|
||||
<a name="id2639767"></a><h3>
|
||||
<a name="gimp-path-set-locked"></a>gimp_path_set_locked ()</h3>
|
||||
<a class="indexterm" name="id2640063"></a><pre class="programlisting">gboolean gimp_path_set_locked (gint32 image_ID,
|
||||
<a class="indexterm" name="id2639781"></a><pre class="programlisting">gboolean gimp_path_set_locked (gint32 image_ID,
|
||||
const gchar *name,
|
||||
gboolean locked);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
@ -609,26 +571,22 @@ This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td> the name of the path whose locked status should be set.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>locked</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>locked</code></em> :</span></td>
|
||||
<td> Whether the path is locked.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> TRUE on success.
|
||||
</td>
|
||||
</tr>
|
||||
@ -637,9 +595,9 @@ This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2640188"></a><h3>
|
||||
<a name="id2639906"></a><h3>
|
||||
<a name="gimp-path-set-tattoo"></a>gimp_path_set_tattoo ()</h3>
|
||||
<a class="indexterm" name="id2640202"></a><pre class="programlisting">gboolean gimp_path_set_tattoo (gint32 image_ID,
|
||||
<a class="indexterm" name="id2639920"></a><pre class="programlisting">gboolean gimp_path_set_tattoo (gint32 image_ID,
|
||||
const gchar *name,
|
||||
gint tattovalue);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
@ -655,26 +613,22 @@ This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td> the name of the path whose tattoo should be set.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>tattovalue</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>tattovalue</code></em> :</span></td>
|
||||
<td> The tattoo associated with the name path. Only values returned from 'path_get_tattoo' should be used here.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> TRUE on success.
|
||||
</td>
|
||||
</tr>
|
||||
@ -683,9 +637,9 @@ This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2640328"></a><h3>
|
||||
<a name="id2640046"></a><h3>
|
||||
<a name="gimp-path-to-selection"></a>gimp_path_to_selection ()</h3>
|
||||
<a class="indexterm" name="id2640342"></a><pre class="programlisting">gboolean gimp_path_to_selection (gint32 image_ID,
|
||||
<a class="indexterm" name="id2640060"></a><pre class="programlisting">gboolean gimp_path_to_selection (gint32 image_ID,
|
||||
const gchar *name,
|
||||
<a
|
||||
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpChannelOps"
|
||||
@ -708,50 +662,42 @@ instead.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>name</code></em> :</span></td>
|
||||
<td> The name of the path which should be made into selection.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>op</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>op</code></em> :</span></td>
|
||||
<td> The desired operation with current selection.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>antialias</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>antialias</code></em> :</span></td>
|
||||
<td> Antialias selection.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>feather</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>feather</code></em> :</span></td>
|
||||
<td> Feather selection.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>feather_radius_x</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>feather_radius_x</code></em> :</span></td>
|
||||
<td> Feather radius x.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>feather_radius_y</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>feather_radius_y</code></em> :</span></td>
|
||||
<td> Feather radius y.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<td> TRUE on success.
|
||||
</td>
|
||||
</tr>
|
||||
@ -760,18 +706,18 @@ instead.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2" lang="en">
|
||||
<a name="id2640552"></a><h3>
|
||||
<a name="id2640270"></a><h3>
|
||||
<a name="gimp-path-import"></a>gimp_path_import ()</h3>
|
||||
<a class="indexterm" name="id2640564"></a><pre class="programlisting">gboolean gimp_path_import (gint32 image_ID,
|
||||
<a class="indexterm" name="id2640284"></a><pre class="programlisting">gboolean gimp_path_import (gint32 image_ID,
|
||||
const gchar *filename,
|
||||
gboolean merge,
|
||||
gboolean scale);</pre>
|
||||
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
|
||||
<h3 class="title">Warning</h3>
|
||||
<p><code class="literal">gimp_path_import</code> is deprecated and should not be used in newly-written code.</p>
|
||||
</div>
|
||||
<p>
|
||||
Import paths from an SVG file.
|
||||
</p>
|
||||
<p>
|
||||
This procedure imports paths from an SVG file. SVG elements other
|
||||
than paths and basic shapes are ignored.</p>
|
||||
This procedure is deprecated! Use <code class="function">vectors_new_from_file()</code> instead.</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
@ -779,102 +725,33 @@ than paths and basic shapes are ignored.</p>
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>filename</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>filename</code></em> :</span></td>
|
||||
<td> The name of the SVG file to import.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>merge</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>merge</code></em> :</span></td>
|
||||
<td> Merge paths into a single vectors object.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>scale</code></em> :</span></td>
|
||||
<td><span class="term"><em class="parameter"><code>scale</code></em> :</span></td>
|
||||
<td> Scale the SVG to image dimensions.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
||||
<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="id2640696"></a><h3>
|
||||
<a name="gimp-path-import-string"></a>gimp_path_import_string ()</h3>
|
||||
<a class="indexterm" name="id2640709"></a><pre class="programlisting">gboolean gimp_path_import_string (gint32 image_ID,
|
||||
const gchar *string,
|
||||
gint length,
|
||||
gboolean merge,
|
||||
gboolean scale);</pre>
|
||||
<p>
|
||||
Import paths from an SVG string.
|
||||
</p>
|
||||
<p>
|
||||
This procedure works like <a href="libgimp-gimppaths.html#gimp-path-import"><code class="function">gimp_path_import()</code></a> but takes a string
|
||||
rather than reading the SVG from a file. This allows you to write
|
||||
scripts that generate SVG and feed it to GIMP.</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>image_ID</code></em> :</span></td>
|
||||
<td> The image.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>string</code></em> :</span></td>
|
||||
<td> A string that must be a complete and valid SVG document.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>length</code></em> :</span></td>
|
||||
<td> Number of bytes in string or -1 if the string is NULL terminated.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>merge</code></em> :</span></td>
|
||||
<td> Merge paths into a single vectors object.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="term"><em class="parameter"><code>scale</code></em> :</span></td>
|
||||
<td> Scale the SVG to image dimensions.
|
||||
</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>
|
||||
<p>Since GIMP 2.4
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user