# C1.WPF.BarCode.C1BarCode.Save

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_BarCode_C1BarCode_Save_" data-uid="C1.WPF.BarCode.C1BarCode.Save*">Save Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_BarCode_C1BarCode_Save_" data-uid="C1.WPF.BarCode.C1BarCode.Save*"></a>
<h4 id="C1_WPF_BarCode_C1BarCode_Save_System_IO_Stream_C1_WPF_BarCode_ImageFormat_" data-uid="C1.WPF.BarCode.C1BarCode.Save(System.IO.Stream,C1.WPF.BarCode.ImageFormat)">Save(Stream, ImageFormat)</h4>
<div class="markdown level1 summary"><p>Saves the barcode to a stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Save(Stream stream, ImageFormat imgFormat)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Save(stream As Stream, imgFormat As ImageFormat)</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> Where the barcode will be saved.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.BarCode.ImageFormat.html">ImageFormat</a></td>
      <td><span class="parametername">imgFormat</span></td>
      <td><p><a class="xref" href="C1.WPF.BarCode.ImageFormat.html">ImageFormat</a> The format of image</p>
</td>
    </tr>
  </tbody>
</table>
</div>
