# C1.Util.DX.WIC.PlanarBitmapFrameEncode.WriteSource

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_WIC_PlanarBitmapFrameEncode_WriteSource_" data-uid="C1.Util.DX.WIC.PlanarBitmapFrameEncode.WriteSource*">WriteSource Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_WIC_PlanarBitmapFrameEncode_WriteSource_" data-uid="C1.Util.DX.WIC.PlanarBitmapFrameEncode.WriteSource*"></a>
<h4 id="C1_Util_DX_WIC_PlanarBitmapFrameEncode_WriteSource_C1_Util_DX_WIC_BitmapSource___System_Int32_System_Nullable_C1_Util_DX_RectL__" data-uid="C1.Util.DX.WIC.PlanarBitmapFrameEncode.WriteSource(C1.Util.DX.WIC.BitmapSource[],System.Int32,System.Nullable{C1.Util.DX.RectL})">WriteSource(BitmapSource[], int, RectL?)</h4>
<div class="markdown level1 summary"><p>HRESULT IWICPlanarBitmapFrameEncode::WriteSource([In, Buffer] IWICBitmapSource** ppPlanes,[In] unsigned int cPlanes,[In, Optional] WICRect* prcSource)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void WriteSource(BitmapSource[] planesOut, int planes, RectL? rcSourceRef)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub WriteSource(planesOut As BitmapSource(), planes As Integer, rcSourceRef As RectL?)</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="C1.Util.DX.RectL.html">RectL</a>?</td>
      <td><span class="parametername">rcSourceRef</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_WIC_PlanarBitmapFrameEncode_WriteSource_" data-uid="C1.Util.DX.WIC.PlanarBitmapFrameEncode.WriteSource*"></a>
<h4 id="C1_Util_DX_WIC_PlanarBitmapFrameEncode_WriteSource_C1_Util_DX_ComArray_C1_Util_DX_WIC_BitmapSource__System_Int32_System_Nullable_C1_Util_DX_RectL__" data-uid="C1.Util.DX.WIC.PlanarBitmapFrameEncode.WriteSource(C1.Util.DX.ComArray{C1.Util.DX.WIC.BitmapSource},System.Int32,System.Nullable{C1.Util.DX.RectL})">WriteSource(ComArray&lt;BitmapSource&gt;, int, RectL?)</h4>
<div class="markdown level1 summary"><p>HRESULT IWICPlanarBitmapFrameEncode::WriteSource([In, Buffer] IWICBitmapSource** ppPlanes,[In] unsigned int cPlanes,[In, Optional] WICRect* prcSource)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void WriteSource(ComArray&lt;BitmapSource&gt; planesOut, int planes, RectL? rcSourceRef)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub WriteSource(planesOut As ComArray(Of BitmapSource), planes As Integer, rcSourceRef As RectL?)</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="C1.Util.DX.RectL.html">RectL</a>?</td>
      <td><span class="parametername">rcSourceRef</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
