# C1.Util.DX.Direct2D.Effects.SpotDiffuse.KernelUnitLength

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_Effects_SpotDiffuse_KernelUnitLength_" data-uid="C1.Util.DX.Direct2D.Effects.SpotDiffuse.KernelUnitLength*">KernelUnitLength Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_Effects_SpotDiffuse_KernelUnitLength_" data-uid="C1.Util.DX.Direct2D.Effects.SpotDiffuse.KernelUnitLength*"></a>
<h4 id="C1_Util_DX_Direct2D_Effects_SpotDiffuse_KernelUnitLength" data-uid="C1.Util.DX.Direct2D.Effects.SpotDiffuse.KernelUnitLength">KernelUnitLength</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Vector2 KernelUnitLength { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property KernelUnitLength As Vector2</code></pre>
</div>
</div>
