# GrapeCity.ActiveReports.Design.Designer.ScaleSizeToDpi

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Design_Designer_ScaleSizeToDpi_" data-uid="GrapeCity.ActiveReports.Design.Designer.ScaleSizeToDpi*">ScaleSizeToDpi Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_Designer_ScaleSizeToDpi_" data-uid="GrapeCity.ActiveReports.Design.Designer.ScaleSizeToDpi*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Designer_ScaleSizeToDpi_System_Drawing_Size_" data-uid="GrapeCity.ActiveReports.Design.Designer.ScaleSizeToDpi(System.Drawing.Size)">ScaleSizeToDpi(Size)</h4>
<div class="markdown level1 summary"><p>Scales a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a> from the default DPI (dots per inch) settings to the DPI settings of the current device.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Size ScaleSizeToDpi(Size 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">size</span></td>
      <td><p>The original <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a> to scale.</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>A new <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a> that has been scaled to match the current device's DPI settings.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Designer_ScaleSizeToDpi_System_Drawing_Size__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is useful for ensuring that sizes are correctly scaled in environments with varying DPI settings. It adjusts the provided
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a> based on the system's current DPI settings compared to the default DPI, ensuring consistent sizing across different display settings.</p>
</div>
</div>
