# C1.Util.DX.WIC.PlanarFormatConverter.Initialize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_WIC_PlanarFormatConverter_Initialize_" data-uid="C1.Util.DX.WIC.PlanarFormatConverter.Initialize*">Initialize Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_WIC_PlanarFormatConverter_Initialize_" data-uid="C1.Util.DX.WIC.PlanarFormatConverter.Initialize*"></a>
<h4 id="C1_Util_DX_WIC_PlanarFormatConverter_Initialize_C1_Util_DX_WIC_BitmapSource___System_Int32_System_Guid_C1_Util_DX_WIC_BitmapDitherType_C1_Util_DX_WIC_Palette_System_Double_C1_Util_DX_WIC_BitmapPaletteType_" data-uid="C1.Util.DX.WIC.PlanarFormatConverter.Initialize(C1.Util.DX.WIC.BitmapSource[],System.Int32,System.Guid,C1.Util.DX.WIC.BitmapDitherType,C1.Util.DX.WIC.Palette,System.Double,C1.Util.DX.WIC.BitmapPaletteType)">Initialize(BitmapSource[], int, Guid, BitmapDitherType, Palette, double, BitmapPaletteType)</h4>
<div class="markdown level1 summary"><p>HRESULT IWICPlanarFormatConverter::Initialize([In, Buffer] IWICBitmapSource** ppPlanes,[In] unsigned int cPlanes,[In] const GUID&amp; dstFormat,[In] WICBitmapDitherType dither,[In, Optional] IWICPalette* pIPalette,[In] double alphaThresholdPercent,[In] WICBitmapPaletteType paletteTranslate)</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[] planesOut, int planes, Guid dstFormat, BitmapDitherType dither, Palette paletteRef, double alphaThresholdPercent, BitmapPaletteType paletteTranslate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Initialize(planesOut As BitmapSource(), planes As Integer, dstFormat As Guid, dither As BitmapDitherType, paletteRef As Palette, alphaThresholdPercent As Double, paletteTranslate As BitmapPaletteType)</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">planesOut</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">planes</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a></td>
      <td><span class="parametername">dstFormat</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.WIC.BitmapDitherType.html">BitmapDitherType</a></td>
      <td><span class="parametername">dither</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.WIC.Palette.html">Palette</a></td>
      <td><span class="parametername">paletteRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">alphaThresholdPercent</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.WIC.BitmapPaletteType.html">BitmapPaletteType</a></td>
      <td><span class="parametername">paletteTranslate</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_WIC_PlanarFormatConverter_Initialize_" data-uid="C1.Util.DX.WIC.PlanarFormatConverter.Initialize*"></a>
<h4 id="C1_Util_DX_WIC_PlanarFormatConverter_Initialize_C1_Util_DX_ComArray_C1_Util_DX_WIC_BitmapSource__System_Int32_System_Guid_C1_Util_DX_WIC_BitmapDitherType_C1_Util_DX_WIC_Palette_System_Double_C1_Util_DX_WIC_BitmapPaletteType_" data-uid="C1.Util.DX.WIC.PlanarFormatConverter.Initialize(C1.Util.DX.ComArray{C1.Util.DX.WIC.BitmapSource},System.Int32,System.Guid,C1.Util.DX.WIC.BitmapDitherType,C1.Util.DX.WIC.Palette,System.Double,C1.Util.DX.WIC.BitmapPaletteType)">Initialize(ComArray&lt;BitmapSource&gt;, int, Guid, BitmapDitherType, Palette, double, BitmapPaletteType)</h4>
<div class="markdown level1 summary"><p>HRESULT IWICPlanarFormatConverter::Initialize([In, Buffer] IWICBitmapSource** ppPlanes,[In] unsigned int cPlanes,[In] const GUID&amp; dstFormat,[In] WICBitmapDitherType dither,[In, Optional] IWICPalette* pIPalette,[In] double alphaThresholdPercent,[In] WICBitmapPaletteType paletteTranslate)</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(ComArray&lt;BitmapSource&gt; planesOut, int planes, Guid dstFormat, BitmapDitherType dither, Palette paletteRef, double alphaThresholdPercent, BitmapPaletteType paletteTranslate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Initialize(planesOut As ComArray(Of BitmapSource), planes As Integer, dstFormat As Guid, dither As BitmapDitherType, paletteRef As Palette, alphaThresholdPercent As Double, paletteTranslate As BitmapPaletteType)</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.ComArray-1.html">ComArray</a>&lt;<a class="xref" href="C1.Util.DX.WIC.BitmapSource.html">BitmapSource</a>&gt;</td>
      <td><span class="parametername">planesOut</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">planes</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a></td>
      <td><span class="parametername">dstFormat</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.WIC.BitmapDitherType.html">BitmapDitherType</a></td>
      <td><span class="parametername">dither</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.WIC.Palette.html">Palette</a></td>
      <td><span class="parametername">paletteRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">alphaThresholdPercent</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.WIC.BitmapPaletteType.html">BitmapPaletteType</a></td>
      <td><span class="parametername">paletteTranslate</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
