# GrapeCity.ActiveReports.Extensibility.Rendering.IImageLocatorService.GetImageData

## Content

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



<h1 id="GrapeCity_ActiveReports_Extensibility_Rendering_IImageLocatorService_GetImageData_" data-uid="GrapeCity.ActiveReports.Extensibility.Rendering.IImageLocatorService.GetImageData*">GetImageData Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Extensibility_Rendering_IImageLocatorService_GetImageData_" data-uid="GrapeCity.ActiveReports.Extensibility.Rendering.IImageLocatorService.GetImageData*"></a>
<h4 id="GrapeCity_ActiveReports_Extensibility_Rendering_IImageLocatorService_GetImageData_GrapeCity_ActiveReports_Extensibility_Layout_ILayoutArea_System_Boolean_" data-uid="GrapeCity.ActiveReports.Extensibility.Rendering.IImageLocatorService.GetImageData(GrapeCity.ActiveReports.Extensibility.Layout.ILayoutArea,System.Boolean)">GetImageData(ILayoutArea, bool)</h4>
<div class="markdown level1 summary"><p>Returns image item data as <a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.ImageInfo.html">ImageInfo</a> either from Cache or creating a new image.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ImageInfo GetImageData(ILayoutArea area, bool allowMetafiles)</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.Layout.ILayoutArea.html">ILayoutArea</a></td>
      <td><span class="parametername">area</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">allowMetafiles</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="GrapeCity.ActiveReports.Extensibility.Rendering.ImageInfo.html">ImageInfo</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Extensibility_Rendering_IImageLocatorService_GetImageData_" data-uid="GrapeCity.ActiveReports.Extensibility.Rendering.IImageLocatorService.GetImageData*"></a>
<h4 id="GrapeCity_ActiveReports_Extensibility_Rendering_IImageLocatorService_GetImageData_GrapeCity_ActiveReports_Extensibility_Rendering_Components_IImage_System_Boolean_" data-uid="GrapeCity.ActiveReports.Extensibility.Rendering.IImageLocatorService.GetImageData(GrapeCity.ActiveReports.Extensibility.Rendering.Components.IImage,System.Boolean)">GetImageData(IImage, bool)</h4>
<div class="markdown level1 summary"><p>Initialize <a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.ImageInfo.html">ImageInfo</a> using specified locator</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ImageInfo GetImageData(IImage image, bool allowMetafiles)</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">allowMetafiles</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="GrapeCity.ActiveReports.Extensibility.Rendering.ImageInfo.html">ImageInfo</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Extensibility_Rendering_IImageLocatorService_GetImageData_" data-uid="GrapeCity.ActiveReports.Extensibility.Rendering.IImageLocatorService.GetImageData*"></a>
<h4 id="GrapeCity_ActiveReports_Extensibility_Rendering_IImageLocatorService_GetImageData_GrapeCity_ActiveReports_Extensibility_Rendering_Components_IStyle_System_Boolean_" data-uid="GrapeCity.ActiveReports.Extensibility.Rendering.IImageLocatorService.GetImageData(GrapeCity.ActiveReports.Extensibility.Rendering.Components.IStyle,System.Boolean)">GetImageData(IStyle, bool)</h4>
<div class="markdown level1 summary"><p>Returns the background image from the specified IStyle instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ImageInfo GetImageData(IStyle style, bool allowMetafiles)</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.IStyle.html">IStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>IStyle to return the background image from.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">allowMetafiles</span></td>
      <td><p>A value indicating whether to allow metafiles.</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="GrapeCity.ActiveReports.Extensibility.Rendering.ImageInfo.html">ImageInfo</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
