# C1.Win.Document.Util.C1DXExportGraphics.Convert

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Document_Util_C1DXExportGraphics_Convert_" data-uid="C1.Win.Document.Util.C1DXExportGraphics.Convert*">Convert Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Document_Util_C1DXExportGraphics_Convert_" data-uid="C1.Win.Document.Util.C1DXExportGraphics.Convert*"></a>
<h4 id="C1_Win_Document_Util_C1DXExportGraphics_Convert_C1_Interop_Rect_System_Double_System_Double_System_Double_System_Double_" data-uid="C1.Win.Document.Util.C1DXExportGraphics.Convert(C1.Interop.Rect,System.Double,System.Double,System.Double,System.Double)">Convert(Rect, double, double, double, double)</h4>
<div class="markdown level1 summary"><p>Converts the dimensions of the rectangle using DPI values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected Rect Convert(Rect value, double fromDpiX, double fromDpiY, double toDpiX, double toDpiY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function Convert(value As Rect, fromDpiX As Double, fromDpiY As Double, toDpiX As Double, toDpiY As Double) As Rect</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><span class="xref">Rect</span></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <span class="xref">C1.Interop.Rect</span> to convert.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">fromDpiX</span></td>
      <td><p>The original horizontal DPI value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">fromDpiY</span></td>
      <td><p>The original vertical DPI value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">toDpiX</span></td>
      <td><p>The resulting horizontal DPI value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">toDpiY</span></td>
      <td><p>The resulting vertical DPI value.</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><span class="xref">Rect</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
