# GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.SaveAsWebp

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap_SaveAsWebp_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.SaveAsWebp*">SaveAsWebp Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap_SaveAsWebp_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.SaveAsWebp*"></a>
<h4 id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap_SaveAsWebp_System_IO_Stream_GrapeCity_Documents_Imaging_Skia_WebpOptions_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.SaveAsWebp(System.IO.Stream,GrapeCity.Documents.Imaging.Skia.WebpOptions)">SaveAsWebp(Stream, WebpOptions)</h4>
<div class="markdown level1 summary"><p>Saves the image into a Stream in WEBP 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 SaveAsWebp(Stream stream, WebpOptions options = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveAsWebp(stream As Stream, Optional options As WebpOptions = Nothing)</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="GrapeCity.Documents.Imaging.Skia.WebpOptions.html">WebpOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>The options for the WEBP image encoder.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap_SaveAsWebp_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.SaveAsWebp*"></a>
<h4 id="GrapeCity_Documents_Imaging_Skia_GcSkiaBitmap_SaveAsWebp_System_String_GrapeCity_Documents_Imaging_Skia_WebpOptions_" data-uid="GrapeCity.Documents.Imaging.Skia.GcSkiaBitmap.SaveAsWebp(System.String,GrapeCity.Documents.Imaging.Skia.WebpOptions)">SaveAsWebp(string, WebpOptions)</h4>
<div class="markdown level1 summary"><p>Saves the image into a file in WEBP 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 SaveAsWebp(string filePath, WebpOptions options = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveAsWebp(filePath As String, Optional options As WebpOptions = Nothing)</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>The output file path.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Imaging.Skia.WebpOptions.html">WebpOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>The options for the WEBP image encoder.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
