# GrapeCity.Documents.Imaging.Windows.GcWicBitmap.Load

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_Windows_GcWicBitmap_Load_" data-uid="GrapeCity.Documents.Imaging.Windows.GcWicBitmap.Load*">Load Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_Windows_GcWicBitmap_Load_" data-uid="GrapeCity.Documents.Imaging.Windows.GcWicBitmap.Load*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_GcWicBitmap_Load_System_IO_Stream_GrapeCity_Documents_Imaging_Windows_BaseTransform___" data-uid="GrapeCity.Documents.Imaging.Windows.GcWicBitmap.Load(System.IO.Stream,GrapeCity.Documents.Imaging.Windows.BaseTransform[])">Load(Stream, params BaseTransform[])</h4>
<div class="markdown level1 summary"><p>Loads the image from a System.IO.Stream. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Load(Stream stream, params BaseTransform[] transforms)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Load(stream As Stream, ParamArray transforms As BaseTransform())</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="GrapeCity.Documents.Imaging.Windows.BaseTransform.html">BaseTransform</a>[]</td>
      <td><span class="parametername">transforms</span></td>
      <td><p>The transformation chain for the image that is being loaded.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_Windows_GcWicBitmap_Load_" data-uid="GrapeCity.Documents.Imaging.Windows.GcWicBitmap.Load*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_GcWicBitmap_Load_System_IO_Stream_GrapeCity_Documents_Imaging_Windows_WicContainerFormat_System_Int32_System_Nullable_System_Drawing_Rectangle__GrapeCity_Documents_Imaging_Windows_BaseTransform___" data-uid="GrapeCity.Documents.Imaging.Windows.GcWicBitmap.Load(System.IO.Stream,GrapeCity.Documents.Imaging.Windows.WicContainerFormat,System.Int32,System.Nullable{System.Drawing.Rectangle},GrapeCity.Documents.Imaging.Windows.BaseTransform[])">Load(Stream, WicContainerFormat, int, Rectangle?, params BaseTransform[])</h4>
<div class="markdown level1 summary"><p>Loads the image from a System.IO.Stream. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Load(Stream stream, WicContainerFormat containerFormat, int frameIndex, Rectangle? imageRect, params BaseTransform[] transforms)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Load(stream As Stream, containerFormat As WicContainerFormat, frameIndex As Integer, imageRect As Rectangle?, ParamArray transforms As BaseTransform())</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="GrapeCity.Documents.Imaging.Windows.WicContainerFormat.html">WicContainerFormat</a></td>
      <td><span class="parametername">containerFormat</span></td>
      <td><p>The image container format; use Unknown to detect the format automatically.</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 an image frame to read, pass 0 for image formats not supporting multiple frames.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a>?</td>
      <td><span class="parametername">imageRect</span></td>
      <td><p>Clipping rectangle for the image after all transformations.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Imaging.Windows.BaseTransform.html">BaseTransform</a>[]</td>
      <td><span class="parametername">transforms</span></td>
      <td><p>The transformation chain for the image that is being loaded.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_Windows_GcWicBitmap_Load_" data-uid="GrapeCity.Documents.Imaging.Windows.GcWicBitmap.Load*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_GcWicBitmap_Load_System_String_GrapeCity_Documents_Imaging_Windows_BaseTransform___" data-uid="GrapeCity.Documents.Imaging.Windows.GcWicBitmap.Load(System.String,GrapeCity.Documents.Imaging.Windows.BaseTransform[])">Load(string, params BaseTransform[])</h4>
<div class="markdown level1 summary"><p>Loads the image from a file. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Load(string path, params BaseTransform[] transforms)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Load(path As String, ParamArray transforms As BaseTransform())</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">path</span></td>
      <td><p>The file path to the image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Imaging.Windows.BaseTransform.html">BaseTransform</a>[]</td>
      <td><span class="parametername">transforms</span></td>
      <td><p>The transformation chain for the image that is being loaded.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_Windows_GcWicBitmap_Load_" data-uid="GrapeCity.Documents.Imaging.Windows.GcWicBitmap.Load*"></a>
<h4 id="GrapeCity_Documents_Imaging_Windows_GcWicBitmap_Load_System_String_GrapeCity_Documents_Imaging_Windows_WicContainerFormat_System_Int32_System_Nullable_System_Drawing_Rectangle__GrapeCity_Documents_Imaging_Windows_BaseTransform___" data-uid="GrapeCity.Documents.Imaging.Windows.GcWicBitmap.Load(System.String,GrapeCity.Documents.Imaging.Windows.WicContainerFormat,System.Int32,System.Nullable{System.Drawing.Rectangle},GrapeCity.Documents.Imaging.Windows.BaseTransform[])">Load(string, WicContainerFormat, int, Rectangle?, params BaseTransform[])</h4>
<div class="markdown level1 summary"><p>Loads the image from a file. JPEG, PNG, GIF, BMP, TIFF, ICO, JPEG XR formats are supported.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Load(string path, WicContainerFormat containerFormat, int frameIndex, Rectangle? imageRect, params BaseTransform[] transforms)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Load(path As String, containerFormat As WicContainerFormat, frameIndex As Integer, imageRect As Rectangle?, ParamArray transforms As BaseTransform())</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">path</span></td>
      <td><p>The file path to the image.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Imaging.Windows.WicContainerFormat.html">WicContainerFormat</a></td>
      <td><span class="parametername">containerFormat</span></td>
      <td><p>The image container format; use Unknown to detect the format automatically.</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 an image frame to read, pass 0 for image formats not supporting multiple frames.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a>?</td>
      <td><span class="parametername">imageRect</span></td>
      <td><p>Clipping rectangle for the image after all transformations.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Imaging.Windows.BaseTransform.html">BaseTransform</a>[]</td>
      <td><span class="parametername">transforms</span></td>
      <td><p>The transformation chain for the image that is being loaded.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
