# GrapeCity.Documents.Imaging.GcGifReader

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Imaging_GcGifReader" data-uid="GrapeCity.Documents.Imaging.GcGifReader" class="text-break">GcGifReader Class
</h1>
  <div class="markdown level0 summary"><p>Allows reading images from a multi-page GIF file/stream.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">GcGifReader</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Imaging.html">GrapeCity.Documents.Imaging</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Imaging_GcGifReader_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class GcGifReader : IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class GcGifReader
    Implements IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader__ctor_System_IO_Stream_System_Boolean_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GcGifReader.#ctor(System.IO.Stream,System.Boolean,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.-ctor.html#GrapeCity_Documents_Imaging_GcGifReader__ctor_System_IO_Stream_System_Boolean_System_Int32_">GcGifReader(Stream, bool, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.html">GcGifReader</a> class and assigns the input stream.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader__ctor_System_String_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GcGifReader.#ctor(System.String,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.-ctor.html#GrapeCity_Documents_Imaging_GcGifReader__ctor_System_String_System_Int32_">GcGifReader(string, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.html">GcGifReader</a> class and assigns the input file.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_CommentCount" data-uid="GrapeCity.Documents.Imaging.GcGifReader.CommentCount">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.CommentCount.html#GrapeCity_Documents_Imaging_GcGifReader_CommentCount">CommentCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of Comment Extensions in the source GIF file.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_DpiX" data-uid="GrapeCity.Documents.Imaging.GcGifReader.DpiX">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.DpiX.html#GrapeCity_Documents_Imaging_GcGifReader_DpiX">DpiX</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the horizontal DPI of the Logical Screen.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_DpiY" data-uid="GrapeCity.Documents.Imaging.GcGifReader.DpiY">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.DpiY.html#GrapeCity_Documents_Imaging_GcGifReader_DpiY">DpiY</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the vertical DPI of the Logical Screen.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_FilePath" data-uid="GrapeCity.Documents.Imaging.GcGifReader.FilePath">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.FilePath.html#GrapeCity_Documents_Imaging_GcGifReader_FilePath">FilePath</a>
        </td>
        <td class="markdown level1 summary"><p>If possible, gets full path to the associated .gif file.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_Frames" data-uid="GrapeCity.Documents.Imaging.GcGifReader.Frames">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.Frames.html#GrapeCity_Documents_Imaging_GcGifReader_Frames">Frames</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the list of frames in the associated GIF file.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_HasGlobalPalette" data-uid="GrapeCity.Documents.Imaging.GcGifReader.HasGlobalPalette">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.HasGlobalPalette.html#GrapeCity_Documents_Imaging_GcGifReader_HasGlobalPalette">HasGlobalPalette</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating if there is the Global Color Table in the GIF file.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_IccProfileData" data-uid="GrapeCity.Documents.Imaging.GcGifReader.IccProfileData">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.IccProfileData.html#GrapeCity_Documents_Imaging_GcGifReader_IccProfileData">IccProfileData</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the raw ICC profile data for the frames.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_IsDisposed" data-uid="GrapeCity.Documents.Imaging.GcGifReader.IsDisposed">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.IsDisposed.html#GrapeCity_Documents_Imaging_GcGifReader_IsDisposed">IsDisposed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.html">GcGifReader</a> has been disposed of.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_LogicalScreenHeight" data-uid="GrapeCity.Documents.Imaging.GcGifReader.LogicalScreenHeight">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.LogicalScreenHeight.html#GrapeCity_Documents_Imaging_GcGifReader_LogicalScreenHeight">LogicalScreenHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the height, in pixels, of the Logical Screen where the frames will be rendered.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_LogicalScreenWidth" data-uid="GrapeCity.Documents.Imaging.GcGifReader.LogicalScreenWidth">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.LogicalScreenWidth.html#GrapeCity_Documents_Imaging_GcGifReader_LogicalScreenWidth">LogicalScreenWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the width, in pixels, of the Logical Screen where the frames will be rendered.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_LoopCount" data-uid="GrapeCity.Documents.Imaging.GcGifReader.LoopCount">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.LoopCount.html#GrapeCity_Documents_Imaging_GcGifReader_LoopCount">LoopCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of iterations the animated GIF should be executed. 0 means infinite loop.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_OwnStream" data-uid="GrapeCity.Documents.Imaging.GcGifReader.OwnStream">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.OwnStream.html#GrapeCity_Documents_Imaging_GcGifReader_OwnStream">OwnStream</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating if the associated stream should be closed when the <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.html">GcGifReader</a> is disposed.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_PixelAspectRatio" data-uid="GrapeCity.Documents.Imaging.GcGifReader.PixelAspectRatio">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.PixelAspectRatio.html#GrapeCity_Documents_Imaging_GcGifReader_PixelAspectRatio">PixelAspectRatio</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the quotient of the pixel's width over its height.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_Stream" data-uid="GrapeCity.Documents.Imaging.GcGifReader.Stream">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.Stream.html#GrapeCity_Documents_Imaging_GcGifReader_Stream">Stream</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the Stream associated with <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.html">GcGifReader</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_StreamStartPosition" data-uid="GrapeCity.Documents.Imaging.GcGifReader.StreamStartPosition">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.StreamStartPosition.html#GrapeCity_Documents_Imaging_GcGifReader_StreamStartPosition">StreamStartPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the start position in the associated Stream.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_ApplyLicenseKey_System_String_" data-uid="GrapeCity.Documents.Imaging.GcGifReader.ApplyLicenseKey(System.String)">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.ApplyLicenseKey.html#GrapeCity_Documents_Imaging_GcGifReader_ApplyLicenseKey_System_String_">ApplyLicenseKey(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies a license key to an instance of <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.html">GcGifReader</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_Dispose" data-uid="GrapeCity.Documents.Imaging.GcGifReader.Dispose">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.Dispose.html#GrapeCity_Documents_Imaging_GcGifReader_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_Dispose_System_Boolean_" data-uid="GrapeCity.Documents.Imaging.GcGifReader.Dispose(System.Boolean)">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.Dispose.html#GrapeCity_Documents_Imaging_GcGifReader_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs cleanup operations on managed and unmanaged resources.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_GetComment_System_Text_Encoding_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GcGifReader.GetComment(System.Text.Encoding,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.GetComment.html#GrapeCity_Documents_Imaging_GcGifReader_GetComment_System_Text_Encoding_System_Int32_">GetComment(Encoding, int)</a>
        </td>
        <td class="markdown level1 summary"><p>If the Comment Extension is present in the source GIF file this method decodes the comment using the specified Encoding and returns it as a string.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_GetCommentData_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GcGifReader.GetCommentData(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.GetCommentData.html#GrapeCity_Documents_Imaging_GcGifReader_GetCommentData_System_Int32_">GetCommentData(int)</a>
        </td>
        <td class="markdown level1 summary"><p>If the Comment Extension is present in the source GIF file this method returns the comment data as is, without decoding.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Imaging_GcGifReader_GetGlobalPalette" data-uid="GrapeCity.Documents.Imaging.GcGifReader.GetGlobalPalette">
          <a class="xref" href="GrapeCity.Documents.Imaging.GcGifReader.GetGlobalPalette.html#GrapeCity_Documents_Imaging_GcGifReader_GetGlobalPalette">GetGlobalPalette()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a palette with sorted opaque colors in 32-bit ARGB format retrieved from the Global Color Table.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
