# C1.Util.DX.Direct2D.Effect.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_Effect_Create_" data-uid="C1.Util.DX.Direct2D.Effect.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_Effect_Create_" data-uid="C1.Util.DX.Direct2D.Effect.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_Effect_Create_C1_Util_DX_Direct2D_DeviceContext_System_Guid_" data-uid="C1.Util.DX.Direct2D.Effect.Create(C1.Util.DX.Direct2D.DeviceContext,System.Guid)">Create(DeviceContext, Guid)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.Effect.html">Effect</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Effect Create(DeviceContext deviceContext, Guid effectId)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(deviceContext As DeviceContext, effectId As Guid) As Effect</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.DeviceContext.html">DeviceContext</a></td>
      <td><span class="parametername">deviceContext</span></td>
      <td><p>The device context.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a></td>
      <td><span class="parametername">effectId</span></td>
      <td><p>The class ID of the effect to create.</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.Effect.html">Effect</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Util_DX_Direct2D_Effect_Create_C1_Util_DX_Direct2D_DeviceContext_System_Guid__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The created effect does not increment the reference count for the dynamic-link library (DLL) from which the effect was created. If the application deletes an effect while that effect is loaded, the resulting behavior will be unpredictable.</p>
</div>


<a id="C1_Util_DX_Direct2D_Effect_Create_" data-uid="C1.Util.DX.Direct2D.Effect.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_Effect_Create_C1_Util_DX_Direct2D_EffectContext_System_Guid_" data-uid="C1.Util.DX.Direct2D.Effect.Create(C1.Util.DX.Direct2D.EffectContext,System.Guid)">Create(EffectContext, Guid)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.Effect.html">Effect</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Effect Create(EffectContext effectContext, Guid effectId)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(effectContext As EffectContext, effectId As Guid) As Effect</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.EffectContext.html">EffectContext</a></td>
      <td><span class="parametername">effectContext</span></td>
      <td><p>The effect context.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a></td>
      <td><span class="parametername">effectId</span></td>
      <td><p>The class ID of the effect to create.</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.Effect.html">Effect</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
