# C1.Framework.BitmapIconElement.GetImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_BitmapIconElement_GetImage_" data-uid="C1.Framework.BitmapIconElement.GetImage*">GetImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_BitmapIconElement_GetImage_" data-uid="C1.Framework.BitmapIconElement.GetImage*"></a>
<h4 id="C1_Framework_BitmapIconElement_GetImage_System_Drawing_Image__System_Int32_System_Int32_" data-uid="C1.Framework.BitmapIconElement.GetImage(System.Drawing.Image@,System.Int32,System.Int32)">GetImage(ref Image, int, int)</h4>
<div class="markdown level1 summary"><p>Gets the image represented by this <a class="xref" href="C1.Framework.C1Icon.html">C1Icon</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override bool GetImage(ref Image image, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Function GetImage(ByRef image As Image, width As Integer, height As Integer) As Boolean</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.drawing.image">Image</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.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td></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></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.boolean">bool</a></td>
      <td><p>True if returned bitmap should be disposed when no longer needed; False otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Framework.IconElement.GetImage.html#C1_Framework_IconElement_GetImage_System_Drawing_Image__System_Int32_System_Int32_">IconElement.GetImage(ref Image, int, int)</a></div>
</div>
