# GrapeCity.ActiveReports.Core.Rendering.Components.ImageExtensions.GetData

## Content

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



<h1 id="GrapeCity_ActiveReports_Core_Rendering_Components_ImageExtensions_GetData_" data-uid="GrapeCity.ActiveReports.Core.Rendering.Components.ImageExtensions.GetData*">GetData Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Rendering_Components_ImageExtensions_GetData_" data-uid="GrapeCity.ActiveReports.Core.Rendering.Components.ImageExtensions.GetData*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rendering_Components_ImageExtensions_GetData_GrapeCity_ActiveReports_Extensibility_Rendering_Components_IImage_System_Boolean_" data-uid="GrapeCity.ActiveReports.Core.Rendering.Components.ImageExtensions.GetData(GrapeCity.ActiveReports.Extensibility.Rendering.Components.IImage,System.Boolean)">GetData(IImage, bool)</h4>
<div class="markdown level1 summary"><p>Returns image evaluation result as an object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static object GetData(this IImage image, bool allowEmfWmf = false)</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="GrapeCity.ActiveReports.Extensibility.Rendering.Components.IImage.html">IImage</a></td>
      <td><span class="parametername">image</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">allowEmfWmf</span></td>
      <td></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.object">object</a></td>
      <td><p>One of the following:</p>
<ul><li><a class="xref" href="GrapeCity.ActiveReports.Rendering.GraphicalRenderers.DataVisualizerInfo.html">DataVisualizerInfo</a> instance if the image is a data visualizer.</li><li><a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.Components.InvalidImage.html">InvalidImage</a> instance if the image is invalid.</li><li><a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.ImageInfo.html">ImageInfo</a> instance if the image is valid.</li><li><code>null</code> if the image could not be retrieved.</li></ul>
</td>
    </tr>
  </tbody>
</table>
</div>
