<?xml version="1.0"?>
<page id="Gimp.Path.stroke_get_points"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.Path" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gimp.PathStrokeType</api:type>
      </api:returns>
      <api:name>gimp_path_stroke_get_points</api:name>
      <api:arg>
        <api:type>Number(gint)</api:type>
        <api:name>stroke_id</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Path.prototype.stroke_get_points</title>
  <synopsis><code mime="text/x-gjs">
function stroke_get_points(stroke_id: Number(gint)): [return_value: <link xref="Gimp.PathStrokeType">Gimp.PathStrokeType</link>, controlpoints: Array(Number(gdouble)), closed: Boolean] {
    // Gjs wrapper for gimp_path_stroke_get_points()
}
  </code></synopsis>
  <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>Since 2.4</p>
<terms>
<item>
<title><code>stroke_id</code></title>
  <p>The stroke ID.</p>
</item>
<item>
<title><code>return_value</code></title>
  <p>type of the stroke (always GIMP_PATH_STROKE_TYPE_BEZIER for now).</p>
</item>
<item>
<title><code>controlpoints</code></title>
  <p>List of the control points for the stroke (x0, y0, x1, y1, ...).</p>
</item>
<item>
<title><code>closed</code></title>
  <p>Whether the stroke is closed or not.</p>
</item>
</terms>

</page>
