# C1.Util.DX.WIC.ColorTransform.Initialize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_WIC_ColorTransform_Initialize_" data-uid="C1.Util.DX.WIC.ColorTransform.Initialize*">Initialize Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_WIC_ColorTransform_Initialize_" data-uid="C1.Util.DX.WIC.ColorTransform.Initialize*"></a>
<h4 id="C1_Util_DX_WIC_ColorTransform_Initialize_C1_Util_DX_WIC_BitmapSource_C1_Util_DX_WIC_ColorContext_C1_Util_DX_WIC_ColorContext_System_Guid_" data-uid="C1.Util.DX.WIC.ColorTransform.Initialize(C1.Util.DX.WIC.BitmapSource,C1.Util.DX.WIC.ColorContext,C1.Util.DX.WIC.ColorContext,System.Guid)">Initialize(BitmapSource, ColorContext, ColorContext, Guid)</h4>
<div class="markdown level1 summary"><p>HRESULT IWICColorTransform::Initialize([In, Optional] IWICBitmapSource* pIBitmapSource,[In, Optional] IWICColorContext* pIContextSource,[In, Optional] IWICColorContext* pIContextDest,[In] const GUID&amp; pixelFmtDest)</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 bitmapSourceRef, ColorContext contextSourceRef, ColorContext contextDestRef, Guid pixelFmtDestRef)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Initialize(bitmapSourceRef As BitmapSource, contextSourceRef As ColorContext, contextDestRef As ColorContext, pixelFmtDestRef As Guid)</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">bitmapSourceRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.WIC.ColorContext.html">ColorContext</a></td>
      <td><span class="parametername">contextSourceRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.WIC.ColorContext.html">ColorContext</a></td>
      <td><span class="parametername">contextDestRef</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">pixelFmtDestRef</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
