# C1.Win.Util.DpiHelper.ScaleToDPI

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Util_DpiHelper_ScaleToDPI_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI*">ScaleToDPI Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Util_DpiHelper_ScaleToDPI_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI*"></a>
<h4 id="C1_Win_Util_DpiHelper_ScaleToDPI_System_Int32_System_Int32_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI(System.Int32,System.Int32)">ScaleToDPI(int, int)</h4>
<div class="markdown level1 summary"><p>Scales a int value to the dpi.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static int ScaleToDPI(int value, int dpi)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function ScaleToDPI(value As Integer, dpi As Integer) 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.int32">int</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value for scaling.</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>
<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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The scaled value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Util_DpiHelper_ScaleToDPI_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI*"></a>
<h4 id="C1_Win_Util_DpiHelper_ScaleToDPI_System_Drawing_Size_System_Int32_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI(System.Drawing.Size,System.Int32)">ScaleToDPI(Size, int)</h4>
<div class="markdown level1 summary"><p>Scales a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a> value to the dpi.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Size ScaleToDPI(Size value, int dpi)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function ScaleToDPI(value As Size, dpi As Integer) As Size</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.size">Size</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value for scaling.</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>
<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="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><p>The scaled value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Util_DpiHelper_ScaleToDPI_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI*"></a>
<h4 id="C1_Win_Util_DpiHelper_ScaleToDPI_C1_Framework_Thickness_System_Int32_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI(C1.Framework.Thickness,System.Int32)">ScaleToDPI(Thickness, int)</h4>
<div class="markdown level1 summary"><p>Scales a <a class="xref" href="C1.Framework.Thickness.html">Thickness</a> value to the dpi.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Thickness ScaleToDPI(Thickness value, int dpi)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function ScaleToDPI(value As Thickness, dpi As Integer) As Thickness</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.Framework.Thickness.html">Thickness</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value for scaling.</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>
<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.Framework.Thickness.html">Thickness</a></td>
      <td><p>The scaled value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Util_DpiHelper_ScaleToDPI_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI*"></a>
<h4 id="C1_Win_Util_DpiHelper_ScaleToDPI_C1_Framework_Style_System_Int32_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI(C1.Framework.Style,System.Int32)">ScaleToDPI(Style, int)</h4>
<div class="markdown level1 summary"><p>Scales the <a class="xref" href="C1.Framework.Style.html">Style</a> instance to the dpi.</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 ScaleToDPI(Style value, int dpi)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub ScaleToDPI(value As Style, 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="C1.Framework.Style.html">Style</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The style for scaling.</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>
<h5 id="C1_Win_Util_DpiHelper_ScaleToDPI_C1_Framework_Style_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method doen't scale the Font property.</p>
</div>
</div>
