1466 lines
43 KiB
HTML
1466 lines
43 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">
|
|
|
|
|
|
|
|
gint32 <a href="libgimp-gimpvectors.html#gimp-vectors-get-image">gimp_vectors_get_image</a> (gint32 vectors_ID);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-get-linked">gimp_vectors_get_linked</a> (gint32 vectors_ID);
|
|
gchar* <a href="libgimp-gimpvectors.html#gimp-vectors-get-name">gimp_vectors_get_name</a> (gint32 vectors_ID);
|
|
gint <a href="libgimp-gimpvectors.html#gimp-vectors-get-tattoo">gimp_vectors_get_tattoo</a> (gint32 vectors_ID);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-get-visible">gimp_vectors_get_visible</a> (gint32 vectors_ID);
|
|
gint32 <a href="libgimp-gimpvectors.html#gimp-vectors-new">gimp_vectors_new</a> (gint32 image_ID,
|
|
const gchar *name);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-set-linked">gimp_vectors_set_linked</a> (gint32 vectors_ID,
|
|
gboolean linked);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-set-name">gimp_vectors_set_name</a> (gint32 vectors_ID,
|
|
const gchar *name);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-set-tattoo">gimp_vectors_set_tattoo</a> (gint32 vectors_ID,
|
|
gint tattoo);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-set-visible">gimp_vectors_set_visible</a> (gint32 vectors_ID,
|
|
gboolean visible);
|
|
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-parasite-attach">gimp_vectors_parasite_attach</a> (gint32 vectors_ID,
|
|
const <a
|
|
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
|
|
>GimpParasite</a> *parasite);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-parasite-detach">gimp_vectors_parasite_detach</a> (gint32 vectors_ID,
|
|
const gchar *name);
|
|
<a
|
|
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
|
|
>GimpParasite</a>* <a href="libgimp-gimpvectors.html#gimp-vectors-parasite-find">gimp_vectors_parasite_find</a> (gint32 vectors_ID,
|
|
const gchar *name);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-parasite-list">gimp_vectors_parasite_list</a> (gint32 vectors_ID,
|
|
gint *num_parasites,
|
|
gchar ***parasites);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-stroke-close">gimp_vectors_stroke_close</a> (gint32 vectors_ID,
|
|
gint stroke_id);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-stroke-remove">gimp_vectors_stroke_remove</a> (gint32 vectors_ID,
|
|
gint stroke_id);
|
|
gdouble <a href="libgimp-gimpvectors.html#gimp-vectors-stroke-get-length">gimp_vectors_stroke_get_length</a> (gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble prescision);
|
|
gdouble <a href="libgimp-gimpvectors.html#gimp-vectors-stroke-get-point-at-dist">gimp_vectors_stroke_get_point_at_dist</a>
|
|
(gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble dist,
|
|
gdouble prescision,
|
|
gdouble *y_point,
|
|
gdouble *slope,
|
|
gboolean *valid);
|
|
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-scale">gimp_vectors_stroke_scale</a> (gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble scale_x,
|
|
gdouble scale_y);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-stroke-translate">gimp_vectors_stroke_translate</a> (gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gint off_x,
|
|
gint off_y);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-bezier-stroke-conicto">gimp_vectors_bezier_stroke_conicto</a>
|
|
(gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble x0,
|
|
gdouble y0,
|
|
gdouble x1,
|
|
gdouble y1);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-bezier-stroke-cubicto">gimp_vectors_bezier_stroke_cubicto</a>
|
|
(gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble x0,
|
|
gdouble y0,
|
|
gdouble x1,
|
|
gdouble y1,
|
|
gdouble x2,
|
|
gdouble y2);
|
|
gboolean <a href="libgimp-gimpvectors.html#gimp-vectors-bezier-stroke-lineto">gimp_vectors_bezier_stroke_lineto</a>
|
|
(gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble x0,
|
|
gdouble y0);
|
|
gint <a href="libgimp-gimpvectors.html#gimp-vectors-bezier-stroke-new-ellipse">gimp_vectors_bezier_stroke_new_ellipse</a>
|
|
(gint32 vectors_ID,
|
|
gdouble x0,
|
|
gdouble y0,
|
|
gdouble radius_x,
|
|
gdouble radius_y,
|
|
gdouble angle);
|
|
gint <a href="libgimp-gimpvectors.html#gimp-vectors-bezier-stroke-new-moveto">gimp_vectors_bezier_stroke_new_moveto</a>
|
|
(gint32 vectors_ID,
|
|
gdouble x0,
|
|
gdouble y0);
|
|
</pre>
|
|
</div>
|
|
<div class="refsect1" lang="en">
|
|
<a name="id2623080"></a><h2>Description</h2>
|
|
<p>
|
|
|
|
</p>
|
|
</div>
|
|
<div class="refsect1" lang="en">
|
|
<a name="id2623092"></a><h2>Details</h2>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2623098"></a><h3>
|
|
<a name="gimp-vectors-get-image"></a>gimp_vectors_get_image ()</h3>
|
|
<a class="indexterm" name="id2623107"></a><pre class="programlisting">gint32 gimp_vectors_get_image (gint32 vectors_ID);</pre>
|
|
<p>
|
|
Returns the vectors objects image.
|
|
</p>
|
|
<p>
|
|
Returns the vectors objects image.</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"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> The vectors image.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2635398"></a><h3>
|
|
<a name="gimp-vectors-get-linked"></a>gimp_vectors_get_linked ()</h3>
|
|
<a class="indexterm" name="id2635406"></a><pre class="programlisting">gboolean gimp_vectors_get_linked (gint32 vectors_ID);</pre>
|
|
<p>
|
|
Gets the linked state of the vectors object.
|
|
</p>
|
|
<p>
|
|
Gets the linked state of the vectors object.</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"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> TRUE if the path is linked, FALSE otherwise.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2635469"></a><h3>
|
|
<a name="gimp-vectors-get-name"></a>gimp_vectors_get_name ()</h3>
|
|
<a class="indexterm" name="id2635478"></a><pre class="programlisting">gchar* gimp_vectors_get_name (gint32 vectors_ID);</pre>
|
|
<p>
|
|
Gets the name of the vectors object.
|
|
</p>
|
|
<p>
|
|
Gets the name of the vectors object.</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"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> The name of the vectors object.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2635537"></a><h3>
|
|
<a name="gimp-vectors-get-tattoo"></a>gimp_vectors_get_tattoo ()</h3>
|
|
<a class="indexterm" name="id2635546"></a><pre class="programlisting">gint gimp_vectors_get_tattoo (gint32 vectors_ID);</pre>
|
|
<p>
|
|
Get the tattoo of the vectors object.
|
|
</p>
|
|
<p>
|
|
Get the tattoo state of the vectors object.</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"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> The vectors tattoo.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2635607"></a><h3>
|
|
<a name="gimp-vectors-get-visible"></a>gimp_vectors_get_visible ()</h3>
|
|
<a class="indexterm" name="id2635615"></a><pre class="programlisting">gboolean gimp_vectors_get_visible (gint32 vectors_ID);</pre>
|
|
<p>
|
|
Gets the visibility of the vectors object.
|
|
</p>
|
|
<p>
|
|
Gets the visibility of the vectors object.</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"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> TRUE if the path is visible, FALSE otherwise.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2635678"></a><h3>
|
|
<a name="gimp-vectors-new"></a>gimp_vectors_new ()</h3>
|
|
<a class="indexterm" name="id2635687"></a><pre class="programlisting">gint32 gimp_vectors_new (gint32 image_ID,
|
|
const gchar *name);</pre>
|
|
<p>
|
|
Creates a new empty vectors object.
|
|
</p>
|
|
<p>
|
|
Creates a new empty vectors object. Needs to be added to an image
|
|
using gimp_image_add_vectors.</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>name</code></em> :</span></td>
|
|
<td> the name of the new vector object.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> the current vector object, 0 if no vector exists in the image.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2635771"></a><h3>
|
|
<a name="gimp-vectors-set-linked"></a>gimp_vectors_set_linked ()</h3>
|
|
<a class="indexterm" name="id2635779"></a><pre class="programlisting">gboolean gimp_vectors_set_linked (gint32 vectors_ID,
|
|
gboolean linked);</pre>
|
|
<p>
|
|
Sets the linked state of the vectors object.
|
|
</p>
|
|
<p>
|
|
Sets the linked state of the vectors object.</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>linked</code></em> :</span></td>
|
|
<td> Whether the path is linked.
|
|
</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="id2635861"></a><h3>
|
|
<a name="gimp-vectors-set-name"></a>gimp_vectors_set_name ()</h3>
|
|
<a class="indexterm" name="id2635869"></a><pre class="programlisting">gboolean gimp_vectors_set_name (gint32 vectors_ID,
|
|
const gchar *name);</pre>
|
|
<p>
|
|
Sets the name of the vectors object.
|
|
</p>
|
|
<p>
|
|
Sets the name of the vectors object.</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>name</code></em> :</span></td>
|
|
<td> the new name of the path.
|
|
</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="id2635951"></a><h3>
|
|
<a name="gimp-vectors-set-tattoo"></a>gimp_vectors_set_tattoo ()</h3>
|
|
<a class="indexterm" name="id2635959"></a><pre class="programlisting">gboolean gimp_vectors_set_tattoo (gint32 vectors_ID,
|
|
gint tattoo);</pre>
|
|
<p>
|
|
Set the tattoo of the vectors object.
|
|
</p>
|
|
<p>
|
|
Set the tattoo of the vectors object.</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>tattoo</code></em> :</span></td>
|
|
<td> the new tattoo.
|
|
</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="id2636040"></a><h3>
|
|
<a name="gimp-vectors-set-visible"></a>gimp_vectors_set_visible ()</h3>
|
|
<a class="indexterm" name="id2636049"></a><pre class="programlisting">gboolean gimp_vectors_set_visible (gint32 vectors_ID,
|
|
gboolean visible);</pre>
|
|
<p>
|
|
Sets the visibility of the vectors object.
|
|
</p>
|
|
<p>
|
|
Sets the visibility of the vectors object.</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>visible</code></em> :</span></td>
|
|
<td> Whether the path is visible.
|
|
</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="id2636130"></a><h3>
|
|
<a name="gimp-vectors-get-strokes"></a>gimp_vectors_get_strokes ()</h3>
|
|
<a class="indexterm" name="id2636138"></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="id2636221"></a><h3>
|
|
<a name="gimp-vectors-parasite-attach"></a>gimp_vectors_parasite_attach ()</h3>
|
|
<a class="indexterm" name="id2636230"></a><pre class="programlisting">gboolean gimp_vectors_parasite_attach (gint32 vectors_ID,
|
|
const <a
|
|
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
|
|
>GimpParasite</a> *parasite);</pre>
|
|
<p>
|
|
Add a parasite to a vectors object
|
|
</p>
|
|
<p>
|
|
This procedure attaches a parasite to a vectors object. It has no
|
|
return values.</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>parasite</code></em> :</span></td>
|
|
<td> The parasite to attach to a vectors object.
|
|
</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="id2636312"></a><h3>
|
|
<a name="gimp-vectors-parasite-detach"></a>gimp_vectors_parasite_detach ()</h3>
|
|
<a class="indexterm" name="id2636321"></a><pre class="programlisting">gboolean gimp_vectors_parasite_detach (gint32 vectors_ID,
|
|
const gchar *name);</pre>
|
|
<p>
|
|
Removes a parasite from a vectors object
|
|
</p>
|
|
<p>
|
|
This procedure detaches a parasite from a vectors object. It has no
|
|
return values.</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>name</code></em> :</span></td>
|
|
<td> The name of the parasite to detach from a vectors object.
|
|
</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="id2636404"></a><h3>
|
|
<a name="gimp-vectors-parasite-find"></a>gimp_vectors_parasite_find ()</h3>
|
|
<a class="indexterm" name="id2636412"></a><pre class="programlisting"><a
|
|
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
|
|
>GimpParasite</a>* gimp_vectors_parasite_find (gint32 vectors_ID,
|
|
const gchar *name);</pre>
|
|
<p>
|
|
Finds the named parasite in a vectors object
|
|
</p>
|
|
<p>
|
|
Finds and returns the named parasite that was previously attached to
|
|
a vectors object.</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>name</code></em> :</span></td>
|
|
<td> The name of the parasite to find.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> The found parasite.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2636494"></a><h3>
|
|
<a name="gimp-vectors-parasite-list"></a>gimp_vectors_parasite_list ()</h3>
|
|
<a class="indexterm" name="id2636502"></a><pre class="programlisting">gboolean gimp_vectors_parasite_list (gint32 vectors_ID,
|
|
gint *num_parasites,
|
|
gchar ***parasites);</pre>
|
|
<p>
|
|
List all parasites.
|
|
</p>
|
|
<p>
|
|
Returns a list of all currently attached parasites.</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_parasites</code></em> :</span></td>
|
|
<td> The number of attached parasites.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>parasites</code></em> :</span></td>
|
|
<td> The names of currently attached parasites.
|
|
</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="id2636603"></a><h3>
|
|
<a name="gimp-vectors-stroke-close"></a>gimp_vectors_stroke_close ()</h3>
|
|
<a class="indexterm" name="id2636612"></a><pre class="programlisting">gboolean gimp_vectors_stroke_close (gint32 vectors_ID,
|
|
gint stroke_id);</pre>
|
|
<p>
|
|
closes the specified stroke.
|
|
</p>
|
|
<p>
|
|
Closes the specified 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="id2636693"></a><h3>
|
|
<a name="gimp-vectors-stroke-remove"></a>gimp_vectors_stroke_remove ()</h3>
|
|
<a class="indexterm" name="id2636702"></a><pre class="programlisting">gboolean gimp_vectors_stroke_remove (gint32 vectors_ID,
|
|
gint stroke_id);</pre>
|
|
<p>
|
|
remove the stroke from a vectors object.
|
|
</p>
|
|
<p>
|
|
Remove the stroke from a vectors object.</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="id2636783"></a><h3>
|
|
<a name="gimp-vectors-stroke-get-length"></a>gimp_vectors_stroke_get_length ()</h3>
|
|
<a class="indexterm" name="id2636794"></a><pre class="programlisting">gdouble gimp_vectors_stroke_get_length (gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble prescision);</pre>
|
|
<p>
|
|
Measure the length of the given stroke.
|
|
</p>
|
|
<p>
|
|
Measure the length of 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>prescision</code></em> :</span></td>
|
|
<td> The prescision used for the approximation.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> The length (in pixels) of the given stroke.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2636896"></a><h3>
|
|
<a name="gimp-vectors-stroke-get-point-at-dist"></a>gimp_vectors_stroke_get_point_at_dist ()</h3>
|
|
<a class="indexterm" name="id2636907"></a><pre class="programlisting">gdouble gimp_vectors_stroke_get_point_at_dist
|
|
(gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble dist,
|
|
gdouble prescision,
|
|
gdouble *y_point,
|
|
gdouble *slope,
|
|
gboolean *valid);</pre>
|
|
<p>
|
|
Get point at a specified distance along the stroke.
|
|
</p>
|
|
<p>
|
|
This will return the x,y position of a point at a given distance
|
|
along the stroke. The distance will be obtained by first digitizing
|
|
the curve internally and then walking along the curve. For a closed
|
|
stroke the start of the path is the first point on the path that was
|
|
created. This might not be obvious. If the stroke is not long
|
|
enough, a \"valid\" flag will be FALSE.</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>dist</code></em> :</span></td>
|
|
<td> The given distance.
|
|
</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>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> The slope (dy / dx) at the specified point.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>valid</code></em> :</span></td>
|
|
<td> Indicator for the validity of the returned data.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> The x position of the point.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2637094"></a><h3>
|
|
<a name="gimp-vectors-stroke-interpolate"></a>gimp_vectors_stroke_interpolate ()</h3>
|
|
<a class="indexterm" name="id2637105"></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="id2637247"></a><h3>
|
|
<a name="gimp-vectors-stroke-scale"></a>gimp_vectors_stroke_scale ()</h3>
|
|
<a class="indexterm" name="id2637256"></a><pre class="programlisting">gboolean gimp_vectors_stroke_scale (gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble scale_x,
|
|
gdouble scale_y);</pre>
|
|
<p>
|
|
scales the given stroke.
|
|
</p>
|
|
<p>
|
|
Scale 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>scale_x</code></em> :</span></td>
|
|
<td> Scale factor in x direction.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>scale_y</code></em> :</span></td>
|
|
<td> Scale factor 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>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2637375"></a><h3>
|
|
<a name="gimp-vectors-stroke-translate"></a>gimp_vectors_stroke_translate ()</h3>
|
|
<a class="indexterm" name="id2637386"></a><pre class="programlisting">gboolean gimp_vectors_stroke_translate (gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gint off_x,
|
|
gint off_y);</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>off_x</code></em> :</span></td>
|
|
<td> Offset in x direction.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>off_y</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>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2637505"></a><h3>
|
|
<a name="gimp-vectors-bezier-stroke-conicto"></a>gimp_vectors_bezier_stroke_conicto ()</h3>
|
|
<a class="indexterm" name="id2637516"></a><pre class="programlisting">gboolean gimp_vectors_bezier_stroke_conicto
|
|
(gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble x0,
|
|
gdouble y0,
|
|
gdouble x1,
|
|
gdouble y1);</pre>
|
|
<p>
|
|
Extends a bezier stroke with a conic bezier spline.
|
|
</p>
|
|
<p>
|
|
Extends a bezier stroke with a conic bezier spline. Actually a cubic
|
|
bezier spline gets added that realizes the shape of a conic bezier
|
|
spline.</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>x0</code></em> :</span></td>
|
|
<td> The x-coordinate of the control point.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>y0</code></em> :</span></td>
|
|
<td> The y-coordinate of the control point.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>x1</code></em> :</span></td>
|
|
<td> The x-coordinate of the end point.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>y1</code></em> :</span></td>
|
|
<td> The y-coordinate of the end point.
|
|
</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="id2637679"></a><h3>
|
|
<a name="gimp-vectors-bezier-stroke-cubicto"></a>gimp_vectors_bezier_stroke_cubicto ()</h3>
|
|
<a class="indexterm" name="id2637690"></a><pre class="programlisting">gboolean gimp_vectors_bezier_stroke_cubicto
|
|
(gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble x0,
|
|
gdouble y0,
|
|
gdouble x1,
|
|
gdouble y1,
|
|
gdouble x2,
|
|
gdouble y2);</pre>
|
|
<p>
|
|
Extends a bezier stroke with a cubic bezier spline.
|
|
</p>
|
|
<p>
|
|
Extends a bezier stroke with a cubic bezier spline.</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>x0</code></em> :</span></td>
|
|
<td> The x-coordinate of the first control point.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>y0</code></em> :</span></td>
|
|
<td> The y-coordinate of the first control point.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>x1</code></em> :</span></td>
|
|
<td> The x-coordinate of the second control point.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>y1</code></em> :</span></td>
|
|
<td> The y-coordinate of the second control point.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>x2</code></em> :</span></td>
|
|
<td> The x-coordinate of the end point.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>y2</code></em> :</span></td>
|
|
<td> The y-coordinate of the end point.
|
|
</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="id2637891"></a><h3>
|
|
<a name="gimp-vectors-bezier-stroke-lineto"></a>gimp_vectors_bezier_stroke_lineto ()</h3>
|
|
<a class="indexterm" name="id2637902"></a><pre class="programlisting">gboolean gimp_vectors_bezier_stroke_lineto
|
|
(gint32 vectors_ID,
|
|
gint stroke_id,
|
|
gdouble x0,
|
|
gdouble y0);</pre>
|
|
<p>
|
|
Extends a bezier stroke with a lineto.
|
|
</p>
|
|
<p>
|
|
Extends a bezier stroke with a lineto.</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>x0</code></em> :</span></td>
|
|
<td> The x-coordinate of the lineto.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>y0</code></em> :</span></td>
|
|
<td> The y-coordinate of the lineto.
|
|
</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="id2638034"></a><h3>
|
|
<a name="gimp-vectors-bezier-stroke-new-ellipse"></a>gimp_vectors_bezier_stroke_new_ellipse ()</h3>
|
|
<a class="indexterm" name="id2638045"></a><pre class="programlisting">gint gimp_vectors_bezier_stroke_new_ellipse
|
|
(gint32 vectors_ID,
|
|
gdouble x0,
|
|
gdouble y0,
|
|
gdouble radius_x,
|
|
gdouble radius_y,
|
|
gdouble angle);</pre>
|
|
<p>
|
|
Adds a bezier stroke describing an ellipse the vectors object.
|
|
</p>
|
|
<p>
|
|
Adds a bezier stroke describing an ellipse the vectors object.</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>x0</code></em> :</span></td>
|
|
<td> The x-coordinate of the center.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>y0</code></em> :</span></td>
|
|
<td> The y-coordinate of the center.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>radius_x</code></em> :</span></td>
|
|
<td> The radius in x direction.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>radius_y</code></em> :</span></td>
|
|
<td> The radius in y direction.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>angle</code></em> :</span></td>
|
|
<td> The angle the x-axis of the ellipse (radians, counterclockwise).
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> The resulting stroke.
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table></div>
|
|
<p>Since GIMP 2.4
|
|
</p>
|
|
</div>
|
|
<hr>
|
|
<div class="refsect2" lang="en">
|
|
<a name="id2638226"></a><h3>
|
|
<a name="gimp-vectors-bezier-stroke-new-moveto"></a>gimp_vectors_bezier_stroke_new_moveto ()</h3>
|
|
<a class="indexterm" name="id2638238"></a><pre class="programlisting">gint gimp_vectors_bezier_stroke_new_moveto
|
|
(gint32 vectors_ID,
|
|
gdouble x0,
|
|
gdouble y0);</pre>
|
|
<p>
|
|
Adds a bezier stroke with a single moveto to the vectors object.
|
|
</p>
|
|
<p>
|
|
Adds a bezier stroke with a single moveto to the vectors object.</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>x0</code></em> :</span></td>
|
|
<td> The x-coordinate of the moveto.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><em class="parameter"><code>y0</code></em> :</span></td>
|
|
<td> The y-coordinate of the moveto.
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
|
|
<td> The resulting stroke.
|
|
|
|
</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>
|