278 lines
9.3 KiB
HTML
278 lines
9.3 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
|
<title>gimpvectors</title>
|
|
<meta name="generator" content="DocBook XSL Stylesheets V1.68.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-gimpundo.html" title="gimpundo">
|
|
<link rel="next" href="libgimp-data.html" title="Data Objects">
|
|
<meta name="generator" content="GTK-Doc V1.4 (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">
|
|
<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">
|
|
</head>
|
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
|
<td><a accesskey="p" href="libgimp-gimpundo.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
|
<td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
|
<th width="100%" align="center">GIMP Library Reference Manual</th>
|
|
<td><a accesskey="n" href="libgimp-data.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
|
</tr></table>
|
|
<div class="refentry" lang="en">
|
|
<a name="libgimp-gimpvectors"></a><div class="titlepage"></div>
|
|
<div class="refnamediv"><table width="100%"><tr>
|
|
<td valign="top">
|
|
<h2><span class="refentrytitle">gimpvectors</span></h2>
|
|
<p>gimpvectors — </p>
|
|
</td>
|
|
<td valign="top" align="right"></td>
|
|
</tr></table></div>
|
|
<div class="refsynopsisdiv">
|
|
<h2>Synopsis</h2>
|
|
<pre class="synopsis">
|
|
|
|
|
|
|
|
gint* <a href="libgimp-gimpvectors.html#gimp-vectors-get-strokes">gimp_vectors_get_strokes</a> (gint32 vectors_ID,
|
|
gint *num_strokes);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-stroke-interpolate">gimp_vectors_stroke_interpolate</a> (gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble prescision,
|
|
gint *num_coords,
|
|
gdouble **coords);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-stroke-remove">gimp_vectors_stroke_remove</a> (gint32 vectors_ID,
|
|
gint stroke_id);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-stroke-translate">gimp_vectors_stroke_translate</a> (gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gint offx,
|
|
gint offy);
|
|
</pre>
|
|
</div>
|
|
<div class="refsect1" lang="en">
|
|
<a name="id2621753"></a><h2>Description</h2>
|
|
<p>
|
|
|
|
</p>
|
|
</div>
|
|
<div class="refsect1" lang="en">
|
|
<a name="id2621764"></a><h2>Details</h2>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2621770"></a><h3>
|
|
<a name="gimp-vectors-get-strokes"></a>gimp_vectors_get_strokes ()</h3>
|
|
<a class="indexterm" name="id2621779"></a><pre class="programlisting">gint* gimp_vectors_get_strokes (gint32 vectors_ID,
|
|
gint *num_strokes);</pre>
|
|
<p>
|
|
List the strokes associated with the passed path.
|
|
</p>
|
|
<p>
|
|
Returns an Array with the stroke-IDs associated with the passed
|
|
path.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>vectors_ID</code></em> :</span></td>
|
|
<td> The vectors object.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>num_strokes</code></em> :</span></td>
|
|
<td> The number of strokes returned.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> List of the strokes belonging to the path.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2619663"></a><h3>
|
|
<a name="gimp-vectors-stroke-interpolate"></a>gimp_vectors_stroke_interpolate ()</h3>
|
|
<a class="indexterm" name="id2619672"></a><pre class="programlisting">gboolean gimp_vectors_stroke_interpolate (gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble prescision,
|
|
gint *num_coords,
|
|
gdouble **coords);</pre>
|
|
<p>
|
|
returns polygonal approximation of the stroke.
|
|
</p>
|
|
<p>
|
|
returns polygonal approximation of the stroke.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>vectors_ID</code></em> :</span></td>
|
|
<td> The vectors object.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>stroke_id</code></em> :</span></td>
|
|
<td> The stroke ID.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>prescision</code></em> :</span></td>
|
|
<td> The prescision used for the approximation.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>num_coords</code></em> :</span></td>
|
|
<td> The number of floats returned.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>coords</code></em> :</span></td>
|
|
<td> List of the coords along the path (x0, y0, x1, y1, ...).
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> List of the strokes belonging to the path.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2619082"></a><h3>
|
|
<a name="gimp-vectors-stroke-remove"></a>gimp_vectors_stroke_remove ()</h3>
|
|
<a class="indexterm" name="id2619091"></a><pre class="programlisting">gboolean gimp_vectors_stroke_remove (gint32 vectors_ID,
|
|
gint stroke_id);</pre>
|
|
<p>
|
|
return coordinates along the given stroke.
|
|
</p>
|
|
<p>
|
|
Returns a lot of coordinates along the passed stroke.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>vectors_ID</code></em> :</span></td>
|
|
<td> The vectors object.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>stroke_id</code></em> :</span></td>
|
|
<td> The stroke ID.
|
|
</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>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2619180"></a><h3>
|
|
<a name="gimp-vectors-stroke-translate"></a>gimp_vectors_stroke_translate ()</h3>
|
|
<a class="indexterm" name="id2619188"></a><pre class="programlisting">gboolean gimp_vectors_stroke_translate (gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gint offx,
|
|
gint offy);</pre>
|
|
<p>
|
|
translate the given stroke.
|
|
</p>
|
|
<p>
|
|
Translate the given stroke.</p>
|
|
<p>
|
|
|
|
</p>
|
|
<div class="variablelist"><table border="0">
|
|
<col align="left" valign="top">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>vectors_ID</code></em> :</span></td>
|
|
<td> The vectors object.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>stroke_id</code></em> :</span></td>
|
|
<td> The stroke ID.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>offx</code></em> :</span></td>
|
|
<td> Offset in x direction.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>offy</code></em> :</span></td>
|
|
<td> Offset in y direction.
|
|
</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>
|
|
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
|
|
<td align="left"><a accesskey="p" href="libgimp-gimpundo.html"><b><< gimpundo</b></a></td>
|
|
<td align="right"><a accesskey="n" href="libgimp-data.html"><b>Data Objects >></b></a></td>
|
|
</tr></table>
|
|
</body>
|
|
</html>
|