# GrapeCity.Documents.Imaging.GifFrame.ToGcBitmap

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GifFrame_ToGcBitmap_" data-uid="GrapeCity.Documents.Imaging.GifFrame.ToGcBitmap*">ToGcBitmap Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GifFrame_ToGcBitmap_" data-uid="GrapeCity.Documents.Imaging.GifFrame.ToGcBitmap*"></a>
<h4 id="GrapeCity_Documents_Imaging_GifFrame_ToGcBitmap" data-uid="GrapeCity.Documents.Imaging.GifFrame.ToGcBitmap">ToGcBitmap()</h4>
<div class="markdown level1 summary"><p>Gets the frame image as a <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a>.</p>
<p>Many GIF files use frames with transparent pixels where the previous frame
is partly visible. If you read multiple GIF frames you can improve the performance
dramatically by reading frames into the same <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> and passing
index of the previous frame in the additional contentFrameIndex parameter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GcBitmap ToGcBitmap()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToGcBitmap() As GcBitmap</code></pre>
</div>
<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></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_GifFrame_ToGcBitmap_" data-uid="GrapeCity.Documents.Imaging.GifFrame.ToGcBitmap*"></a>
<h4 id="GrapeCity_Documents_Imaging_GifFrame_ToGcBitmap_GrapeCity_Documents_Imaging_GcBitmap_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GifFrame.ToGcBitmap(GrapeCity.Documents.Imaging.GcBitmap,System.Int32)">ToGcBitmap(GcBitmap, int)</h4>
<div class="markdown level1 summary"><p>Reads the frame image into an existing <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">public void ToGcBitmap(GcBitmap bmp, int contentFrameIndex = -1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ToGcBitmap(bmp As GcBitmap, Optional contentFrameIndex As Integer = -1)</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 source and target <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">contentFrameIndex</span></td>
      <td><p>Index of a GIF frame rendered to <a class="xref" href="GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a> that is passed in the bmp parameter, if any.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
