# C1.Util.DX.Direct2D.Effects.DistantDiffuse

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_Effects_DistantDiffuse" data-uid="C1.Util.DX.Direct2D.Effects.DistantDiffuse" class="text-break">DistantDiffuse Class
</h1>
  <div class="markdown level0 summary"><p>Builtin DistantDiffuse 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">DistantDiffuse</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.WPF.DX.4.6.2.dll</h6>
  <h5 id="C1_Util_DX_Direct2D_Effects_DistantDiffuse_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DistantDiffuse : Effect, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DistantDiffuse
    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_DistantDiffuse__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.Effects.DistantDiffuse.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DistantDiffuse.-ctor.html#C1_Util_DX_Direct2D_Effects_DistantDiffuse__ctor_System_IntPtr_">DistantDiffuse(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.Effects.DistantDiffuse.html">DistantDiffuse</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_DistantDiffuse_Azimuth" data-uid="C1.Util.DX.Direct2D.Effects.DistantDiffuse.Azimuth">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DistantDiffuse.Azimuth.html#C1_Util_DX_Direct2D_Effects_DistantDiffuse_Azimuth">Azimuth</a>
        </td>
        <td class="markdown level1 summary"><p>The direction angle of the light source in the XY plane relative to the X-axis in the counter clock wise direction. The units are in degrees and must be between 0 and 360 degrees.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_DistantDiffuse_Color" data-uid="C1.Util.DX.Direct2D.Effects.DistantDiffuse.Color">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DistantDiffuse.Color.html#C1_Util_DX_Direct2D_Effects_DistantDiffuse_Color">Color</a>
        </td>
        <td class="markdown level1 summary"><p>The color of the incoming light. This property is exposed as a <a class="xref" href="C1.Util.DX.Vector3.html">Vector3</a> – (R, G, B) and used to compute LR, LG, LB.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_DistantDiffuse_DiffuseConstant" data-uid="C1.Util.DX.Direct2D.Effects.DistantDiffuse.DiffuseConstant">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DistantDiffuse.DiffuseConstant.html#C1_Util_DX_Direct2D_Effects_DistantDiffuse_DiffuseConstant">DiffuseConstant</a>
        </td>
        <td class="markdown level1 summary"><p>The ratio of diffuse reflection to amount of incoming light. This property must be between 0 and 10,000 and is unitless.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_DistantDiffuse_Elevation" data-uid="C1.Util.DX.Direct2D.Effects.DistantDiffuse.Elevation">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DistantDiffuse.Elevation.html#C1_Util_DX_Direct2D_Effects_DistantDiffuse_Elevation">Elevation</a>
        </td>
        <td class="markdown level1 summary"><p>The direction angle of the light source in the YZ plane relative to the Y-axis in the counter clock wise direction. The units are in degrees and must be between 0 and 360 degrees.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_DistantDiffuse_KernelUnitLength" data-uid="C1.Util.DX.Direct2D.Effects.DistantDiffuse.KernelUnitLength">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DistantDiffuse.KernelUnitLength.html#C1_Util_DX_Direct2D_Effects_DistantDiffuse_KernelUnitLength">KernelUnitLength</a>
        </td>
        <td class="markdown level1 summary"><p>The size of an element in the Sobel kernel used to generate the surface normal in the X and Y direction.
This property maps to the dx and dy values in the Sobel gradient.
This property is a <a class="xref" href="C1.Util.DX.Vector2.html">Vector2</a> (Kernel Unit Length X, Kernel Unit Length Y) and is defined in (device-independent pixels (DIPs)/Kernel Unit).
The effect uses bilinear interpolation to scale the bitmap to match size of kernel elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_DistantDiffuse_ScaleMode" data-uid="C1.Util.DX.Direct2D.Effects.DistantDiffuse.ScaleMode">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DistantDiffuse.ScaleMode.html#C1_Util_DX_Direct2D_Effects_DistantDiffuse_ScaleMode">ScaleMode</a>
        </td>
        <td class="markdown level1 summary"><p>The interpolation mode the effect uses to scale the image to the corresponding kernel unit length.
There are six scale modes that range in quality and speed.
If you don't select a mode, the effect uses the interpolation mode of the device context.
See Scale modes for more info.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_DistantDiffuse_SurfaceScale" data-uid="C1.Util.DX.Direct2D.Effects.DistantDiffuse.SurfaceScale">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DistantDiffuse.SurfaceScale.html#C1_Util_DX_Direct2D_Effects_DistantDiffuse_SurfaceScale">SurfaceScale</a>
        </td>
        <td class="markdown level1 summary"><p>The scale factor in the Z direction. The value is unitless and must be between 0 and 10,000.</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_DistantDiffuse_Create_C1_Util_DX_Direct2D_DeviceContext_" data-uid="C1.Util.DX.Direct2D.Effects.DistantDiffuse.Create(C1.Util.DX.Direct2D.DeviceContext)">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.DistantDiffuse.Create.html#C1_Util_DX_Direct2D_Effects_DistantDiffuse_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.DistantDiffuse.html">DistantDiffuse</a> effect.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
