# GrapeCity.Documents.Drawing.IImage.ToGcBitmap

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Drawing_IImage_ToGcBitmap_" data-uid="GrapeCity.Documents.Drawing.IImage.ToGcBitmap*">ToGcBitmap Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Drawing_IImage_ToGcBitmap_" data-uid="GrapeCity.Documents.Drawing.IImage.ToGcBitmap*"></a>
<h4 id="GrapeCity_Documents_Drawing_IImage_ToGcBitmap_System_Boolean__" data-uid="GrapeCity.Documents.Drawing.IImage.ToGcBitmap(System.Boolean@)">ToGcBitmap(out bool)</h4>
<div class="markdown level1 summary"><p>Retrieves the underlying <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> object, or creates a new <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> that contains the image data.</p>
<p>Note that you should dispose the returned <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> if <code class="paramref">disposeAfterUse</code> is true.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">GcBitmap ToGcBitmap(out bool disposeAfterUse)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function ToGcBitmap(ByRef disposeAfterUse As Boolean) As GcBitmap</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.boolean">bool</a></td>
      <td><span class="parametername">disposeAfterUse</span></td>
      <td><p>OUT: Indicates whether the returned <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> should be disposed by the user.</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.Documents.Imaging.GcBitmap.html">GcBitmap</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> object containing the image.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Drawing_IImage_ToGcBitmap_" data-uid="GrapeCity.Documents.Drawing.IImage.ToGcBitmap*"></a>
<h4 id="GrapeCity_Documents_Drawing_IImage_ToGcBitmap_System_Boolean_System_Boolean__" data-uid="GrapeCity.Documents.Drawing.IImage.ToGcBitmap(System.Boolean,System.Boolean@)">ToGcBitmap(bool, out bool)</h4>
<div class="markdown level1 summary"><p>Retrieves the underlying <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> object, or creates a new <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> that contains the image data.</p>
<p>Note that you should dispose the returned <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> if <code class="paramref">disposeAfterUse</code> is true.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">GcBitmap ToGcBitmap(bool applyExifOrientation, out bool disposeAfterUse)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function ToGcBitmap(applyExifOrientation As Boolean, ByRef disposeAfterUse As Boolean) As GcBitmap</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.boolean">bool</a></td>
      <td><span class="parametername">applyExifOrientation</span></td>
      <td><p>Indicates whether the flip and rotate transformations should be applied to the returned <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> if that is required by the Orientation property in the EXIF profile.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">disposeAfterUse</span></td>
      <td><p>OUT: Indicates whether the returned <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> should be disposed by the user.</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.Documents.Imaging.GcBitmap.html">GcBitmap</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> object containing the image.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Drawing_IImage_ToGcBitmap_" data-uid="GrapeCity.Documents.Drawing.IImage.ToGcBitmap*"></a>
<h4 id="GrapeCity_Documents_Drawing_IImage_ToGcBitmap_GrapeCity_Documents_Imaging_GcBitmap_" data-uid="GrapeCity.Documents.Drawing.IImage.ToGcBitmap(GrapeCity.Documents.Imaging.GcBitmap)">ToGcBitmap(GcBitmap)</h4>
<div class="markdown level1 summary"><p>Loads the image into an existing instance of <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void ToGcBitmap(GcBitmap bmp)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub ToGcBitmap(bmp As GcBitmap)</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.Documents.Imaging.GcBitmap.html">GcBitmap</a></td>
      <td><span class="parametername">bmp</span></td>
      <td><p>The destination <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
