# C1.Win.Util.DpiHelper.ScaleBitmapLogicalToDevice

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Util_DpiHelper_ScaleBitmapLogicalToDevice_" data-uid="C1.Win.Util.DpiHelper.ScaleBitmapLogicalToDevice*">ScaleBitmapLogicalToDevice Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Util_DpiHelper_ScaleBitmapLogicalToDevice_" data-uid="C1.Win.Util.DpiHelper.ScaleBitmapLogicalToDevice*"></a>
<h4 id="C1_Win_Util_DpiHelper_ScaleBitmapLogicalToDevice_System_Drawing_Bitmap__System_Int32_" data-uid="C1.Win.Util.DpiHelper.ScaleBitmapLogicalToDevice(System.Drawing.Bitmap@,System.Int32)">ScaleBitmapLogicalToDevice(ref Bitmap, int)</h4>
<div class="markdown level1 summary"><p>Scales a logical bitmap value to it's equivalent device unit value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void ScaleBitmapLogicalToDevice(ref Bitmap bitmap, int dpi)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub ScaleBitmapLogicalToDevice(ByRef bitmap As Bitmap, dpi As Integer)</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="https://learn.microsoft.com/dotnet/api/system.drawing.bitmap">Bitmap</a></td>
      <td><span class="parametername">bitmap</span></td>
      <td><p>The bitmap to scale.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">dpi</span></td>
      <td><p>The DPI value for the current display device.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
