# C1.WPF.Bitmap.C1Bitmap.ToD2DBitmap1

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Bitmap_C1Bitmap_ToD2DBitmap1_" data-uid="C1.WPF.Bitmap.C1Bitmap.ToD2DBitmap1*">ToD2DBitmap1 Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Bitmap_C1Bitmap_ToD2DBitmap1_" data-uid="C1.WPF.Bitmap.C1Bitmap.ToD2DBitmap1*"></a>
<h4 id="C1_WPF_Bitmap_C1Bitmap_ToD2DBitmap1_C1_Util_DX_Direct2D_DeviceContext_C1_Util_DX_Direct2D_BitmapOptions_C1_WPF_Bitmap_BaseTransform___" data-uid="C1.WPF.Bitmap.C1Bitmap.ToD2DBitmap1(C1.Util.DX.Direct2D.DeviceContext,C1.Util.DX.Direct2D.BitmapOptions,C1.WPF.Bitmap.BaseTransform[])">ToD2DBitmap1(DeviceContext, BitmapOptions, params BaseTransform[])</h4>
<div class="markdown level1 summary"><p>Creates a D2D.Bitmap1 from the image data.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Bitmap1 ToD2DBitmap1(DeviceContext context, BitmapOptions bitmapOptions, params BaseTransform[] transforms)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToD2DBitmap1(context As DeviceContext, bitmapOptions As BitmapOptions, ParamArray transforms As BaseTransform()) As Bitmap1</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.WPF.DX.4.6.2/C1.Util.DX.Direct2D.DeviceContext.html">DeviceContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The device context used to create a D2D bitmap.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../C1.WPF.DX.4.6.2/C1.Util.DX.Direct2D.BitmapOptions.html">BitmapOptions</a></td>
      <td><span class="parametername">bitmapOptions</span></td>
      <td><p>Specifies how a bitmap can be used.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.Bitmap.BaseTransform.html">BaseTransform</a>[]</td>
      <td><span class="parametername">transforms</span></td>
      <td><p>The transformation chain, can be empty to just copy the image.</p>
</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.WPF.DX.4.6.2/C1.Util.DX.Direct2D.Bitmap1.html">Bitmap1</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
