# C1.Util.DX.WIC.BitmapScaler.Initialize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_WIC_BitmapScaler_Initialize_" data-uid="C1.Util.DX.WIC.BitmapScaler.Initialize*">Initialize Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_WIC_BitmapScaler_Initialize_" data-uid="C1.Util.DX.WIC.BitmapScaler.Initialize*"></a>
<h4 id="C1_Util_DX_WIC_BitmapScaler_Initialize_C1_Util_DX_WIC_BitmapSource_System_Int32_System_Int32_C1_Util_DX_WIC_BitmapInterpolationMode_" data-uid="C1.Util.DX.WIC.BitmapScaler.Initialize(C1.Util.DX.WIC.BitmapSource,System.Int32,System.Int32,C1.Util.DX.WIC.BitmapInterpolationMode)">Initialize(BitmapSource, int, int, BitmapInterpolationMode)</h4>
<div class="markdown level1 summary"><p>HRESULT IWICBitmapScaler::Initialize([In] IWICBitmapSource* pISource,[In] unsigned int uiWidth,[In] unsigned int uiHeight,[In] WICBitmapInterpolationMode mode)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Initialize(BitmapSource sourceRef, int width, int height, BitmapInterpolationMode mode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Initialize(sourceRef As BitmapSource, width As Integer, height As Integer, mode As BitmapInterpolationMode)</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="C1.Util.DX.WIC.BitmapSource.html">BitmapSource</a></td>
      <td><span class="parametername">sourceRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.WIC.BitmapInterpolationMode.html">BitmapInterpolationMode</a></td>
      <td><span class="parametername">mode</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
