# C1.Win.C1Chart3D.C1Chart3D.SaveImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage*">SaveImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage*"></a>
<h4 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_IO_Stream_System_Drawing_Imaging_ImageFormat_System_Drawing_Size_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage(System.IO.Stream,System.Drawing.Imaging.ImageFormat,System.Drawing.Size)">SaveImage(Stream, ImageFormat, Size)</h4>
<div class="markdown level1 summary"><p>Saves an chart image of the specified format and size to the specified 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 SaveImage(Stream stream, ImageFormat imgFmt, Size sz)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveImage(stream As Stream, imgFmt As ImageFormat, sz As Size)</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>Stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.imageformat">ImageFormat</a></td>
      <td><span class="parametername">imgFmt</span></td>
      <td><p>Image format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">sz</span></td>
      <td><p>Image size in pixels.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_IO_Stream_System_Drawing_Imaging_ImageFormat_System_Drawing_Size__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates an image of the specified format of the current chart display and saves the results
to the specified stream. If an error occurs, an appropriate exception is thrown indicating the cause of error.</p>
</div>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_IO_Stream_System_Drawing_Imaging_ImageFormat_System_Drawing_Size__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.Win.C1Chart3D.C1Chart3D.html">C1Chart3D</a></div>
</div>


<a id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage*"></a>
<h4 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_IO_Stream_System_Drawing_Imaging_ImageFormat_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage(System.IO.Stream,System.Drawing.Imaging.ImageFormat)">SaveImage(Stream, ImageFormat)</h4>
<div class="markdown level1 summary"><p>Saves an chart image of the specified format to the specified 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 SaveImage(Stream stream, ImageFormat imgFmt)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveImage(stream As Stream, imgFmt 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>Stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.imageformat">ImageFormat</a></td>
      <td><span class="parametername">imgFmt</span></td>
      <td><p>Image format</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_IO_Stream_System_Drawing_Imaging_ImageFormat__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates an image of the specified format of the current chart display and saves the results
to the specified stream. The size of the current display, in pixels, is used.
If an error occurs, an appropriate exception is thrown indicating the cause of error.</p>
</div>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_IO_Stream_System_Drawing_Imaging_ImageFormat__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.Win.C1Chart3D.C1Chart3D.html">C1Chart3D</a></div>
</div>


<a id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage*"></a>
<h4 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_Byte____System_Drawing_Imaging_ImageFormat_System_Drawing_Size_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage(System.Byte[]@,System.Drawing.Imaging.ImageFormat,System.Drawing.Size)">SaveImage(ref byte[], ImageFormat, Size)</h4>
<div class="markdown level1 summary"><p>Saves an chart image of the specified format and size to the specified byte array.</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(ref byte[] byteArray, ImageFormat imgFmt, Size sz)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveImage(ByRef byteArray As Byte(), imgFmt As ImageFormat, sz As Size)</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.byte">byte</a>[]</td>
      <td><span class="parametername">byteArray</span></td>
      <td><p>Byte array.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.imageformat">ImageFormat</a></td>
      <td><span class="parametername">imgFmt</span></td>
      <td><p>Image format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">sz</span></td>
      <td><p>Image size in pixels.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_Byte____System_Drawing_Imaging_ImageFormat_System_Drawing_Size__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates an image of the specified format and size of the current chart display and saves the results
to the specified byte array. If an error occurs, an appropriate exception is thrown indicating the cause of error.</p>
</div>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_Byte____System_Drawing_Imaging_ImageFormat_System_Drawing_Size__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.Win.C1Chart3D.C1Chart3D.html">C1Chart3D</a></div>
</div>


<a id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage*"></a>
<h4 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_Byte____System_Drawing_Imaging_ImageFormat_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage(System.Byte[]@,System.Drawing.Imaging.ImageFormat)">SaveImage(ref byte[], ImageFormat)</h4>
<div class="markdown level1 summary"><p>Saves an chart image of the specified format to the specified byte array.</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(ref byte[] byteArray, ImageFormat imgFmt)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveImage(ByRef byteArray As Byte(), imgFmt 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.byte">byte</a>[]</td>
      <td><span class="parametername">byteArray</span></td>
      <td><p>Byte array.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.imageformat">ImageFormat</a></td>
      <td><span class="parametername">imgFmt</span></td>
      <td><p>Image format.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_Byte____System_Drawing_Imaging_ImageFormat__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates an image of the specified format and the current display size and saves the results
to the specified byte array. If an error occurs, an appropriate exception is thrown indicating the cause of error.</p>
</div>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_Byte____System_Drawing_Imaging_ImageFormat__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.Win.C1Chart3D.C1Chart3D.html">C1Chart3D</a></div>
</div>


<a id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage*"></a>
<h4 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_Drawing_Imaging_ImageFormat_System_Drawing_Size_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage(System.Drawing.Imaging.ImageFormat,System.Drawing.Size)">SaveImage(ImageFormat, Size)</h4>
<div class="markdown level1 summary"><p>Saves an chart image of the specified format and size to the clipboard.</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(ImageFormat imgFmt, Size sz)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveImage(imgFmt As ImageFormat, sz As Size)</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.drawing.imaging.imageformat">ImageFormat</a></td>
      <td><span class="parametername">imgFmt</span></td>
      <td><p>Image format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">sz</span></td>
      <td><p>Image size in pixels.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_Drawing_Imaging_ImageFormat_System_Drawing_Size__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates an image of the specified format and size and saves the results
to the clipboard. If an error occurs, an appropriate exception is thrown indicating the cause of error.</p>
</div>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_Drawing_Imaging_ImageFormat_System_Drawing_Size__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.Win.C1Chart3D.C1Chart3D.html">C1Chart3D</a></div>
</div>


<a id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage*"></a>
<h4 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_Drawing_Imaging_ImageFormat_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage(System.Drawing.Imaging.ImageFormat)">SaveImage(ImageFormat)</h4>
<div class="markdown level1 summary"><p>Saves an chart image of the specified format and display size to the clipboard.</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(ImageFormat imgFmt)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveImage(imgFmt 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.drawing.imaging.imageformat">ImageFormat</a></td>
      <td><span class="parametername">imgFmt</span></td>
      <td><p>Image format.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_Drawing_Imaging_ImageFormat__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates an image of the specified format and display size and saves the results
to the clipboard. If an error occurs, an appropriate exception is thrown indicating the cause of error.</p>
</div>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_Drawing_Imaging_ImageFormat__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.Win.C1Chart3D.C1Chart3D.html">C1Chart3D</a></div>
</div>


<a id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage*"></a>
<h4 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_String_System_Drawing_Imaging_ImageFormat_System_Drawing_Size_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage(System.String,System.Drawing.Imaging.ImageFormat,System.Drawing.Size)">SaveImage(string, ImageFormat, Size)</h4>
<div class="markdown level1 summary"><p>Saves an chart image of the specified format and size to the specified file.</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(string filename, ImageFormat imgFmt, Size sz)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveImage(filename As String, imgFmt As ImageFormat, sz As Size)</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">filename</span></td>
      <td><p>File name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.imageformat">ImageFormat</a></td>
      <td><span class="parametername">imgFmt</span></td>
      <td><p>Image format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">sz</span></td>
      <td><p>Image size in pixels.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_String_System_Drawing_Imaging_ImageFormat_System_Drawing_Size__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates an image of the specified format and size and saves the results
to the specified file. If an error occurs, an appropriate exception is thrown indicating the cause of error.</p>
</div>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_String_System_Drawing_Imaging_ImageFormat_System_Drawing_Size__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.Win.C1Chart3D.C1Chart3D.html">C1Chart3D</a></div>
</div>


<a id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage*"></a>
<h4 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_String_System_Drawing_Imaging_ImageFormat_" data-uid="C1.Win.C1Chart3D.C1Chart3D.SaveImage(System.String,System.Drawing.Imaging.ImageFormat)">SaveImage(string, ImageFormat)</h4>
<div class="markdown level1 summary"><p>Saves an chart image of the specified format and display size to the specified file.</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(string filename, ImageFormat imgFmt)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SaveImage(filename As String, imgFmt 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.string">string</a></td>
      <td><span class="parametername">filename</span></td>
      <td><p>File name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.imageformat">ImageFormat</a></td>
      <td><span class="parametername">imgFmt</span></td>
      <td><p>Image format</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_String_System_Drawing_Imaging_ImageFormat__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method creates an image of the specified format and display size and saves the results
to the specified file. If an error occurs, an appropriate exception is thrown indicating the cause of error.</p>
</div>
<h5 id="C1_Win_C1Chart3D_C1Chart3D_SaveImage_System_String_System_Drawing_Imaging_ImageFormat__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.Win.C1Chart3D.C1Chart3D.html">C1Chart3D</a></div>
</div>
</div>
