# GrapeCity.Documents.Imaging.GcTiffReader.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GcTiffReader__ctor_" data-uid="GrapeCity.Documents.Imaging.GcTiffReader.#ctor*">GcTiffReader Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GcTiffReader__ctor_" data-uid="GrapeCity.Documents.Imaging.GcTiffReader.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcTiffReader__ctor_System_String_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GcTiffReader.#ctor(System.String,System.Int32)">GcTiffReader(string, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="GrapeCity.Documents.Imaging.GcTiffReader.html">GcTiffReader</a> class and assigns the input file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GcTiffReader(string filePath, int frameIndex = -1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(filePath As String, Optional frameIndex 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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">filePath</span></td>
      <td><p>Full path to the input .tiff file.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">frameIndex</span></td>
      <td><p>Index of a frame to read. Pass -1 to get all frames.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_GcTiffReader__ctor_" data-uid="GrapeCity.Documents.Imaging.GcTiffReader.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcTiffReader__ctor_System_IO_Stream_System_Boolean_System_Int32_" data-uid="GrapeCity.Documents.Imaging.GcTiffReader.#ctor(System.IO.Stream,System.Boolean,System.Int32)">GcTiffReader(Stream, bool, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="GrapeCity.Documents.Imaging.GcTiffReader.html">GcTiffReader</a> class and assigns the input stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GcTiffReader(Stream stream, bool ownStream = false, int frameIndex = -1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(stream As Stream, Optional ownStream As Boolean = False, Optional frameIndex 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="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The input stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">ownStream</span></td>
      <td><p>Indicates if the input stream should be closed when the <a class="xref" href="GrapeCity.Documents.Imaging.GcTiffReader.html">GcTiffReader</a> is disposed.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">frameIndex</span></td>
      <td><p>Index of a frame to read. Pass -1 to get all frames.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
