# C1.Win.Document.Utils.GetDcDpi

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Document_Utils_GetDcDpi_" data-uid="C1.Win.Document.Utils.GetDcDpi*">GetDcDpi Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Document_Utils_GetDcDpi_" data-uid="C1.Win.Document.Utils.GetDcDpi*"></a>
<h4 id="C1_Win_Document_Utils_GetDcDpi_System_IntPtr_" data-uid="C1.Win.Document.Utils.GetDcDpi(System.IntPtr)">GetDcDpi(nint)</h4>
<div class="markdown level1 summary"><p>Gets the resolution for the specified device context.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static PointF GetDcDpi(nint dc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetDcDpi(dc As IntPtr) As PointF</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.intptr">nint</a></td>
      <td><span class="parametername">dc</span></td>
      <td><p>The device context to test.</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.pointf">PointF</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a> structure where
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf.x">X</a> represents the horizontal, and <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf.y">Y</a> vertical DPI.
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf.empty">Empty</a> is returned if an error occurs.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
