# C1.Util.DX.Direct2D.RenderTarget.CreateBitmap

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_RenderTarget_CreateBitmap_" data-uid="C1.Util.DX.Direct2D.RenderTarget.CreateBitmap*">CreateBitmap Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_RenderTarget_CreateBitmap_" data-uid="C1.Util.DX.Direct2D.RenderTarget.CreateBitmap*"></a>
<h4 id="C1_Util_DX_Direct2D_RenderTarget_CreateBitmap_C1_Util_DX_Size2L_System_IntPtr_System_Int32_C1_Util_DX_Direct2D_BitmapProperties_" data-uid="C1.Util.DX.Direct2D.RenderTarget.CreateBitmap(C1.Util.DX.Size2L,System.IntPtr,System.Int32,C1.Util.DX.Direct2D.BitmapProperties)">CreateBitmap(Size2L, IntPtr, int, BitmapProperties)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1RenderTarget::CreateBitmap([In] D2D_SIZE_U size,[In, Optional] const void* srcData,[In] unsigned int pitch,[In] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Bitmap CreateBitmap(Size2L size, IntPtr srcData, int pitch, BitmapProperties bitmapProperties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateBitmap(size As Size2L, srcData As IntPtr, pitch As Integer, bitmapProperties As BitmapProperties) As Bitmap</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.Size2L.html">Size2L</a></td>
      <td><span class="parametername">size</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">srcData</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">pitch</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.BitmapProperties.html">BitmapProperties</a></td>
      <td><span class="parametername">bitmapProperties</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.Bitmap.html">Bitmap</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
