# GrapeCity.Documents.Imaging.Windows.Scaler.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_Windows_Scaler__ctor_" data-uid="GrapeCity.Documents.Imaging.Windows.Scaler.#ctor*">Scaler Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_Windows_Scaler__ctor_" data-uid="GrapeCity.Documents.Imaging.Windows.Scaler.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_Scaler__ctor" data-uid="GrapeCity.Documents.Imaging.Windows.Scaler.#ctor">Scaler()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Windows.Scaler.html">Scaler</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 Scaler()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="GrapeCity_Documents_Imaging_Windows_Scaler__ctor_" data-uid="GrapeCity.Documents.Imaging.Windows.Scaler.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_Scaler__ctor_System_Int32_System_Int32_GrapeCity_Documents_Imaging_Windows_WicInterpolationMode_" data-uid="GrapeCity.Documents.Imaging.Windows.Scaler.#ctor(System.Int32,System.Int32,GrapeCity.Documents.Imaging.Windows.WicInterpolationMode)">Scaler(int, int, WicInterpolationMode)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.Windows.Scaler.html">Scaler</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 Scaler(int destinationWidth, int destinationHeight, WicInterpolationMode interpolationMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(destinationWidth As Integer, destinationHeight As Integer, interpolationMode As WicInterpolationMode)</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">destinationWidth</span></td>
      <td><p>The destination width.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">destinationHeight</span></td>
      <td><p>The desination height.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Imaging.Windows.WicInterpolationMode.html">WicInterpolationMode</a></td>
      <td><span class="parametername">interpolationMode</span></td>
      <td><p>The interpolation mode to use when scaling.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
