# GrapeCity.ActiveReports.ReportsCore.Tools.DataVisualizerInfoExtensions.GetImage

## Content

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



<h1 id="GrapeCity_ActiveReports_ReportsCore_Tools_DataVisualizerInfoExtensions_GetImage_" data-uid="GrapeCity.ActiveReports.ReportsCore.Tools.DataVisualizerInfoExtensions.GetImage*">GetImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_ReportsCore_Tools_DataVisualizerInfoExtensions_GetImage_" data-uid="GrapeCity.ActiveReports.ReportsCore.Tools.DataVisualizerInfoExtensions.GetImage*"></a>
<h4 id="GrapeCity_ActiveReports_ReportsCore_Tools_DataVisualizerInfoExtensions_GetImage_GrapeCity_ActiveReports_Rendering_GraphicalRenderers_DataVisualizerInfo_System_Int32_System_Int32_System_Single_System_Single_System_Nullable_GrapeCity_ActiveReports_Rendering_GraphicalRenderers_BackgroundRepeatOption__GrapeCity_ActiveReports_Drawing_Core_IFontsFactory_" data-uid="GrapeCity.ActiveReports.ReportsCore.Tools.DataVisualizerInfoExtensions.GetImage(GrapeCity.ActiveReports.Rendering.GraphicalRenderers.DataVisualizerInfo,System.Int32,System.Int32,System.Single,System.Single,System.Nullable{GrapeCity.ActiveReports.Rendering.GraphicalRenderers.BackgroundRepeatOption},GrapeCity.ActiveReports.Drawing.Core.IFontsFactory)">GetImage(DataVisualizerInfo, int, int, float, float, BackgroundRepeatOption?, IFontsFactory)</h4>
<div class="markdown level1 summary"><p>Gets as PNG image.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public static ImageInfo GetImage(this DataVisualizerInfo buffer, int width, int height, float dpiX, float dpiY, BackgroundRepeatOption? repeatOption = null, IFontsFactory fonts = null)</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="../MESCIUS.ActiveReports.Core.Rendering/GrapeCity.ActiveReports.Rendering.GraphicalRenderers.DataVisualizerInfo.html">DataVisualizerInfo</a></td>
      <td><span class="parametername">buffer</span></td>
      <td><p>Visualizer info.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>Width in pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>Height in pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">dpiX</span></td>
      <td><p>Horizontal resolution.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">dpiY</span></td>
      <td><p>Vertical resolution.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Core.Rendering/GrapeCity.ActiveReports.Rendering.GraphicalRenderers.BackgroundRepeatOption.html">BackgroundRepeatOption</a>?</td>
      <td><span class="parametername">repeatOption</span></td>
      <td><p>Background rendering mode.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">IFontsFactory</span></td>
      <td><span class="parametername">fonts</span></td>
      <td><p>Font factory.</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="../MESCIUS.ActiveReports.Core.Rendering/GrapeCity.ActiveReports.Extensibility.Rendering.ImageInfo.html">ImageInfo</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
