# GrapeCity.ActiveReports.Document.Section.GifImage.CreateRead

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Document_Section_GifImage_CreateRead_" data-uid="GrapeCity.ActiveReports.Document.Section.GifImage.CreateRead*">CreateRead Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Document_Section_GifImage_CreateRead_" data-uid="GrapeCity.ActiveReports.Document.Section.GifImage.CreateRead*"></a>
<h4 id="GrapeCity_ActiveReports_Document_Section_GifImage_CreateRead_System_IO_BinaryReader_System_Int16_GrapeCity_ActiveReports_Core_Document_Page_GrapeCity_ActiveReports_Core_Document_IImageConverterService_" data-uid="GrapeCity.ActiveReports.Document.Section.GifImage.CreateRead(System.IO.BinaryReader,System.Int16,GrapeCity.ActiveReports.Core.Document.Page,GrapeCity.ActiveReports.Core.Document.IImageConverterService)">CreateRead(BinaryReader, short, Page, IImageConverterService)</h4>
<div class="markdown level1 summary"><p>Return an instance of the <a class="xref" href="GrapeCity.ActiveReports.Document.Section.GifImage.html">GifImage</a> received from a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.binaryreader">BinaryReader</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static GifImage CreateRead(BinaryReader reader, short fileVersion, Page pageObj, IImageConverterService imageConverterService)</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.binaryreader">BinaryReader</a></td>
      <td><span class="parametername">reader</span></td>
      <td><p>Reader containing the binary data of <a class="xref" href="GrapeCity.ActiveReports.Document.Section.GifImage.html">GifImage</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int16">short</a></td>
      <td><span class="parametername">fileVersion</span></td>
      <td><p>The type of data in the stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Core.Document.Page.html">Page</a></td>
      <td><span class="parametername">pageObj</span></td>
      <td><p>The page.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Core.Document.IImageConverterService.html">IImageConverterService</a></td>
      <td><span class="parametername">imageConverterService</span></td>
      <td><p>Service that converts image data from one format to another.</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.ActiveReports.Document.Section.GifImage.html">GifImage</a></td>
      <td><p>A new <a class="xref" href="GrapeCity.ActiveReports.Document.Section.GifImage.html">GifImage</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Document_Section_GifImage_CreateRead_System_IO_BinaryReader_System_Int16_GrapeCity_ActiveReports_Core_Document_Page_GrapeCity_ActiveReports_Core_Document_IImageConverterService__examples">Examples</h5>
<pre><code class="lang-csharp">private void AddImageToPage(Page page, string filename)
{
	var fileStream = new FileStream(filename, FileMode.Open);
	var binaryReader = new BinaryReader(fileStream);
	var result = GifImage.CreateRead(binaryReader, Globals.DocumentVersion, page, new GcImageConverterService(CustomFontResolver.Instance));
}</code></pre>

</div>
