# C1.Util.DX.Direct2D.GeometryRealization.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_GeometryRealization_Create_" data-uid="C1.Util.DX.Direct2D.GeometryRealization.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_GeometryRealization_Create_" data-uid="C1.Util.DX.Direct2D.GeometryRealization.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_GeometryRealization_Create_C1_Util_DX_Direct2D_DeviceContext1_C1_Util_DX_Direct2D_Geometry_System_Single_" data-uid="C1.Util.DX.Direct2D.GeometryRealization.Create(C1.Util.DX.Direct2D.DeviceContext1,C1.Util.DX.Direct2D.Geometry,System.Single)">Create(DeviceContext1, Geometry, float)</h4>
<div class="markdown level1 summary"><p>Creates a device-dependent representation of the fill of the geometry that can be subsequently rendered.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GeometryRealization Create(DeviceContext1 context, Geometry geometry, float flatteningTolerance)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(context As DeviceContext1, geometry As Geometry, flatteningTolerance As Single) As GeometryRealization</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="C1.Util.DX.Direct2D.DeviceContext1.html">DeviceContext1</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The device context where the created instance should be attached to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Geometry.html">Geometry</a></td>
      <td><span class="parametername">geometry</span></td>
      <td><p>The geometry to realize.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">flatteningTolerance</span></td>
      <td><p>The flattening tolerance to use when converting Beziers to line segments. This parameter shares the same units as the coordinates of the geometry.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.GeometryRealization.html">GeometryRealization</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_GeometryRealization_Create_" data-uid="C1.Util.DX.Direct2D.GeometryRealization.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_GeometryRealization_Create_C1_Util_DX_Direct2D_DeviceContext1_C1_Util_DX_Direct2D_Geometry_System_Single_System_Single_C1_Util_DX_Direct2D_StrokeStyle_" data-uid="C1.Util.DX.Direct2D.GeometryRealization.Create(C1.Util.DX.Direct2D.DeviceContext1,C1.Util.DX.Direct2D.Geometry,System.Single,System.Single,C1.Util.DX.Direct2D.StrokeStyle)">Create(DeviceContext1, Geometry, float, float, StrokeStyle)</h4>
<div class="markdown level1 summary"><p>Creates a device-dependent representation of the stroke of a geometry that can be subsequently rendered.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GeometryRealization Create(DeviceContext1 context, Geometry geometry, float flatteningTolerance, float strokeWidth, StrokeStyle strokeStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(context As DeviceContext1, geometry As Geometry, flatteningTolerance As Single, strokeWidth As Single, strokeStyle As StrokeStyle) As GeometryRealization</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="C1.Util.DX.Direct2D.DeviceContext1.html">DeviceContext1</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The device context where the created instance should be attached to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Geometry.html">Geometry</a></td>
      <td><span class="parametername">geometry</span></td>
      <td><p>The geometry to realize.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">flatteningTolerance</span></td>
      <td><p>The flattening tolerance to use when converting Beziers to line segments. This parameter shares the same units as the coordinates of the geometry.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">strokeWidth</span></td>
      <td><p>The width of the stroke. This parameter shares the same units as the coordinates of the geometry.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.StrokeStyle.html">StrokeStyle</a></td>
      <td><span class="parametername">strokeStyle</span></td>
      <td><p>The stroke style (optional).</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.GeometryRealization.html">GeometryRealization</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
