Files
gimp/devel-docs/libgimp/html/libgimp-gimpvectors.html
2010-08-11 01:23:49 -04:00

2570 lines
84 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>gimpvectors</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
<link rel="up" href="libgimp-image.html" title="Manupulating Images and 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.9 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="libgimp.html" title="Part&#160;I.&#160;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 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&#160;II.&#160;GIMP User Interface Library">
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
<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">
<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>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2626094" class="shortcut">Top</a>
&#160;|&#160;
<a href="#id2703376" class="shortcut">Description</a></nobr></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>
<a name="id2626094"></a><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">
<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-new">gimp_vectors_new</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> image_ID,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-import-from-file">gimp_vectors_import_from_file</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> image_ID,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *filename,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> merge,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> scale,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_vectors,
<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> **vectors_ids);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-import-from-string">gimp_vectors_import_from_string</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> image_ID,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *string,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> length,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> merge,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> scale,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_vectors,
<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> **vectors_ids);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-is-valid">gimp_vectors_is_valid</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>* <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-get-strokes">gimp_vectors_get_strokes</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_strokes);
<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-get-image">gimp_vectors_get_image</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-get-linked">gimp_vectors_get_linked</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-get-name">gimp_vectors_get_name</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-get-tattoo">gimp_vectors_get_tattoo</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-get-visible">gimp_vectors_get_visible</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-set-linked">gimp_vectors_set_linked</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> linked);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-set-name">gimp_vectors_set_name</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-set-tattoo">gimp_vectors_set_tattoo</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> tattoo);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-set-visible">gimp_vectors_set_visible</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> visible);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-remove-stroke">gimp_vectors_remove_stroke</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-to-selection">gimp_vectors_to_selection</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpChannelOps"
>GimpChannelOps</a> operation,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> antialias,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> feather,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> feather_radius_x,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> feather_radius_y);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-parasite-attach">gimp_vectors_parasite_attach</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
const <a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a> *parasite);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-parasite-detach">gimp_vectors_parasite_detach</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a>* <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-parasite-find">gimp_vectors_parasite_find</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-parasite-list">gimp_vectors_parasite_list</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_parasites,
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> ***parasites);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-stroke-new-from-points">gimp_vectors_stroke_new_from_points</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpVectorsStrokeType"
>GimpVectorsStrokeType</a> type,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> num_points,
const <a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *controlpoints,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> closed);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-stroke-close">gimp_vectors_stroke_close</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id);
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-stroke-get-length">gimp_vectors_stroke_get_length</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> precision);
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpVectorsStrokeType"
>GimpVectorsStrokeType</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-stroke-get-points">gimp_vectors_stroke_get_points</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_points,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> **controlpoints,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> *closed);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-stroke-get-point-at-dist">gimp_vectors_stroke_get_point_at_dist</a>
(<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> dist,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> precision,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *x_point,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *y_point,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *slope,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> *valid);
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a>* <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-stroke-interpolate">gimp_vectors_stroke_interpolate</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> precision,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_coords,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> *closed);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-stroke-scale">gimp_vectors_stroke_scale</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> scale_x,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> scale_y);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-stroke-translate">gimp_vectors_stroke_translate</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> off_x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> off_y);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-stroke-flip">gimp_vectors_stroke_flip</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a class="link" href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> flip_type,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> axis);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-stroke-flip-free">gimp_vectors_stroke_flip_free</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x1,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y1,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x2,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y2);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-stroke-rotate">gimp_vectors_stroke_rotate</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> center_x,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> center_y,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> angle);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-bezier-stroke-conicto">gimp_vectors_bezier_stroke_conicto</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x1,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y1);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-bezier-stroke-cubicto">gimp_vectors_bezier_stroke_cubicto</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x1,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y1,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x2,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y2);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-bezier-stroke-lineto">gimp_vectors_bezier_stroke_lineto</a> (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y0);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-bezier-stroke-new-ellipse">gimp_vectors_bezier_stroke_new_ellipse</a>
(<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> radius_x,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> radius_y,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> angle);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-bezier-stroke-new-moveto">gimp_vectors_bezier_stroke_new_moveto</a>
(<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y0);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id2703376"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2703390"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2703399"></a><h3>
<a name="gimp-vectors-new"></a>gimp_vectors_new ()</h3>
<a class="indexterm" name="id2703411"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> gimp_vectors_new (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> image_ID,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *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 <a class="link" href="libgimp-gimpimage.html#gimp-image-add-vectors"><code class="function">gimp_image_add_vectors()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></p></td>
<td> The image.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td> the name of the new vector object.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> the current vector object, 0 if no vector exists in the image.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2703504"></a><h3>
<a name="gimp-vectors-import-from-file"></a>gimp_vectors_import_from_file ()</h3>
<a class="indexterm" name="id2703516"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_import_from_file (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> image_ID,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *filename,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> merge,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> scale,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_vectors,
<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> **vectors_ids);</pre>
<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>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></p></td>
<td> The image.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></p></td>
<td> The name of the SVG file to import.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>merge</code></em>&#160;:</span></p></td>
<td> Merge paths into a single vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>scale</code></em>&#160;:</span></p></td>
<td> Scale the SVG to image dimensions.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>num_vectors</code></em>&#160;:</span></p></td>
<td> The number of newly created vectors.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>vectors_ids</code></em>&#160;:</span></p></td>
<td> The list of newly created vectors.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2703677"></a><h3>
<a name="gimp-vectors-import-from-string"></a>gimp_vectors_import_from_string ()</h3>
<a class="indexterm" name="id2703689"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_import_from_string (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> image_ID,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *string,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> length,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> merge,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> scale,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_vectors,
<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> **vectors_ids);</pre>
<p>
Import paths from an SVG string.
</p>
<p>
This procedure works like <a class="link" href="libgimp-gimpvectors.html#gimp-vectors-import-from-file"><code class="function">gimp_vectors_import_from_file()</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><p><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></p></td>
<td> The image.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>string</code></em>&#160;:</span></p></td>
<td> A string that must be a complete and valid SVG document.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></p></td>
<td> Number of bytes in string or -1 if the string is NULL terminated.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>merge</code></em>&#160;:</span></p></td>
<td> Merge paths into a single vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>scale</code></em>&#160;:</span></p></td>
<td> Scale the SVG to image dimensions.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>num_vectors</code></em>&#160;:</span></p></td>
<td> The number of newly created vectors.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>vectors_ids</code></em>&#160;:</span></p></td>
<td> The list of newly created vectors.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2703884"></a><h3>
<a name="gimp-vectors-is-valid"></a>gimp_vectors_is_valid ()</h3>
<a class="indexterm" name="id2703897"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_is_valid (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID);</pre>
<p>
Returns TRUE if the vectors object is valid.
</p>
<p>
This procedure checks if the given vectors ID is valid and refers to
an existing vectors object.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object to check.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> Whether the vectors ID is valid.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2703963"></a><h3>
<a name="gimp-vectors-get-strokes"></a>gimp_vectors_get_strokes ()</h3>
<a class="indexterm" name="id2703976"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>* gimp_vectors_get_strokes (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>num_strokes</code></em>&#160;:</span></p></td>
<td> The number of strokes returned.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> List of the strokes belonging to the path.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2704062"></a><h3>
<a name="gimp-vectors-get-image"></a>gimp_vectors_get_image ()</h3>
<a class="indexterm" name="id2704074"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> gimp_vectors_get_image (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The vectors image.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2704138"></a><h3>
<a name="gimp-vectors-get-linked"></a>gimp_vectors_get_linked ()</h3>
<a class="indexterm" name="id2704151"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_get_linked (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE if the path is linked, FALSE otherwise.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2704216"></a><h3>
<a name="gimp-vectors-get-name"></a>gimp_vectors_get_name ()</h3>
<a class="indexterm" name="id2704229"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* gimp_vectors_get_name (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The name of the vectors object.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2704294"></a><h3>
<a name="gimp-vectors-get-tattoo"></a>gimp_vectors_get_tattoo ()</h3>
<a class="indexterm" name="id2704306"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gimp_vectors_get_tattoo (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The vectors tattoo.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2704371"></a><h3>
<a name="gimp-vectors-get-visible"></a>gimp_vectors_get_visible ()</h3>
<a class="indexterm" name="id2704384"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_get_visible (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE if the path is visible, FALSE otherwise.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2704449"></a><h3>
<a name="gimp-vectors-set-linked"></a>gimp_vectors_set_linked ()</h3>
<a class="indexterm" name="id2704461"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_set_linked (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>linked</code></em>&#160;:</span></p></td>
<td> Whether the path is linked.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2704546"></a><h3>
<a name="gimp-vectors-set-name"></a>gimp_vectors_set_name ()</h3>
<a class="indexterm" name="id2704558"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_set_name (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td> the new name of the path.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2704642"></a><h3>
<a name="gimp-vectors-set-tattoo"></a>gimp_vectors_set_tattoo ()</h3>
<a class="indexterm" name="id2704654"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_set_tattoo (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>tattoo</code></em>&#160;:</span></p></td>
<td> the new tattoo.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2704738"></a><h3>
<a name="gimp-vectors-set-visible"></a>gimp_vectors_set_visible ()</h3>
<a class="indexterm" name="id2704750"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_set_visible (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>visible</code></em>&#160;:</span></p></td>
<td> Whether the path is visible.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2704835"></a><h3>
<a name="gimp-vectors-remove-stroke"></a>gimp_vectors_remove_stroke ()</h3>
<a class="indexterm" name="id2704848"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_remove_stroke (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2704932"></a><h3>
<a name="gimp-vectors-to-selection"></a>gimp_vectors_to_selection ()</h3>
<a class="indexterm" name="id2704945"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_to_selection (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpChannelOps"
>GimpChannelOps</a> operation,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> antialias,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> feather,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> feather_radius_x,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> feather_radius_y);</pre>
<p>
Transforms the specified vectors object into a selection
</p>
<p>
This procedure renders the desired vectors object into the current
selection of the image the vectors object belongs to.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object to render to the selection.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>operation</code></em>&#160;:</span></p></td>
<td> The desired operation with current selection.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>antialias</code></em>&#160;:</span></p></td>
<td> Antialias selection.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feather</code></em>&#160;:</span></p></td>
<td> Feather selection.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feather_radius_x</code></em>&#160;:</span></p></td>
<td> Feather radius x.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>feather_radius_y</code></em>&#160;:</span></p></td>
<td> Feather radius y.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2705108"></a><h3>
<a name="gimp-vectors-parasite-attach"></a>gimp_vectors_parasite_attach ()</h3>
<a class="indexterm" name="id2705123"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_parasite_attach (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>parasite</code></em>&#160;:</span></p></td>
<td> The parasite to attach to a vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2705209"></a><h3>
<a name="gimp-vectors-parasite-detach"></a>gimp_vectors_parasite_detach ()</h3>
<a class="indexterm" name="id2705223"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_parasite_detach (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td> The name of the parasite to detach from a vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2705309"></a><h3>
<a name="gimp-vectors-parasite-find"></a>gimp_vectors_parasite_find ()</h3>
<a class="indexterm" name="id2705322"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpparasite.html#GimpParasite"
>GimpParasite</a>* gimp_vectors_parasite_find (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Look up a parasite in a vectors object
</p>
<p>
Finds and returns the 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td> The name of the parasite to find.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The found parasite.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2705408"></a><h3>
<a name="gimp-vectors-parasite-list"></a>gimp_vectors_parasite_list ()</h3>
<a class="indexterm" name="id2705421"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_parasite_list (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_parasites,
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> ***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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>num_parasites</code></em>&#160;:</span></p></td>
<td> The number of attached parasites.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>parasites</code></em>&#160;:</span></p></td>
<td> The names of currently attached parasites.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2705525"></a><h3>
<a name="gimp-vectors-stroke-new-from-points"></a>gimp_vectors_stroke_new_from_points ()</h3>
<a class="indexterm" name="id2705543"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gimp_vectors_stroke_new_from_points (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpVectorsStrokeType"
>GimpVectorsStrokeType</a> type,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> num_points,
const <a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *controlpoints,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> closed);</pre>
<p>
Adds a stroke of a given type to the vectors object.
</p>
<p>
Adds a stroke of a given type to the vectors object. The coordinates
of the control points can be specified. For now only strokes of the
type GIMP_VECTORS_STROKE_TYPE_BEZIER are supported. The control
points are specified as a pair of float values for the x- and
y-coordinate. The Bezier stroke type needs a multiple of three
control points. Each Bezier segment endpoint (anchor, A) has two
additional control points (C) associated. They are specified in the
order CACCACCAC...</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></p></td>
<td> type of the stroke (always GIMP_VECTORS_STROKE_TYPE_BEZIER for now).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>num_points</code></em>&#160;:</span></p></td>
<td> The number of elements in the array, i.e. the number of controlpoints in the stroke * 2 (x- and y-coordinate).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>controlpoints</code></em>&#160;:</span></p></td>
<td> List of the x- and y-coordinates of the control points.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>closed</code></em>&#160;:</span></p></td>
<td> Whether the stroke is to be closed or not.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The stroke ID of the newly created stroke.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2705713"></a><h3>
<a name="gimp-vectors-stroke-close"></a>gimp_vectors_stroke_close ()</h3>
<a class="indexterm" name="id2705730"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_stroke_close (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2705824"></a><h3>
<a name="gimp-vectors-stroke-get-length"></a>gimp_vectors_stroke_get_length ()</h3>
<a class="indexterm" name="id2705841"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> gimp_vectors_stroke_get_length (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> precision);</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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>precision</code></em>&#160;:</span></p></td>
<td> The precision used for the approximation.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The length (in pixels) of the given stroke.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2705958"></a><h3>
<a name="gimp-vectors-stroke-get-points"></a>gimp_vectors_stroke_get_points ()</h3>
<a class="indexterm" name="id2705974"></a><pre class="programlisting"><a
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpVectorsStrokeType"
>GimpVectorsStrokeType</a> gimp_vectors_stroke_get_points (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_points,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> **controlpoints,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> *closed);</pre>
<p>
returns the control points of a stroke.
</p>
<p>
returns the control points of a stroke. The interpretation of the
coordinates returned depends on the type of the stroke. For Gimp 2.4
this is always a bezier stroke, where the coordinates are the
control points.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>num_points</code></em>&#160;:</span></p></td>
<td> The number of floats returned.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>controlpoints</code></em>&#160;:</span></p></td>
<td> List of the control points for the stroke (x0, y0, x1, y1, ...).
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>closed</code></em>&#160;:</span></p></td>
<td> Whether the stroke is closed or not.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> type of the stroke (always GIMP_VECTORS_STROKE_TYPE_BEZIER for now).
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2706139"></a><h3>
<a name="gimp-vectors-stroke-get-point-at-dist"></a>gimp_vectors_stroke_get_point_at_dist ()</h3>
<a class="indexterm" name="id2706156"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_stroke_get_point_at_dist
(<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> dist,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> precision,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *x_point,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *y_point,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *slope,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> *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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dist</code></em>&#160;:</span></p></td>
<td> The given distance.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>precision</code></em>&#160;:</span></p></td>
<td> The precision used for the approximation.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x_point</code></em>&#160;:</span></p></td>
<td> The x position of the point.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y_point</code></em>&#160;:</span></p></td>
<td> The y position of the point.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>slope</code></em>&#160;:</span></p></td>
<td> The slope (dy / dx) at the specified point.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>valid</code></em>&#160;:</span></p></td>
<td> Indicator for the validity of the returned data.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2706388"></a><h3>
<a name="gimp-vectors-stroke-interpolate"></a>gimp_vectors_stroke_interpolate ()</h3>
<a class="indexterm" name="id2706405"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a>* gimp_vectors_stroke_interpolate (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> precision,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *num_coords,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> *closed);</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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>precision</code></em>&#160;:</span></p></td>
<td> The precision used for the approximation.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>num_coords</code></em>&#160;:</span></p></td>
<td> The number of floats returned.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>closed</code></em>&#160;:</span></p></td>
<td> Whether the stroke is closed or not.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> List of the coords along the path (x0, y0, x1, y1, ...).
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2706565"></a><h3>
<a name="gimp-vectors-stroke-scale"></a>gimp_vectors_stroke_scale ()</h3>
<a class="indexterm" name="id2706582"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_stroke_scale (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> scale_x,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>scale_x</code></em>&#160;:</span></p></td>
<td> Scale factor in x direction.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>scale_y</code></em>&#160;:</span></p></td>
<td> Scale factor in y direction.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2706719"></a><h3>
<a name="gimp-vectors-stroke-translate"></a>gimp_vectors_stroke_translate ()</h3>
<a class="indexterm" name="id2706736"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_stroke_translate (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> off_x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>off_x</code></em>&#160;:</span></p></td>
<td> Offset in x direction.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>off_y</code></em>&#160;:</span></p></td>
<td> Offset in y direction.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2706873"></a><h3>
<a name="gimp-vectors-stroke-flip"></a>gimp_vectors_stroke_flip ()</h3>
<a class="indexterm" name="id2706889"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_stroke_flip (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a class="link" href="libgimp-gimpenums.html#GimpOrientationType">GimpOrientationType</a> flip_type,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> axis);</pre>
<p>
flips the given stroke.
</p>
<p>
Rotates the given stroke around given center by angle (in degrees).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flip_type</code></em>&#160;:</span></p></td>
<td> Flip orientation, either vertical or horizontal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>axis</code></em>&#160;:</span></p></td>
<td> axis coordinate about which to flip, in pixels.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2707028"></a><h3>
<a name="gimp-vectors-stroke-flip-free"></a>gimp_vectors_stroke_flip_free ()</h3>
<a class="indexterm" name="id2707044"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_stroke_flip_free (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x1,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y1,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x2,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y2);</pre>
<p>
flips the given stroke about an arbitrary axis.
</p>
<p>
Flips the given stroke about an arbitrary axis. Axis is defined by
two coordinates in the image (in pixels), through which the flipping
axis passes.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x1</code></em>&#160;:</span></p></td>
<td> X coordinate of the first point of the flipping axis.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y1</code></em>&#160;:</span></p></td>
<td> Y coordinate of the first point of the flipping axis.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x2</code></em>&#160;:</span></p></td>
<td> X coordinate of the second point of the flipping axis.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y2</code></em>&#160;:</span></p></td>
<td> Y coordinate of the second point of the flipping axis.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2707229"></a><h3>
<a name="gimp-vectors-stroke-rotate"></a>gimp_vectors_stroke_rotate ()</h3>
<a class="indexterm" name="id2707246"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_stroke_rotate (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> center_x,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> center_y,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> angle);</pre>
<p>
rotates the given stroke.
</p>
<p>
Rotates the given stroke around given center by angle (in degrees).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>center_x</code></em>&#160;:</span></p></td>
<td> X coordinate of the rotation center.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>center_y</code></em>&#160;:</span></p></td>
<td> Y coordinate of the rotation center.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>angle</code></em>&#160;:</span></p></td>
<td> angle to rotate about.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2707405"></a><h3>
<a name="gimp-vectors-bezier-stroke-conicto"></a>gimp_vectors_bezier_stroke_conicto ()</h3>
<a class="indexterm" name="id2707423"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_bezier_stroke_conicto (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x1,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x0</code></em>&#160;:</span></p></td>
<td> The x-coordinate of the control point.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y0</code></em>&#160;:</span></p></td>
<td> The y-coordinate of the control point.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x1</code></em>&#160;:</span></p></td>
<td> The x-coordinate of the end point.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y1</code></em>&#160;:</span></p></td>
<td> The y-coordinate of the end point.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2707606"></a><h3>
<a name="gimp-vectors-bezier-stroke-cubicto"></a>gimp_vectors_bezier_stroke_cubicto ()</h3>
<a class="indexterm" name="id2707623"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_bezier_stroke_cubicto (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x1,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y1,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x2,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x0</code></em>&#160;:</span></p></td>
<td> The x-coordinate of the first control point.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y0</code></em>&#160;:</span></p></td>
<td> The y-coordinate of the first control point.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x1</code></em>&#160;:</span></p></td>
<td> The x-coordinate of the second control point.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y1</code></em>&#160;:</span></p></td>
<td> The y-coordinate of the second control point.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x2</code></em>&#160;:</span></p></td>
<td> The x-coordinate of the end point.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y2</code></em>&#160;:</span></p></td>
<td> The y-coordinate of the end point.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2707848"></a><h3>
<a name="gimp-vectors-bezier-stroke-lineto"></a>gimp_vectors_bezier_stroke_lineto ()</h3>
<a class="indexterm" name="id2707866"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_vectors_bezier_stroke_lineto (<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> stroke_id,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stroke_id</code></em>&#160;:</span></p></td>
<td> The stroke ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x0</code></em>&#160;:</span></p></td>
<td> The x-coordinate of the lineto.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y0</code></em>&#160;:</span></p></td>
<td> The y-coordinate of the lineto.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> TRUE on success.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2708003"></a><h3>
<a name="gimp-vectors-bezier-stroke-new-ellipse"></a>gimp_vectors_bezier_stroke_new_ellipse ()</h3>
<a class="indexterm" name="id2708019"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gimp_vectors_bezier_stroke_new_ellipse
(<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> y0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> radius_x,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> radius_y,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x0</code></em>&#160;:</span></p></td>
<td> The x-coordinate of the center.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y0</code></em>&#160;:</span></p></td>
<td> The y-coordinate of the center.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>radius_x</code></em>&#160;:</span></p></td>
<td> The radius in x direction.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>radius_y</code></em>&#160;:</span></p></td>
<td> The radius in y direction.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>angle</code></em>&#160;:</span></p></td>
<td> The angle the x-axis of the ellipse (radians, counterclockwise).
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The resulting stroke.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2708203"></a><h3>
<a name="gimp-vectors-bezier-stroke-new-moveto"></a>gimp_vectors_bezier_stroke_new_moveto ()</h3>
<a class="indexterm" name="id2708220"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gimp_vectors_bezier_stroke_new_moveto
(<a
href="../glib/glib-Basic-Types.html#gint32"
>gint32</a> vectors_ID,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> x0,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> 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><p><span class="term"><em class="parameter"><code>vectors_ID</code></em>&#160;:</span></p></td>
<td> The vectors object.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x0</code></em>&#160;:</span></p></td>
<td> The x-coordinate of the moveto.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y0</code></em>&#160;:</span></p></td>
<td> The y-coordinate of the moveto.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> The resulting stroke.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since GIMP 2.4
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id2708340"></a><div class="refsect2" lang="en"><a name="id2708341"></a></div>
<hr>
<div class="refsect2" lang="en"><a name="id2708342"></a></div>
</div>
</div>
</body>
</html>