# C1.Util.GraphicsRendering.DrawPath

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_GraphicsRendering_DrawPath_" data-uid="C1.Util.GraphicsRendering.DrawPath*">DrawPath Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_GraphicsRendering_DrawPath_" data-uid="C1.Util.GraphicsRendering.DrawPath*"></a>
<h4 id="C1_Util_GraphicsRendering_DrawPath_System_Double___System_Double___System_Byte___System_Boolean_" data-uid="C1.Util.GraphicsRendering.DrawPath(System.Double[],System.Double[],System.Byte[],System.Boolean)">DrawPath(double[], double[], byte[], bool)</h4>
<div class="markdown level1 summary"><p>Draws a path defined by points and types and fill.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawPath(double[] xs, double[] ys, byte[] types, bool close)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawPath(xs As Double(), ys As Double(), types As Byte(), close As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</td>
      <td><span class="parametername">xs</span></td>
      <td><p>Array of x-coordinates.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</td>
      <td><span class="parametername">ys</span></td>
      <td><p>Array of y-coordinates.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td><span class="parametername">types</span></td>
      <td><p>The path types to draw (see remarks).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">close</span></td>
      <td><p>Whether is closed path (figure) or not.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Util_GraphicsRendering_DrawPath_System_Double___System_Double___System_Byte___System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Path types:
0x00: the start of a figure
0x01: one of the two endpoints of a line
0x02: an endpoint or control point of a Quadratic Bézier (two points)
0x03: an endpoint or control point of a Bézier (three points)
0x80: the last point of a figure
0x81: the last point of the figure in a closed sub path (one point)
0x82: the last point of the figure for Quadratic Bézier curve of the figure in a closed sub path (two points)
0x83: the last point of the figure for Bézier curve of the figure in a closed sub path (three points)</p>
</div>
</div>
