~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to devel-docs/libgimp/html/libgimp-gimppaths.html

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>gimppaths</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
7
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
8
 
<link rel="up" href="libgimp-image.html" title="Manupulating Images and all their Properties">
 
8
<link rel="up" href="libgimp-image.html" title="Manupulating Images and their Properties">
9
9
<link rel="prev" href="libgimp-gimplayer.html" title="gimplayer">
10
10
<link rel="next" href="libgimp-gimppixelfetcher.html" title="gimppixelfetcher">
11
 
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
 
<link rel="part" href="gimpdefinitions.html" title="Part&#160;I.&#160;GIMP Constants">
14
 
<link rel="part" href="libgimp.html" title="Part&#160;II.&#160;GIMP Library">
 
13
<link rel="part" href="libgimp.html" title="Part&#160;I.&#160;GIMP Library">
15
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
16
 
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and all their Properties">
 
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
17
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
18
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
19
 
<link rel="part" href="libgimpui.html" title="Part&#160;III.&#160;GIMP User Interface Library">
 
18
<link rel="part" href="libgimpui.html" title="Part&#160;II.&#160;GIMP User Interface Library">
20
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
 
20
<link rel="index" href="libgimp-index.html" title="Index">
 
21
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
 
22
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
 
23
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
21
24
</head>
22
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
23
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
28
31
<th width="100%" align="center">GIMP Library Reference Manual</th>
29
32
<td><a accesskey="n" href="libgimp-gimppixelfetcher.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
30
33
</tr>
31
 
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2565123" class="shortcut">Top</a>
 
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2569944" class="shortcut">Top</a>
32
35
                  &#160;|&#160;
33
 
                  <a href="#id2600396" class="shortcut">Description</a></nobr></td></tr>
 
36
                  <a href="#id2643103" class="shortcut">Description</a></nobr></td></tr>
34
37
</table>
35
38
<div class="refentry" lang="en">
36
39
<a name="libgimp-gimppaths"></a><div class="titlepage"></div>
37
40
<div class="refnamediv"><table width="100%"><tr>
38
41
<td valign="top">
39
42
<h2>
40
 
<a name="id2565123"></a><span class="refentrytitle">gimppaths</span>
 
43
<a name="id2569944"></a><span class="refentrytitle">gimppaths</span>
41
44
</h2>
42
45
<p>gimppaths &#8212; Operations related to paths.</p>
43
46
</td>
49
52
 
50
53
 
51
54
 
52
 
gchar**     <a href="libgimp-gimppaths.html#gimp-path-list">gimp_path_list</a>                  (gint32 image_ID,
53
 
                                             gint *num_paths);
54
 
gint        <a href="libgimp-gimppaths.html#gimp-path-get-points">gimp_path_get_points</a>            (gint32 image_ID,
55
 
                                             const gchar *name,
56
 
                                             gint *path_closed,
57
 
                                             gint *num_path_point_details,
58
 
                                             gdouble **points_pairs);
59
 
gchar*      <a href="libgimp-gimppaths.html#gimp-path-get-current">gimp_path_get_current</a>           (gint32 image_ID);
60
 
gboolean    <a href="libgimp-gimppaths.html#gimp-path-set-current">gimp_path_set_current</a>           (gint32 image_ID,
61
 
                                             const gchar *name);
62
 
gboolean    <a href="libgimp-gimppaths.html#gimp-path-set-points">gimp_path_set_points</a>            (gint32 image_ID,
63
 
                                             const gchar *name,
64
 
                                             gint ptype,
65
 
                                             gint num_path_points,
66
 
                                             const gdouble *points_pairs);
67
 
gboolean    <a href="libgimp-gimppaths.html#gimp-path-stroke-current">gimp_path_stroke_current</a>        (gint32 image_ID);
68
 
gint        <a href="libgimp-gimppaths.html#gimp-path-get-point-at-dist">gimp_path_get_point_at_dist</a>     (gint32 image_ID,
69
 
                                             gdouble distance,
70
 
                                             gint *y_point,
71
 
                                             gdouble *slope);
72
 
gint        <a href="libgimp-gimppaths.html#gimp-path-get-tattoo">gimp_path_get_tattoo</a>            (gint32 image_ID,
73
 
                                             const gchar *name);
74
 
gchar*      <a href="libgimp-gimppaths.html#gimp-get-path-by-tattoo">gimp_get_path_by_tattoo</a>         (gint32 image_ID,
75
 
                                             gint tattoo);
76
 
gboolean    <a href="libgimp-gimppaths.html#gimp-path-delete">gimp_path_delete</a>                (gint32 image_ID,
77
 
                                             const gchar *name);
78
 
gint        <a href="libgimp-gimppaths.html#gimp-path-get-locked">gimp_path_get_locked</a>            (gint32 image_ID,
79
 
                                             const gchar *name);
80
 
gboolean    <a href="libgimp-gimppaths.html#gimp-path-set-locked">gimp_path_set_locked</a>            (gint32 image_ID,
81
 
                                             const gchar *name,
82
 
                                             gint lockstatus);
83
 
gboolean    <a href="libgimp-gimppaths.html#gimp-path-set-tattoo">gimp_path_set_tattoo</a>            (gint32 image_ID,
84
 
                                             const gchar *name,
85
 
                                             gint tattovalue);
86
 
gboolean    <a href="libgimp-gimppaths.html#gimp-path-to-selection">gimp_path_to_selection</a>          (gint32 image_ID,
87
 
                                             const gchar *name,
88
 
                                             <a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> op,
89
 
                                             gboolean antialias,
90
 
                                             gboolean feather,
91
 
                                             gdouble feather_radius_x,
92
 
                                             gdouble feather_radius_y);
93
 
gboolean    <a href="libgimp-gimppaths.html#gimp-path-import">gimp_path_import</a>                (gint32 image_ID,
94
 
                                             const gchar *filename,
95
 
                                             gboolean merge,
96
 
                                             gboolean scale);
 
55
gchar**             <a href="libgimp-gimppaths.html#gimp-path-list">gimp_path_list</a>                      (gint32 image_ID,
 
56
                                                         gint *num_paths);
 
57
gint                <a href="libgimp-gimppaths.html#gimp-path-get-points">gimp_path_get_points</a>                (gint32 image_ID,
 
58
                                                         const gchar *name,
 
59
                                                         gint *path_closed,
 
60
                                                         gint *num_path_point_details,
 
61
                                                         gdouble **points_pairs);
 
62
gchar*              <a href="libgimp-gimppaths.html#gimp-path-get-current">gimp_path_get_current</a>               (gint32 image_ID);
 
63
gboolean            <a href="libgimp-gimppaths.html#gimp-path-set-current">gimp_path_set_current</a>               (gint32 image_ID,
 
64
                                                         const gchar *name);
 
65
gboolean            <a href="libgimp-gimppaths.html#gimp-path-set-points">gimp_path_set_points</a>                (gint32 image_ID,
 
66
                                                         const gchar *name,
 
67
                                                         gint ptype,
 
68
                                                         gint num_path_points,
 
69
                                                         const gdouble *points_pairs);
 
70
gboolean            <a href="libgimp-gimppaths.html#gimp-path-stroke-current">gimp_path_stroke_current</a>            (gint32 image_ID);
 
71
gint                <a href="libgimp-gimppaths.html#gimp-path-get-point-at-dist">gimp_path_get_point_at_dist</a>         (gint32 image_ID,
 
72
                                                         gdouble distance,
 
73
                                                         gint *y_point,
 
74
                                                         gdouble *slope);
 
75
gint                <a href="libgimp-gimppaths.html#gimp-path-get-tattoo">gimp_path_get_tattoo</a>                (gint32 image_ID,
 
76
                                                         const gchar *name);
 
77
gchar*              <a href="libgimp-gimppaths.html#gimp-get-path-by-tattoo">gimp_get_path_by_tattoo</a>             (gint32 image_ID,
 
78
                                                         gint tattoo);
 
79
gboolean            <a href="libgimp-gimppaths.html#gimp-path-delete">gimp_path_delete</a>                    (gint32 image_ID,
 
80
                                                         const gchar *name);
 
81
gboolean            <a href="libgimp-gimppaths.html#gimp-path-get-locked">gimp_path_get_locked</a>                (gint32 image_ID,
 
82
                                                         const gchar *name);
 
83
gboolean            <a href="libgimp-gimppaths.html#gimp-path-set-locked">gimp_path_set_locked</a>                (gint32 image_ID,
 
84
                                                         const gchar *name,
 
85
                                                         gboolean locked);
 
86
gboolean            <a href="libgimp-gimppaths.html#gimp-path-set-tattoo">gimp_path_set_tattoo</a>                (gint32 image_ID,
 
87
                                                         const gchar *name,
 
88
                                                         gint tattovalue);
 
89
gboolean            <a href="libgimp-gimppaths.html#gimp-path-to-selection">gimp_path_to_selection</a>              (gint32 image_ID,
 
90
                                                         const gchar *name,
 
91
                                                         <a
 
92
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpChannelOps"
 
93
>GimpChannelOps</a> op,
 
94
                                                         gboolean antialias,
 
95
                                                         gboolean feather,
 
96
                                                         gdouble feather_radius_x,
 
97
                                                         gdouble feather_radius_y);
 
98
gboolean            <a href="libgimp-gimppaths.html#gimp-path-import">gimp_path_import</a>                    (gint32 image_ID,
 
99
                                                         const gchar *filename,
 
100
                                                         gboolean merge,
 
101
                                                         gboolean scale);
97
102
</pre>
98
103
</div>
99
104
<div class="refsect1" lang="en">
100
 
<a name="id2600396"></a><h2>Description</h2>
 
105
<a name="id2643103"></a><h2>Description</h2>
101
106
<p>
102
107
Operations related to paths.
103
108
</p>
104
109
</div>
105
110
<div class="refsect1" lang="en">
106
 
<a name="id2600411"></a><h2>Details</h2>
 
111
<a name="id2639644"></a><h2>Details</h2>
107
112
<div class="refsect2" lang="en">
108
 
<a name="id2600422"></a><h3>
 
113
<a name="id2639654"></a><h3>
109
114
<a name="gimp-path-list"></a>gimp_path_list ()</h3>
110
 
<a class="indexterm" name="id2600435"></a><pre class="programlisting">gchar**     gimp_path_list                  (gint32 image_ID,
111
 
                                             gint *num_paths);</pre>
112
 
<p>
113
 
List the paths associated with the passed image.
114
 
</p>
115
 
<p>
116
 
List the paths associated with the passed image.</p>
 
115
<a class="indexterm" name="id2639669"></a><pre class="programlisting">gchar**             gimp_path_list                      (gint32 image_ID,
 
116
                                                         gint *num_paths);</pre>
 
117
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
118
<h3 class="title">Warning</h3>
 
119
<p><code class="literal">gimp_path_list</code> is deprecated and should not be used in newly-written code.</p>
 
120
</div>
 
121
<p>
 
122
This procedure is deprecated! Use <a href="libgimp-gimpimage.html#gimp-image-get-vectors"><code class="function">gimp_image_get_vectors()</code></a> instead.</p>
117
123
<p>
118
124
 
119
125
</p>
121
127
<col align="left" valign="top">
122
128
<tbody>
123
129
<tr>
124
 
<td>
125
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
126
 
<td> The ID of the image to list the paths from.
 
130
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
131
<td> The image to list the paths from.
127
132
</td>
128
133
</tr>
129
134
<tr>
130
 
<td>
131
 
<span class="term"><em class="parameter"><code>num_paths</code></em>&#160;:</span></td>
 
135
<td><span class="term"><em class="parameter"><code>num_paths</code></em>&#160;:</span></td>
132
136
<td> The number of paths returned.
133
137
</td>
134
138
</tr>
135
139
<tr>
136
 
<td>
137
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
140
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
138
141
<td> List of the paths belonging to this image.
139
142
</td>
140
143
</tr>
143
146
</div>
144
147
<hr>
145
148
<div class="refsect2" lang="en">
146
 
<a name="id2603257"></a><h3>
 
149
<a name="id2639773"></a><h3>
147
150
<a name="gimp-path-get-points"></a>gimp_path_get_points ()</h3>
148
 
<a class="indexterm" name="id2603268"></a><pre class="programlisting">gint        gimp_path_get_points            (gint32 image_ID,
149
 
                                             const gchar *name,
150
 
                                             gint *path_closed,
151
 
                                             gint *num_path_point_details,
152
 
                                             gdouble **points_pairs);</pre>
153
 
<p>
154
 
List the points associated with the named path.
155
 
</p>
156
 
<p>
157
 
List the points associated with the named path.</p>
 
151
<a class="indexterm" name="id2639786"></a><pre class="programlisting">gint                gimp_path_get_points                (gint32 image_ID,
 
152
                                                         const gchar *name,
 
153
                                                         gint *path_closed,
 
154
                                                         gint *num_path_point_details,
 
155
                                                         gdouble **points_pairs);</pre>
 
156
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
157
<h3 class="title">Warning</h3>
 
158
<p><code class="literal">gimp_path_get_points</code> is deprecated and should not be used in newly-written code.</p>
 
159
</div>
 
160
<p>
 
161
This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors-stroke-get-points"><code class="function">gimp_vectors_stroke_get_points()</code></a>
 
162
instead.</p>
158
163
<p>
159
164
 
160
165
</p>
162
167
<col align="left" valign="top">
163
168
<tbody>
164
169
<tr>
165
 
<td>
166
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
167
 
<td> The ID of the image to list the paths from.
 
170
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
171
<td> The image to list the paths from.
168
172
</td>
169
173
</tr>
170
174
<tr>
171
 
<td>
172
 
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
175
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
173
176
<td> The name of the path whose points should be listed.
174
177
</td>
175
178
</tr>
176
179
<tr>
177
 
<td>
178
 
<span class="term"><em class="parameter"><code>path_closed</code></em>&#160;:</span></td>
 
180
<td><span class="term"><em class="parameter"><code>path_closed</code></em>&#160;:</span></td>
179
181
<td> Return if the path is closed. (0 = path open, 1 = path closed).
180
182
</td>
181
183
</tr>
182
184
<tr>
183
 
<td>
184
 
<span class="term"><em class="parameter"><code>num_path_point_details</code></em>&#160;:</span></td>
 
185
<td><span class="term"><em class="parameter"><code>num_path_point_details</code></em>&#160;:</span></td>
185
186
<td> The number of points returned. Each point is made up of (x, y, pnt_type) of floats.
186
187
</td>
187
188
</tr>
188
189
<tr>
189
 
<td>
190
 
<span class="term"><em class="parameter"><code>points_pairs</code></em>&#160;:</span></td>
 
190
<td><span class="term"><em class="parameter"><code>points_pairs</code></em>&#160;:</span></td>
191
191
<td> The points in the path represented as 3 floats. The first is the x pos, next is the y pos, last is the type of the pnt. The type field is dependant on the path type. For beziers (type 1 paths) the type can either be (1.0 = BEZIER_ANCHOR, 2.0 = BEZIER_CONTROL, 3.0 = BEZIER_MOVE). Note all points are returned in pixel resolution.
192
192
</td>
193
193
</tr>
194
194
<tr>
195
 
<td>
196
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
195
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
197
196
<td> The type of the path. Currently only one type (1 = Bezier) is supported.
198
197
</td>
199
198
</tr>
202
201
</div>
203
202
<hr>
204
203
<div class="refsect2" lang="en">
205
 
<a name="id2603427"></a><h3>
 
204
<a name="id2639962"></a><h3>
206
205
<a name="gimp-path-get-current"></a>gimp_path_get_current ()</h3>
207
 
<a class="indexterm" name="id2603438"></a><pre class="programlisting">gchar*      gimp_path_get_current           (gint32 image_ID);</pre>
208
 
<p>
209
 
The name of the current path. Error if no paths.
210
 
</p>
211
 
<p>
212
 
The name of the current path. Error if no paths.</p>
 
206
<a class="indexterm" name="id2639975"></a><pre class="programlisting">gchar*              gimp_path_get_current               (gint32 image_ID);</pre>
 
207
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
208
<h3 class="title">Warning</h3>
 
209
<p><code class="literal">gimp_path_get_current</code> is deprecated and should not be used in newly-written code.</p>
 
210
</div>
 
211
<p>
 
212
This procedure is deprecated! Use <a href="libgimp-gimpimage.html#gimp-image-get-active-vectors"><code class="function">gimp_image_get_active_vectors()</code></a>
 
213
instead.</p>
213
214
<p>
214
215
 
215
216
</p>
217
218
<col align="left" valign="top">
218
219
<tbody>
219
220
<tr>
220
 
<td>
221
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
222
 
<td> The ID of the image to get the current path from.
 
221
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
222
<td> The image to get the current path from.
223
223
</td>
224
224
</tr>
225
225
<tr>
226
 
<td>
227
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
226
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
228
227
<td> The name of the current path.
229
228
</td>
230
229
</tr>
233
232
</div>
234
233
<hr>
235
234
<div class="refsect2" lang="en">
236
 
<a name="id2603503"></a><h3>
 
235
<a name="id2640312"></a><h3>
237
236
<a name="gimp-path-set-current"></a>gimp_path_set_current ()</h3>
238
 
<a class="indexterm" name="id2608546"></a><pre class="programlisting">gboolean    gimp_path_set_current           (gint32 image_ID,
239
 
                                             const gchar *name);</pre>
240
 
<p>
241
 
Sets the current path associated with the passed image.
242
 
</p>
243
 
<p>
244
 
Sets a named path as the current path.</p>
 
237
<a class="indexterm" name="id2640325"></a><pre class="programlisting">gboolean            gimp_path_set_current               (gint32 image_ID,
 
238
                                                         const gchar *name);</pre>
 
239
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
240
<h3 class="title">Warning</h3>
 
241
<p><code class="literal">gimp_path_set_current</code> is deprecated and should not be used in newly-written code.</p>
 
242
</div>
 
243
<p>
 
244
This procedure is deprecated! Use <a href="libgimp-gimpimage.html#gimp-image-set-active-vectors"><code class="function">gimp_image_set_active_vectors()</code></a>
 
245
instead.</p>
245
246
<p>
246
247
 
247
248
</p>
249
250
<col align="left" valign="top">
250
251
<tbody>
251
252
<tr>
252
 
<td>
253
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
254
 
<td> The ID of the image in which a path will become current.
 
253
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
254
<td> The image in which a path will become current.
255
255
</td>
256
256
</tr>
257
257
<tr>
258
 
<td>
259
 
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
258
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
260
259
<td> The name of the path to make current.
261
260
</td>
262
261
</tr>
263
262
<tr>
264
 
<td>
265
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
263
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
266
264
<td> TRUE on success.
267
265
</td>
268
266
</tr>
271
269
</div>
272
270
<hr>
273
271
<div class="refsect2" lang="en">
274
 
<a name="id2608631"></a><h3>
 
272
<a name="id2640428"></a><h3>
275
273
<a name="gimp-path-set-points"></a>gimp_path_set_points ()</h3>
276
 
<a class="indexterm" name="id2608642"></a><pre class="programlisting">gboolean    gimp_path_set_points            (gint32 image_ID,
277
 
                                             const gchar *name,
278
 
                                             gint ptype,
279
 
                                             gint num_path_points,
280
 
                                             const gdouble *points_pairs);</pre>
281
 
<p>
282
 
Set the points associated with the named path.
283
 
</p>
284
 
<p>
285
 
Set the points associated with the named path.</p>
 
274
<a class="indexterm" name="id2640442"></a><pre class="programlisting">gboolean            gimp_path_set_points                (gint32 image_ID,
 
275
                                                         const gchar *name,
 
276
                                                         gint ptype,
 
277
                                                         gint num_path_points,
 
278
                                                         const gdouble *points_pairs);</pre>
 
279
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
280
<h3 class="title">Warning</h3>
 
281
<p><code class="literal">gimp_path_set_points</code> is deprecated and should not be used in newly-written code.</p>
 
282
</div>
 
283
<p>
 
284
This procedure is deprecated! Use <code class="function">vectors_stroke_new_from_points()</code>
 
285
instead.</p>
286
286
<p>
287
287
 
288
288
</p>
290
290
<col align="left" valign="top">
291
291
<tbody>
292
292
<tr>
293
 
<td>
294
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
295
 
<td> The ID of the image to set the paths in.
 
293
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
294
<td> The image to set the paths in.
296
295
</td>
297
296
</tr>
298
297
<tr>
299
 
<td>
300
 
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
298
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
301
299
<td> The name of the path to create. If it exists then a unique name will be created - query the list of paths if you want to make sure that the name of the path you create is unique. This will be set as the current path.
302
300
</td>
303
301
</tr>
304
302
<tr>
305
 
<td>
306
 
<span class="term"><em class="parameter"><code>ptype</code></em>&#160;:</span></td>
 
303
<td><span class="term"><em class="parameter"><code>ptype</code></em>&#160;:</span></td>
307
304
<td> The type of the path. Currently only one type (1 = Bezier) is supported.
308
305
</td>
309
306
</tr>
310
307
<tr>
311
 
<td>
312
 
<span class="term"><em class="parameter"><code>num_path_points</code></em>&#160;:</span></td>
 
308
<td><span class="term"><em class="parameter"><code>num_path_points</code></em>&#160;:</span></td>
313
309
<td> The number of elements in the array, i.e. the number of points in the path * 3. Each point is made up of (x, y, type) of floats. Currently only the creation of bezier curves is allowed. The type parameter must be set to (1) to indicate a BEZIER type curve. Note that for BEZIER curves, points must be given in the following order: ACCACCAC... If the path is not closed the last control point is missed off. Points consist of three control points (control/anchor/control) so for a curve that is not closed there must be at least two points passed (2 x,y pairs). If (num_path_points/3) % 3 = 0 then the path is assumed to be closed and the points are ACCACCACCACC.
314
310
</td>
315
311
</tr>
316
312
<tr>
317
 
<td>
318
 
<span class="term"><em class="parameter"><code>points_pairs</code></em>&#160;:</span></td>
 
313
<td><span class="term"><em class="parameter"><code>points_pairs</code></em>&#160;:</span></td>
319
314
<td> The points in the path represented as 3 floats. The first is the x pos, next is the y pos, last is the type of the pnt. The type field is dependant on the path type. For beziers (type 1 paths) the type can either be (1.0 = BEZIER_ANCHOR, 2.0 = BEZIER_CONTROL, 3.0= BEZIER_MOVE). Note all points are returned in pixel resolution.
320
315
</td>
321
316
</tr>
322
317
<tr>
323
 
<td>
324
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
318
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
325
319
<td> TRUE on success.
326
320
</td>
327
321
</tr>
330
324
</div>
331
325
<hr>
332
326
<div class="refsect2" lang="en">
333
 
<a name="id2608789"></a><h3>
 
327
<a name="id2640629"></a><h3>
334
328
<a name="gimp-path-stroke-current"></a>gimp_path_stroke_current ()</h3>
335
 
<a class="indexterm" name="id2608800"></a><pre class="programlisting">gboolean    gimp_path_stroke_current        (gint32 image_ID);</pre>
336
 
<p>
337
 
Stroke the current path in the passed image.
338
 
</p>
339
 
<p>
340
 
Stroke the current path in the passed image.</p>
 
329
<a class="indexterm" name="id2640642"></a><pre class="programlisting">gboolean            gimp_path_stroke_current            (gint32 image_ID);</pre>
 
330
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
331
<h3 class="title">Warning</h3>
 
332
<p><code class="literal">gimp_path_stroke_current</code> is deprecated and should not be used in newly-written code.</p>
 
333
</div>
 
334
<p>
 
335
This procedure is deprecated! Use <a href="libgimp-gimpedit.html#gimp-edit-stroke-vectors"><code class="function">gimp_edit_stroke_vectors()</code></a>
 
336
instead.</p>
341
337
<p>
342
338
 
343
339
</p>
345
341
<col align="left" valign="top">
346
342
<tbody>
347
343
<tr>
348
 
<td>
349
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
350
 
<td> The ID of the image which contains the path to stroke.
 
344
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
345
<td> The image which contains the path to stroke.
351
346
</td>
352
347
</tr>
353
348
<tr>
354
 
<td>
355
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
349
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
356
350
<td> TRUE on success.
357
351
</td>
358
352
</tr>
361
355
</div>
362
356
<hr>
363
357
<div class="refsect2" lang="en">
364
 
<a name="id2608866"></a><h3>
 
358
<a name="id2640724"></a><h3>
365
359
<a name="gimp-path-get-point-at-dist"></a>gimp_path_get_point_at_dist ()</h3>
366
 
<a class="indexterm" name="id2608877"></a><pre class="programlisting">gint        gimp_path_get_point_at_dist     (gint32 image_ID,
367
 
                                             gdouble distance,
368
 
                                             gint *y_point,
369
 
                                             gdouble *slope);</pre>
370
 
<p>
371
 
Get point on a path at a specified distance along the path.
372
 
</p>
373
 
<p>
374
 
This will return the x,y position of a point at a given distance
375
 
along the bezier curve. The distance will be obtained by first
376
 
digitizing the curve internally and then walking along the curve.
377
 
For a closed curve the start of the path is the first point on the
378
 
path that was created. This might not be obvious. Note the current
379
 
path is used.</p>
 
360
<a class="indexterm" name="id2640737"></a><pre class="programlisting">gint                gimp_path_get_point_at_dist         (gint32 image_ID,
 
361
                                                         gdouble distance,
 
362
                                                         gint *y_point,
 
363
                                                         gdouble *slope);</pre>
 
364
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
365
<h3 class="title">Warning</h3>
 
366
<p><code class="literal">gimp_path_get_point_at_dist</code> is deprecated and should not be used in newly-written code.</p>
 
367
</div>
 
368
<p>
 
369
This procedure is deprecated! Use
 
370
<a href="libgimp-gimpvectors.html#gimp-vectors-stroke-get-point-at-dist"><code class="function">gimp_vectors_stroke_get_point_at_dist()</code></a> instead.</p>
380
371
<p>
381
372
 
382
373
</p>
384
375
<col align="left" valign="top">
385
376
<tbody>
386
377
<tr>
387
 
<td>
388
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
389
 
<td> The ID of the image the paths belongs to.
 
378
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
379
<td> The image the paths belongs to.
390
380
</td>
391
381
</tr>
392
382
<tr>
393
 
<td>
394
 
<span class="term"><em class="parameter"><code>distance</code></em>&#160;:</span></td>
 
383
<td><span class="term"><em class="parameter"><code>distance</code></em>&#160;:</span></td>
395
384
<td> The distance along the path.
396
385
</td>
397
386
</tr>
398
387
<tr>
399
 
<td>
400
 
<span class="term"><em class="parameter"><code>y_point</code></em>&#160;:</span></td>
 
388
<td><span class="term"><em class="parameter"><code>y_point</code></em>&#160;:</span></td>
401
389
<td> The y position of the point.
402
390
</td>
403
391
</tr>
404
392
<tr>
405
 
<td>
406
 
<span class="term"><em class="parameter"><code>slope</code></em>&#160;:</span></td>
 
393
<td><span class="term"><em class="parameter"><code>slope</code></em>&#160;:</span></td>
407
394
<td> The slope (dy / dx) at the specified point.
408
395
</td>
409
396
</tr>
410
397
<tr>
411
 
<td>
412
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
398
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
413
399
<td> The x position of the point.
414
400
</td>
415
401
</tr>
418
404
</div>
419
405
<hr>
420
406
<div class="refsect2" lang="en">
421
 
<a name="id2609010"></a><h3>
 
407
<a name="id2640883"></a><h3>
422
408
<a name="gimp-path-get-tattoo"></a>gimp_path_get_tattoo ()</h3>
423
 
<a class="indexterm" name="id2609021"></a><pre class="programlisting">gint        gimp_path_get_tattoo            (gint32 image_ID,
424
 
                                             const gchar *name);</pre>
425
 
<p>
426
 
Returns the tattoo associated with the name path.
427
 
</p>
428
 
<p>
429
 
This procedure returns the tattoo associated with the specified
430
 
path. A tattoo is a unique and permanent identifier attached to a
431
 
path that can be used to uniquely identify a path within an image
432
 
even between sessions.</p>
 
409
<a class="indexterm" name="id2640896"></a><pre class="programlisting">gint                gimp_path_get_tattoo                (gint32 image_ID,
 
410
                                                         const gchar *name);</pre>
 
411
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
412
<h3 class="title">Warning</h3>
 
413
<p><code class="literal">gimp_path_get_tattoo</code> is deprecated and should not be used in newly-written code.</p>
 
414
</div>
 
415
<p>
 
416
This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors-get-tattoo"><code class="function">gimp_vectors_get_tattoo()</code></a> instead.</p>
433
417
<p>
434
418
 
435
419
</p>
437
421
<col align="left" valign="top">
438
422
<tbody>
439
423
<tr>
440
 
<td>
441
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
424
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
442
425
<td> The image.
443
426
</td>
444
427
</tr>
445
428
<tr>
446
 
<td>
447
 
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
429
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
448
430
<td> The name of the path whose tattoo should be obtained.
449
431
</td>
450
432
</tr>
451
433
<tr>
452
 
<td>
453
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
434
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
454
435
<td> The tattoo associated with the named path.
455
436
</td>
456
437
</tr>
459
440
</div>
460
441
<hr>
461
442
<div class="refsect2" lang="en">
462
 
<a name="id2609110"></a><h3>
 
443
<a name="id2641001"></a><h3>
463
444
<a name="gimp-get-path-by-tattoo"></a>gimp_get_path_by_tattoo ()</h3>
464
 
<a class="indexterm" name="id2609122"></a><pre class="programlisting">gchar*      gimp_get_path_by_tattoo         (gint32 image_ID,
465
 
                                             gint tattoo);</pre>
466
 
<p>
467
 
Return the name of the path with the given tattoo.
468
 
</p>
469
 
<p>
470
 
The procedure returns the name of the path in the specified image
471
 
which has the passed tattoo. The tattoos are unique within the image
472
 
and will be preserved across sessions and through renaming of the
473
 
path. An error is returned if no path with the specified tattoo can
474
 
be found.</p>
 
445
<a class="indexterm" name="id2641014"></a><pre class="programlisting">gchar*              gimp_get_path_by_tattoo             (gint32 image_ID,
 
446
                                                         gint tattoo);</pre>
 
447
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
448
<h3 class="title">Warning</h3>
 
449
<p><code class="literal">gimp_get_path_by_tattoo</code> is deprecated and should not be used in newly-written code.</p>
 
450
</div>
 
451
<p>
 
452
This procedure is deprecated! Use <a
 
453
href="../app/GimpImage.html#gimp-image-get-vectors-by-tattoo"
 
454
><code class="function">gimp_image_get_vectors_by_tattoo()</code></a>
 
455
instead.</p>
475
456
<p>
476
457
 
477
458
</p>
479
460
<col align="left" valign="top">
480
461
<tbody>
481
462
<tr>
482
 
<td>
483
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
463
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
484
464
<td> The image.
485
465
</td>
486
466
</tr>
487
467
<tr>
488
 
<td>
489
 
<span class="term"><em class="parameter"><code>tattoo</code></em>&#160;:</span></td>
 
468
<td><span class="term"><em class="parameter"><code>tattoo</code></em>&#160;:</span></td>
490
469
<td> The tattoo of the required path.
491
470
</td>
492
471
</tr>
493
472
<tr>
494
 
<td>
495
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
473
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
496
474
<td> The name of the path with the specified tattoo.
497
475
</td>
498
476
</tr>
501
479
</div>
502
480
<hr>
503
481
<div class="refsect2" lang="en">
504
 
<a name="id2609212"></a><h3>
 
482
<a name="id2641120"></a><h3>
505
483
<a name="gimp-path-delete"></a>gimp_path_delete ()</h3>
506
 
<a class="indexterm" name="id2609225"></a><pre class="programlisting">gboolean    gimp_path_delete                (gint32 image_ID,
507
 
                                             const gchar *name);</pre>
508
 
<p>
509
 
Delete the named path associated with the passed image.
510
 
</p>
511
 
<p>
512
 
Delete the named path.</p>
 
484
<a class="indexterm" name="id2641135"></a><pre class="programlisting">gboolean            gimp_path_delete                    (gint32 image_ID,
 
485
                                                         const gchar *name);</pre>
 
486
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
487
<h3 class="title">Warning</h3>
 
488
<p><code class="literal">gimp_path_delete</code> is deprecated and should not be used in newly-written code.</p>
 
489
</div>
 
490
<p>
 
491
This procedure is deprecated! Use <a href="libgimp-gimpimage.html#gimp-image-remove-vectors"><code class="function">gimp_image_remove_vectors()</code></a>
 
492
instead.</p>
513
493
<p>
514
494
 
515
495
</p>
517
497
<col align="left" valign="top">
518
498
<tbody>
519
499
<tr>
520
 
<td>
521
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
522
 
<td> The ID of the image to delete the path from.
 
500
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
501
<td> The image to delete the path from.
523
502
</td>
524
503
</tr>
525
504
<tr>
526
 
<td>
527
 
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
505
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
528
506
<td> The name of the path to delete.
529
507
</td>
530
508
</tr>
531
509
<tr>
532
 
<td>
533
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
510
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
534
511
<td> TRUE on success.
535
512
</td>
536
513
</tr>
539
516
</div>
540
517
<hr>
541
518
<div class="refsect2" lang="en">
542
 
<a name="id2609311"></a><h3>
 
519
<a name="id2648687"></a><h3>
543
520
<a name="gimp-path-get-locked"></a>gimp_path_get_locked ()</h3>
544
 
<a class="indexterm" name="id2609322"></a><pre class="programlisting">gint        gimp_path_get_locked            (gint32 image_ID,
545
 
                                             const gchar *name);</pre>
546
 
<p>
547
 
Returns the locked status associated with the named path.
548
 
</p>
549
 
<p>
550
 
This procedure returns the lock status associated with the specified
551
 
path. A path can be \"locked\" which means that the transformation
552
 
tool operations will also apply to the path.</p>
 
521
<a class="indexterm" name="id2648700"></a><pre class="programlisting">gboolean            gimp_path_get_locked                (gint32 image_ID,
 
522
                                                         const gchar *name);</pre>
 
523
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
524
<h3 class="title">Warning</h3>
 
525
<p><code class="literal">gimp_path_get_locked</code> is deprecated and should not be used in newly-written code.</p>
 
526
</div>
 
527
<p>
 
528
This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors-get-linked"><code class="function">gimp_vectors_get_linked()</code></a> instead.</p>
553
529
<p>
554
530
 
555
531
</p>
557
533
<col align="left" valign="top">
558
534
<tbody>
559
535
<tr>
560
 
<td>
561
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
536
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
562
537
<td> The image.
563
538
</td>
564
539
</tr>
565
540
<tr>
566
 
<td>
567
 
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
541
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
568
542
<td> The name of the path whose locked status should be obtained.
569
543
</td>
570
544
</tr>
571
545
<tr>
572
 
<td>
573
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
574
 
<td> The lock status associated with the name path. 0 is returned if the path is not locked. 1 is returned if the path is locked.
 
546
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
547
<td> TRUE if the path is locked, FALSE otherwise.
575
548
</td>
576
549
</tr>
577
550
</tbody>
579
552
</div>
580
553
<hr>
581
554
<div class="refsect2" lang="en">
582
 
<a name="id2602045"></a><h3>
 
555
<a name="id2648805"></a><h3>
583
556
<a name="gimp-path-set-locked"></a>gimp_path_set_locked ()</h3>
584
 
<a class="indexterm" name="id2602056"></a><pre class="programlisting">gboolean    gimp_path_set_locked            (gint32 image_ID,
585
 
                                             const gchar *name,
586
 
                                             gint lockstatus);</pre>
587
 
<p>
588
 
Set the locked status associated with the named path.
589
 
</p>
590
 
<p>
591
 
This procedure sets the lock status associated with the specified
592
 
path. A path can be \"locked\" which means that the transformation
593
 
tool operations will also apply to the path.</p>
 
557
<a class="indexterm" name="id2648819"></a><pre class="programlisting">gboolean            gimp_path_set_locked                (gint32 image_ID,
 
558
                                                         const gchar *name,
 
559
                                                         gboolean locked);</pre>
 
560
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
561
<h3 class="title">Warning</h3>
 
562
<p><code class="literal">gimp_path_set_locked</code> is deprecated and should not be used in newly-written code.</p>
 
563
</div>
 
564
<p>
 
565
This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors-set-linked"><code class="function">gimp_vectors_set_linked()</code></a> instead.</p>
594
566
<p>
595
567
 
596
568
</p>
598
570
<col align="left" valign="top">
599
571
<tbody>
600
572
<tr>
601
 
<td>
602
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
573
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
603
574
<td> The image.
604
575
</td>
605
576
</tr>
606
577
<tr>
607
 
<td>
608
 
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
578
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
609
579
<td> the name of the path whose locked status should be set.
610
580
</td>
611
581
</tr>
612
582
<tr>
613
 
<td>
614
 
<span class="term"><em class="parameter"><code>lockstatus</code></em>&#160;:</span></td>
615
 
<td> The lock status associated with the name path. 0 if the path is not locked. 1 if the path is to be locked.
 
583
<td><span class="term"><em class="parameter"><code>locked</code></em>&#160;:</span></td>
 
584
<td> Whether the path is locked.
616
585
</td>
617
586
</tr>
618
587
<tr>
619
 
<td>
620
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
588
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
621
589
<td> TRUE on success.
622
590
</td>
623
591
</tr>
626
594
</div>
627
595
<hr>
628
596
<div class="refsect2" lang="en">
629
 
<a name="id2602168"></a><h3>
 
597
<a name="id2648944"></a><h3>
630
598
<a name="gimp-path-set-tattoo"></a>gimp_path_set_tattoo ()</h3>
631
 
<a class="indexterm" name="id2602179"></a><pre class="programlisting">gboolean    gimp_path_set_tattoo            (gint32 image_ID,
632
 
                                             const gchar *name,
633
 
                                             gint tattovalue);</pre>
634
 
<p>
635
 
Sets the tattoo associated with the named path.
636
 
</p>
637
 
<p>
638
 
This procedure sets the tattoo associated with the specified path. A
639
 
tattoo is a unique and permenant identifier attached to a path that
640
 
can be used to uniquely identify a path within an image even between
641
 
sessions. Note that the value passed to this function must have been
642
 
obtained from a previous call to path_get_tattoo.</p>
 
599
<a class="indexterm" name="id2648958"></a><pre class="programlisting">gboolean            gimp_path_set_tattoo                (gint32 image_ID,
 
600
                                                         const gchar *name,
 
601
                                                         gint tattovalue);</pre>
 
602
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
603
<h3 class="title">Warning</h3>
 
604
<p><code class="literal">gimp_path_set_tattoo</code> is deprecated and should not be used in newly-written code.</p>
 
605
</div>
 
606
<p>
 
607
This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors-set-tattoo"><code class="function">gimp_vectors_set_tattoo()</code></a> instead.</p>
643
608
<p>
644
609
 
645
610
</p>
647
612
<col align="left" valign="top">
648
613
<tbody>
649
614
<tr>
650
 
<td>
651
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
615
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
652
616
<td> The image.
653
617
</td>
654
618
</tr>
655
619
<tr>
656
 
<td>
657
 
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
620
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
658
621
<td> the name of the path whose tattoo should be set.
659
622
</td>
660
623
</tr>
661
624
<tr>
662
 
<td>
663
 
<span class="term"><em class="parameter"><code>tattovalue</code></em>&#160;:</span></td>
 
625
<td><span class="term"><em class="parameter"><code>tattovalue</code></em>&#160;:</span></td>
664
626
<td> The tattoo associated with the name path. Only values returned from 'path_get_tattoo' should be used here.
665
627
</td>
666
628
</tr>
667
629
<tr>
668
 
<td>
669
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
630
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
670
631
<td> TRUE on success.
671
632
</td>
672
633
</tr>
675
636
</div>
676
637
<hr>
677
638
<div class="refsect2" lang="en">
678
 
<a name="id2602294"></a><h3>
 
639
<a name="id2649085"></a><h3>
679
640
<a name="gimp-path-to-selection"></a>gimp_path_to_selection ()</h3>
680
 
<a class="indexterm" name="id2602305"></a><pre class="programlisting">gboolean    gimp_path_to_selection          (gint32 image_ID,
681
 
                                             const gchar *name,
682
 
                                             <a href="libgimp-gimpenums.html#GimpChannelOps">GimpChannelOps</a> op,
683
 
                                             gboolean antialias,
684
 
                                             gboolean feather,
685
 
                                             gdouble feather_radius_x,
686
 
                                             gdouble feather_radius_y);</pre>
687
 
<p>
688
 
Transforms the active path into a selection
689
 
</p>
690
 
<p>
691
 
This procedure renders the desired path into the current selection.</p>
 
641
<a class="indexterm" name="id2649098"></a><pre class="programlisting">gboolean            gimp_path_to_selection              (gint32 image_ID,
 
642
                                                         const gchar *name,
 
643
                                                         <a
 
644
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpChannelOps"
 
645
>GimpChannelOps</a> op,
 
646
                                                         gboolean antialias,
 
647
                                                         gboolean feather,
 
648
                                                         gdouble feather_radius_x,
 
649
                                                         gdouble feather_radius_y);</pre>
 
650
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
651
<h3 class="title">Warning</h3>
 
652
<p><code class="literal">gimp_path_to_selection</code> is deprecated and should not be used in newly-written code.</p>
 
653
</div>
 
654
<p>
 
655
This procedure is deprecated! Use <a href="libgimp-gimpvectors.html#gimp-vectors-to-selection"><code class="function">gimp_vectors_to_selection()</code></a>
 
656
instead.</p>
692
657
<p>
693
658
 
694
659
</p>
696
661
<col align="left" valign="top">
697
662
<tbody>
698
663
<tr>
699
 
<td>
700
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
664
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
701
665
<td> The image.
702
666
</td>
703
667
</tr>
704
668
<tr>
705
 
<td>
706
 
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
 
669
<td><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
707
670
<td> The name of the path which should be made into selection.
708
671
</td>
709
672
</tr>
710
673
<tr>
711
 
<td>
712
 
<span class="term"><em class="parameter"><code>op</code></em>&#160;:</span></td>
 
674
<td><span class="term"><em class="parameter"><code>op</code></em>&#160;:</span></td>
713
675
<td> The desired operation with current selection.
714
676
</td>
715
677
</tr>
716
678
<tr>
717
 
<td>
718
 
<span class="term"><em class="parameter"><code>antialias</code></em>&#160;:</span></td>
 
679
<td><span class="term"><em class="parameter"><code>antialias</code></em>&#160;:</span></td>
719
680
<td> Antialias selection.
720
681
</td>
721
682
</tr>
722
683
<tr>
723
 
<td>
724
 
<span class="term"><em class="parameter"><code>feather</code></em>&#160;:</span></td>
 
684
<td><span class="term"><em class="parameter"><code>feather</code></em>&#160;:</span></td>
725
685
<td> Feather selection.
726
686
</td>
727
687
</tr>
728
688
<tr>
729
 
<td>
730
 
<span class="term"><em class="parameter"><code>feather_radius_x</code></em>&#160;:</span></td>
 
689
<td><span class="term"><em class="parameter"><code>feather_radius_x</code></em>&#160;:</span></td>
731
690
<td> Feather radius x.
732
691
</td>
733
692
</tr>
734
693
<tr>
735
 
<td>
736
 
<span class="term"><em class="parameter"><code>feather_radius_y</code></em>&#160;:</span></td>
 
694
<td><span class="term"><em class="parameter"><code>feather_radius_y</code></em>&#160;:</span></td>
737
695
<td> Feather radius y.
738
696
</td>
739
697
</tr>
740
698
<tr>
741
 
<td>
742
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
699
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
743
700
<td> TRUE on success.
744
701
</td>
745
702
</tr>
748
705
</div>
749
706
<hr>
750
707
<div class="refsect2" lang="en">
751
 
<a name="id2602499"></a><h3>
 
708
<a name="id2649310"></a><h3>
752
709
<a name="gimp-path-import"></a>gimp_path_import ()</h3>
753
 
<a class="indexterm" name="id2602511"></a><pre class="programlisting">gboolean    gimp_path_import                (gint32 image_ID,
754
 
                                             const gchar *filename,
755
 
                                             gboolean merge,
756
 
                                             gboolean scale);</pre>
757
 
<p>
758
 
Import paths from an SVG file.
759
 
</p>
760
 
<p>
761
 
This procedure imports paths from an SVG file. This is a temporary
762
 
solution until the new vectors PDB API is in place. Don't rely on
763
 
this function being available in future GIMP releases.</p>
 
710
<a class="indexterm" name="id2649324"></a><pre class="programlisting">gboolean            gimp_path_import                    (gint32 image_ID,
 
711
                                                         const gchar *filename,
 
712
                                                         gboolean merge,
 
713
                                                         gboolean scale);</pre>
 
714
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
 
715
<h3 class="title">Warning</h3>
 
716
<p><code class="literal">gimp_path_import</code> is deprecated and should not be used in newly-written code.</p>
 
717
</div>
 
718
<p>
 
719
This procedure is deprecated! Use <code class="function">vectors_import_from_file()</code>
 
720
instead.</p>
764
721
<p>
765
722
 
766
723
</p>
768
725
<col align="left" valign="top">
769
726
<tbody>
770
727
<tr>
771
 
<td>
772
 
<span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
 
728
<td><span class="term"><em class="parameter"><code>image_ID</code></em>&#160;:</span></td>
773
729
<td> The image.
774
730
</td>
775
731
</tr>
776
732
<tr>
777
 
<td>
778
 
<span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></td>
 
733
<td><span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></td>
779
734
<td> The name of the SVG file to import.
780
735
</td>
781
736
</tr>
782
737
<tr>
783
 
<td>
784
 
<span class="term"><em class="parameter"><code>merge</code></em>&#160;:</span></td>
 
738
<td><span class="term"><em class="parameter"><code>merge</code></em>&#160;:</span></td>
785
739
<td> Merge paths into a single vectors object.
786
740
</td>
787
741
</tr>
788
742
<tr>
789
 
<td>
790
 
<span class="term"><em class="parameter"><code>scale</code></em>&#160;:</span></td>
 
743
<td><span class="term"><em class="parameter"><code>scale</code></em>&#160;:</span></td>
791
744
<td> Scale the SVG to image dimensions.
792
745
</td>
793
746
</tr>
794
747
<tr>
795
 
<td>
796
 
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
 
748
<td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
797
749
<td> TRUE on success.
798
750
</td>
799
751
</tr>