# C1.Util.DX.Direct2D.Effects.Scale

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_Effects_Scale" data-uid="C1.Util.DX.Direct2D.Effects.Scale" class="text-break">Scale Class
</h1>
  <div class="markdown level0 summary"><p>Builtin Scale 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">Scale</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_Scale_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Scale : Effect, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Scale
    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_Scale__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.Effects.Scale.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.Scale.-ctor.html#C1_Util_DX_Direct2D_Effects_Scale__ctor_System_IntPtr_">Scale(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.Effects.Scale.html">Scale</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_Scale_BorderMode" data-uid="C1.Util.DX.Direct2D.Effects.Scale.BorderMode">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.Scale.BorderMode.html#C1_Util_DX_Direct2D_Effects_Scale_BorderMode">BorderMode</a>
        </td>
        <td class="markdown level1 summary"><p>The mode used to calculate the border of the image, soft or hard. See Border modes for more info.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_Scale_CenterPoint" data-uid="C1.Util.DX.Direct2D.Effects.Scale.CenterPoint">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.Scale.CenterPoint.html#C1_Util_DX_Direct2D_Effects_Scale_CenterPoint">CenterPoint</a>
        </td>
        <td class="markdown level1 summary"><p>The image scaling center point. This property is a <a class="xref" href="C1.Util.DX.Vector2.html">Vector2</a> defined as: (point X, point Y). The units are in DIPs.
Use the center point property to scale around a point other than the upper-left corner.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_Scale_InterpolationMode" data-uid="C1.Util.DX.Direct2D.Effects.Scale.InterpolationMode">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.Scale.InterpolationMode.html#C1_Util_DX_Direct2D_Effects_Scale_InterpolationMode">InterpolationMode</a>
        </td>
        <td class="markdown level1 summary"><p>The interpolation mode the effect uses to scale the image.
There are 6 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 Interpolation modes for more info.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_Scale_ScaleAmount" data-uid="C1.Util.DX.Direct2D.Effects.Scale.ScaleAmount">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.Scale.ScaleAmount.html#C1_Util_DX_Direct2D_Effects_Scale_ScaleAmount">ScaleAmount</a>
        </td>
        <td class="markdown level1 summary"><p>The scale amount in the X and Y direction as a ratio of the output size to the input size. This property a <a class="xref" href="C1.Util.DX.Vector2.html">Vector2</a> defined as: (X scale, Y scale). The scale amounts are FLOAT, unitless, and must be positive or 0.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_Effects_Scale_Sharpness" data-uid="C1.Util.DX.Direct2D.Effects.Scale.Sharpness">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.Scale.Sharpness.html#C1_Util_DX_Direct2D_Effects_Scale_Sharpness">Sharpness</a>
        </td>
        <td class="markdown level1 summary"><p>In the high quality cubic interpolation mode, the sharpness level of the scaling filter as a float between 0 and 1. The values are unitless. You can use sharpness to adjust the quality of an image when you scale the image down.
The sharpness factor affects the shape of the kernel. The higher the sharpness factor, the smaller the kernel.</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_Scale_Create_C1_Util_DX_Direct2D_DeviceContext_" data-uid="C1.Util.DX.Direct2D.Effects.Scale.Create(C1.Util.DX.Direct2D.DeviceContext)">
          <a class="xref" href="C1.Util.DX.Direct2D.Effects.Scale.Create.html#C1_Util_DX_Direct2D_Effects_Scale_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.Scale.html">Scale</a> effect.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
