# C1.Util.DX.Direct2D.CommandSinkNative.DrawBitmap

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_CommandSinkNative_DrawBitmap_" data-uid="C1.Util.DX.Direct2D.CommandSinkNative.DrawBitmap*">DrawBitmap Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_CommandSinkNative_DrawBitmap_" data-uid="C1.Util.DX.Direct2D.CommandSinkNative.DrawBitmap*"></a>
<h4 id="C1_Util_DX_Direct2D_CommandSinkNative_DrawBitmap_C1_Util_DX_Direct2D_Bitmap_System_Nullable_C1_Util_DX_RectF__System_Single_C1_Util_DX_Direct2D_InterpolationMode_System_Nullable_C1_Util_DX_RectF__System_Nullable_C1_Util_DX_Matrix4x4__" data-uid="C1.Util.DX.Direct2D.CommandSinkNative.DrawBitmap(C1.Util.DX.Direct2D.Bitmap,System.Nullable{C1.Util.DX.RectF},System.Single,C1.Util.DX.Direct2D.InterpolationMode,System.Nullable{C1.Util.DX.RectF},System.Nullable{C1.Util.DX.Matrix4x4})">DrawBitmap(Bitmap, RectF?, float, InterpolationMode, RectF?, Matrix4x4?)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1CommandSink::DrawBitmap([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_F* destinationRectangle,[In] float opacity,[In] D2D1_INTERPOLATION_MODE interpolationMode,[In, Optional] const D2D_RECT_F* sourceRectangle,[In, Optional] const D2D_MATRIX_4X4_F* perspectiveTransform)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawBitmap(Bitmap bitmap, RectF? destinationRectangle, float opacity, InterpolationMode interpolationMode, RectF? sourceRectangle, Matrix4x4? perspectiveTransformRef)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawBitmap(bitmap As Bitmap, destinationRectangle As RectF?, opacity As Single, interpolationMode As InterpolationMode, sourceRectangle As RectF?, perspectiveTransformRef As Matrix4x4?)</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.Direct2D.Bitmap.html">Bitmap</a></td>
      <td><span class="parametername">bitmap</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.RectF.html">RectF</a>?</td>
      <td><span class="parametername">destinationRectangle</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">opacity</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.InterpolationMode.html">InterpolationMode</a></td>
      <td><span class="parametername">interpolationMode</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.RectF.html">RectF</a>?</td>
      <td><span class="parametername">sourceRectangle</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Matrix4x4.html">Matrix4x4</a>?</td>
      <td><span class="parametername">perspectiveTransformRef</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="C1.Util.DX.Direct2D.CommandSink.DrawBitmap.html#C1_Util_DX_Direct2D_CommandSink_DrawBitmap_C1_Util_DX_Direct2D_Bitmap_System_Nullable_C1_Util_DX_RectF__System_Single_C1_Util_DX_Direct2D_InterpolationMode_System_Nullable_C1_Util_DX_RectF__System_Nullable_C1_Util_DX_Matrix4x4__">CommandSink.DrawBitmap(Bitmap, RectF?, float, InterpolationMode, RectF?, Matrix4x4?)</a></div>
</div>
