# GrapeCity.Documents.Imaging.GcBitmap.SaveAsIco

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_GcBitmap_SaveAsIco_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.SaveAsIco*">SaveAsIco Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_GcBitmap_SaveAsIco_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.SaveAsIco*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcBitmap_SaveAsIco_System_IO_Stream_System_Nullable_System_Drawing_Rectangle__GrapeCity_Documents_Imaging_IcoFrameEncoding_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.SaveAsIco(System.IO.Stream,System.Nullable{System.Drawing.Rectangle},GrapeCity.Documents.Imaging.IcoFrameEncoding)">SaveAsIco(Stream, Rectangle?, IcoFrameEncoding)</h4>
<div class="markdown level1 summary"><p>Saves the image into a Stream in ICO format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SaveAsIco(Stream stream, Rectangle? clipRect = null, IcoFrameEncoding encoding = IcoFrameEncoding.Png)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveAsIco(stream As Stream, Optional clipRect As Rectangle? = Nothing, Optional encoding As IcoFrameEncoding = IcoFrameEncoding.Png)</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 output stream.</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">clipRect</span></td>
      <td><p>Clipping rectangle of the image to be saved.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Imaging.IcoFrameEncoding.html">IcoFrameEncoding</a></td>
      <td><span class="parametername">encoding</span></td>
      <td><p>Encoding of the frame image.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_GcBitmap_SaveAsIco_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.SaveAsIco*"></a>
<h4 id="GrapeCity_Documents_Imaging_GcBitmap_SaveAsIco_System_String_System_Nullable_System_Drawing_Rectangle__GrapeCity_Documents_Imaging_IcoFrameEncoding_" data-uid="GrapeCity.Documents.Imaging.GcBitmap.SaveAsIco(System.String,System.Nullable{System.Drawing.Rectangle},GrapeCity.Documents.Imaging.IcoFrameEncoding)">SaveAsIco(string, Rectangle?, IcoFrameEncoding)</h4>
<div class="markdown level1 summary"><p>Saves the image into a file in ICO format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SaveAsIco(string path, Rectangle? clipRect = null, IcoFrameEncoding encoding = IcoFrameEncoding.Png)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveAsIco(path As String, Optional clipRect As Rectangle? = Nothing, Optional encoding As IcoFrameEncoding = IcoFrameEncoding.Png)</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 output file path.</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">clipRect</span></td>
      <td><p>Clipping rectangle of the image to be saved.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Imaging.IcoFrameEncoding.html">IcoFrameEncoding</a></td>
      <td><span class="parametername">encoding</span></td>
      <td><p>Encoding of the frame image.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
