# C1.WPF.C1Chart3D.C1Chart3D.SaveImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.WPF.C1Chart3D.C1Chart3D.SaveImage*">SaveImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.WPF.C1Chart3D.C1Chart3D.SaveImage*"></a>
<h4 id="C1_WPF_C1Chart3D_C1Chart3D_SaveImage_System_IO_Stream_C1_WPF_C1Chart3D_ImageFormat_" data-uid="C1.WPF.C1Chart3D.C1Chart3D.SaveImage(System.IO.Stream,C1.WPF.C1Chart3D.ImageFormat)">SaveImage(Stream, ImageFormat)</h4>
<div class="markdown level1 summary"><p>Saves the chart image to the provided stream using the specified image 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 SaveImage(Stream stream, ImageFormat imageFormat)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveImage(stream As Stream, imageFormat 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></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.C1Chart3D.ImageFormat.html">ImageFormat</a></td>
      <td><span class="parametername">imageFormat</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.WPF.C1Chart3D.C1Chart3D.SaveImage*"></a>
<h4 id="C1_WPF_C1Chart3D_C1Chart3D_SaveImage_System_IO_Stream_C1_WPF_C1Chart3D_ImageFormat_System_Double_System_Double_" data-uid="C1.WPF.C1Chart3D.C1Chart3D.SaveImage(System.IO.Stream,C1.WPF.C1Chart3D.ImageFormat,System.Double,System.Double)">SaveImage(Stream, ImageFormat, double, double)</h4>
<div class="markdown level1 summary"><p>Saves the chart image to the provided stream using the specified image format
with the specified horizontal and vertical resolution.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SaveImage(Stream stream, ImageFormat imageFormat, double dpiX, double dpiY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveImage(stream As Stream, imageFormat As ImageFormat, dpiX As Double, dpiY As Double)</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.C1Chart3D.ImageFormat.html">ImageFormat</a></td>
      <td><span class="parametername">imageFormat</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">dpiX</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">dpiY</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.WPF.C1Chart3D.C1Chart3D.SaveImage*"></a>
<h4 id="C1_WPF_C1Chart3D_C1Chart3D_SaveImage_System_IO_Stream_System_Windows_Media_Imaging_BitmapEncoder_System_Double_System_Double_" data-uid="C1.WPF.C1Chart3D.C1Chart3D.SaveImage(System.IO.Stream,System.Windows.Media.Imaging.BitmapEncoder,System.Double,System.Double)">SaveImage(Stream, BitmapEncoder, double, double)</h4>
<div class="markdown level1 summary"><p>Saves the chart image to the provided stream using the specified encoder
with the specified horizontal and vertical resolution.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SaveImage(Stream stream, BitmapEncoder encoder, double dpiX, double dpiY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveImage(stream As Stream, encoder As BitmapEncoder, dpiX As Double, dpiY As Double)</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.imaging.bitmapencoder">BitmapEncoder</a></td>
      <td><span class="parametername">encoder</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">dpiX</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">dpiY</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
