# C1.Win.Util.DpiHelper

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Util_DpiHelper" data-uid="C1.Win.Util.DpiHelper" class="text-break">DpiHelper Class
</h1>
  <div class="markdown level0 summary"><p>Helper class for scaling coordinates and images according to DPI scaling.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">DpiHelper</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Util.html">C1.Win.Util</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Win_Util_DpiHelper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class DpiHelper</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Module DpiHelper</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Util_DpiHelper_DEFAULT_DPI" data-uid="C1.Win.Util.DpiHelper.DEFAULT_DPI">
          <a class="xref" href="C1.Win.Util.DpiHelper.DEFAULT_DPI.html">DEFAULT_DPI</a>
        </td>
        <td class="markdown level1 summary"><p>Default DPI value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Util_DpiHelper_SystemDpi" data-uid="C1.Win.Util.DpiHelper.SystemDpi">
          <a class="xref" href="C1.Win.Util.DpiHelper.SystemDpi.html#C1_Win_Util_DpiHelper_SystemDpi">SystemDpi</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the DPI value set in Windows for the primary screen.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Util_DpiHelper_GetBorderSize_System_Int32_" data-uid="C1.Win.Util.DpiHelper.GetBorderSize(System.Int32)">
          <a class="xref" href="C1.Win.Util.DpiHelper.GetBorderSize.html#C1_Win_Util_DpiHelper_GetBorderSize_System_Int32_">GetBorderSize(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the default size, in pixels, of the border for a current DPI value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_DpiHelper_GetHorizontalScrollBarArrowWidth_System_Int32_" data-uid="C1.Win.Util.DpiHelper.GetHorizontalScrollBarArrowWidth(System.Int32)">
          <a class="xref" href="C1.Win.Util.DpiHelper.GetHorizontalScrollBarArrowWidth.html#C1_Win_Util_DpiHelper_GetHorizontalScrollBarArrowWidth_System_Int32_">GetHorizontalScrollBarArrowWidth(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the width of the horizontal scroll bar arrow bitmap in pixels for a current DPI value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_DpiHelper_GetHorizontalScrollBarHeight_System_Int32_" data-uid="C1.Win.Util.DpiHelper.GetHorizontalScrollBarHeight(System.Int32)">
          <a class="xref" href="C1.Win.Util.DpiHelper.GetHorizontalScrollBarHeight.html#C1_Win_Util_DpiHelper_GetHorizontalScrollBarHeight_System_Int32_">GetHorizontalScrollBarHeight(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the default height, in pixels, of the horizontal scroll bar for a current DPI value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_DpiHelper_GetVerticalScrollBarWidth_System_Int32_" data-uid="C1.Win.Util.DpiHelper.GetVerticalScrollBarWidth(System.Int32)">
          <a class="xref" href="C1.Win.Util.DpiHelper.GetVerticalScrollBarWidth.html#C1_Win_Util_DpiHelper_GetVerticalScrollBarWidth_System_Int32_">GetVerticalScrollBarWidth(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the default height, in pixels, of the vertical scroll bar for a current DPI value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_DpiHelper_ScaleBitmapLogicalToDevice_System_Drawing_Bitmap__System_Int32_" data-uid="C1.Win.Util.DpiHelper.ScaleBitmapLogicalToDevice(System.Drawing.Bitmap@,System.Int32)">
          <a class="xref" href="C1.Win.Util.DpiHelper.ScaleBitmapLogicalToDevice.html#C1_Win_Util_DpiHelper_ScaleBitmapLogicalToDevice_System_Drawing_Bitmap__System_Int32_">ScaleBitmapLogicalToDevice(ref Bitmap, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales a logical bitmap value to it's equivalent device unit value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_DpiHelper_ScaleToDPI_C1_Framework_Style_System_Int32_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI(C1.Framework.Style,System.Int32)">
          <a class="xref" href="C1.Win.Util.DpiHelper.ScaleToDPI.html#C1_Win_Util_DpiHelper_ScaleToDPI_C1_Framework_Style_System_Int32_">ScaleToDPI(Style, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales the <a class="xref" href="C1.Framework.Style.html">Style</a> instance to the dpi.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_DpiHelper_ScaleToDPI_C1_Framework_Thickness_System_Int32_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI(C1.Framework.Thickness,System.Int32)">
          <a class="xref" href="C1.Win.Util.DpiHelper.ScaleToDPI.html#C1_Win_Util_DpiHelper_ScaleToDPI_C1_Framework_Thickness_System_Int32_">ScaleToDPI(Thickness, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales a <a class="xref" href="C1.Framework.Thickness.html">Thickness</a> value to the dpi.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_DpiHelper_ScaleToDPI_System_Drawing_Size_System_Int32_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI(System.Drawing.Size,System.Int32)">
          <a class="xref" href="C1.Win.Util.DpiHelper.ScaleToDPI.html#C1_Win_Util_DpiHelper_ScaleToDPI_System_Drawing_Size_System_Int32_">ScaleToDPI(Size, int)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_DpiHelper_ScaleToDPI_System_Int32_System_Int32_" data-uid="C1.Win.Util.DpiHelper.ScaleToDPI(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.Util.DpiHelper.ScaleToDPI.html#C1_Win_Util_DpiHelper_ScaleToDPI_System_Int32_System_Int32_">ScaleToDPI(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales a int value to the dpi.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_DpiHelper_ScaleToSystemDPI_System_Drawing_Size_" data-uid="C1.Win.Util.DpiHelper.ScaleToSystemDPI(System.Drawing.Size)">
          <a class="xref" href="C1.Win.Util.DpiHelper.ScaleToSystemDPI.html#C1_Win_Util_DpiHelper_ScaleToSystemDPI_System_Drawing_Size_">ScaleToSystemDPI(Size)</a>
        </td>
        <td 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 system dpi.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_DpiHelper_ScaleToSystemDPI_System_Int32_" data-uid="C1.Win.Util.DpiHelper.ScaleToSystemDPI(System.Int32)">
          <a class="xref" href="C1.Win.Util.DpiHelper.ScaleToSystemDPI.html#C1_Win_Util_DpiHelper_ScaleToSystemDPI_System_Int32_">ScaleToSystemDPI(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales a int value to the system dpi.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
