<?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>Gimp.Path</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>int</api:type>
        <api:name>stroke_id</api:name>
      </api:arg>
      <api:arg>
        <api:type>gsize</api:type>
        <api:name>num_points</api:name>
      </api:arg>
      <api:arg>
        <api:type>[float]</api:type>
        <api:name>controlpoints</api:name>
      </api:arg>
      <api:arg>
        <api:type>bool</api:type>
        <api:name>closed</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Path.stroke_get_points</title>
  <synopsis><code mime="text/x-python">
@accepts(Gimp.Path, int, gsize, [float], bool)
@returns(Gimp.PathStrokeType)
def stroke_get_points(self, stroke_id, num_points, controlpoints, closed):
    # Python 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>self</code></title>
  <p>The path object.</p>
</item>
<item>
<title><code>stroke_id</code></title>
  <p>The stroke ID.</p>
</item>
<item>
<title><code>num_points</code></title>
  <p>The number of floats returned.</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>
<item>
<title><code>Returns</code></title>
{formatter.format(node, node.retval.doc)}
</item>
</terms>

</page>
