# GrapeCity.ActiveReports.Rendering.Image.ImageHelper.GetDimensions

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_Image_ImageHelper_GetDimensions_" data-uid="GrapeCity.ActiveReports.Rendering.Image.ImageHelper.GetDimensions*">GetDimensions Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_Image_ImageHelper_GetDimensions_" data-uid="GrapeCity.ActiveReports.Rendering.Image.ImageHelper.GetDimensions*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Image_ImageHelper_GetDimensions_System_IO_Stream_" data-uid="GrapeCity.ActiveReports.Rendering.Image.ImageHelper.GetDimensions(System.IO.Stream)">GetDimensions(Stream)</h4>
<div class="markdown level1 summary"><p>Gets the dimensions of an BMP, PNG, JPEG or GIF image.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static SizeF GetDimensions(Stream image)</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.io.stream">Stream</a></td>
      <td><span class="parametername">image</span></td>
      <td><p>The image to get the dimensions of.</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.sizef">SizeF</a></td>
      <td><p>The dimensions (in twips) of the specified image.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.notsupportedexception">NotSupportedException</a></td>
      <td><p>The image was of an unrecognized format.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
