# C1.Util.DX.Direct2D.Effects.DirectionalBlur

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_Effects_DirectionalBlur" data-uid="C1.Util.DX.Direct2D.Effects.DirectionalBlur" class="text-break">DirectionalBlur Class
</h1>
  <div class="markdown level0 summary"><p>Builtin DirectionalBlur effect.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Util.DX.DisposeBase.html">DisposeBase</a></div>
    <div class="level2"><a class="xref" href="C1.Util.DX.CppObject.html">CppObject</a></div>
    <div class="level3"><a class="xref" href="C1.Util.DX.ComObject.html">ComObject</a></div>
    <div class="level4"><a class="xref" href="C1.Util.DX.Direct2D.Properties.html">Properties</a></div>
    <div class="level5"><a class="xref" href="C1.Util.DX.Direct2D.Effect.html">Effect</a></div>
    <div class="level6"><span class="xref">DirectionalBlur</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="C1.Util.DX.IUnknown.html">IUnknown</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.Direct2D.Effects.html">C1.Util.DX.Direct2D.Effects</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.10.dll</h6>
  <h5 id="C1_Util_DX_Direct2D_Effects_DirectionalBlur_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DirectionalBlur : Effect, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DirectionalBlur
    Inherits Effect
    Implements IDisposable, IUnknown</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_DirectionalBlur__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.Effects.DirectionalBlur.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DirectionalBlur.-ctor.html#C1_Util_DX_Direct2D_Effects_DirectionalBlur__ctor_System_IntPtr_">DirectionalBlur(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.Effects.DirectionalBlur.html">DirectionalBlur</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_DirectionalBlur_Angle" data-uid="C1.Util.DX.Direct2D.Effects.DirectionalBlur.Angle">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DirectionalBlur.Angle.html#C1_Util_DX_Direct2D_Effects_DirectionalBlur_Angle">Angle</a>
        </td>
        <td class="markdown level1 summary"><p>The angle of the blur relative to the x-axis, in the counterclockwise direction. The units are specified in degrees.
The blur kernel is first generated using the same process as for the Gaussian Blur effect. The kernel values are then transformed according to the blur angle using this equation and then applied to the bitmap.
offset2D – amount of transformation introduced in the blur kernel as a result of the blur angle.
dist – distance from the center of the kernel to the current position in the kernel. offset2d = (dist * cos(??), dist * sin(??) )</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_DirectionalBlur_BorderMode" data-uid="C1.Util.DX.Direct2D.Effects.DirectionalBlur.BorderMode">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DirectionalBlur.BorderMode.html#C1_Util_DX_Direct2D_Effects_DirectionalBlur_BorderMode">BorderMode</a>
        </td>
        <td class="markdown level1 summary"><p>The mode used to calculate the border of the image, soft or hard. See <a class="xref" href="C1.Util.DX.Direct2D.Effects.DirectionalBlur.BorderMode.html#C1_Util_DX_Direct2D_Effects_DirectionalBlur_BorderMode">BorderMode</a> modes for more info.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_DirectionalBlur_Optimization" data-uid="C1.Util.DX.Direct2D.Effects.DirectionalBlur.Optimization">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DirectionalBlur.Optimization.html#C1_Util_DX_Direct2D_Effects_DirectionalBlur_Optimization">Optimization</a>
        </td>
        <td class="markdown level1 summary"><p>The optimization mode. See <a class="xref" href="C1.Util.DX.Direct2D.DirectionalBlurOptimization.html">DirectionalBlurOptimization</a> modes for more info.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_DirectionalBlur_StandardDeviation" data-uid="C1.Util.DX.Direct2D.Effects.DirectionalBlur.StandardDeviation">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DirectionalBlur.StandardDeviation.html#C1_Util_DX_Direct2D_Effects_DirectionalBlur_StandardDeviation">StandardDeviation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the amount of blur to be applied to the image. Default: 1.0f</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_DirectionalBlur_Create_C1_Util_DX_Direct2D_DeviceContext_" data-uid="C1.Util.DX.Direct2D.Effects.DirectionalBlur.Create(C1.Util.DX.Direct2D.DeviceContext)">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DirectionalBlur.Create.html#C1_Util_DX_Direct2D_Effects_DirectionalBlur_Create_C1_Util_DX_Direct2D_DeviceContext_">Create(DeviceContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Util.DX.Direct2D.Effects.DirectionalBlur.html">DirectionalBlur</a> effect.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
