# FarPoint.Web.Chart.FpChart.RenderImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Chart_FpChart_RenderImage_" data-uid="FarPoint.Web.Chart.FpChart.RenderImage*">RenderImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Chart_FpChart_RenderImage_" data-uid="FarPoint.Web.Chart.FpChart.RenderImage*"></a>
<h4 id="FarPoint_Web_Chart_FpChart_RenderImage" data-uid="FarPoint.Web.Chart.FpChart.RenderImage">RenderImage()</h4>
<div class="markdown level1 summary"><p>Renders the chart as a bitmap, and raises the Paint event
if raisePaintEvent is true.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Bitmap RenderImage()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderImage() As Bitmap</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">Bitmap</span></td>
      <td><p>A chart bitmap.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Chart_FpChart_RenderImage_" data-uid="FarPoint.Web.Chart.FpChart.RenderImage*"></a>
<h4 id="FarPoint_Web_Chart_FpChart_RenderImage_System_Boolean_" data-uid="FarPoint.Web.Chart.FpChart.RenderImage(System.Boolean)">RenderImage(bool)</h4>
<div class="markdown level1 summary"><p>Renders the image.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Bitmap RenderImage(bool isSparklineChart)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderImage(isSparklineChart As Boolean) As Bitmap</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.boolean">bool</a></td>
      <td><span class="parametername">isSparklineChart</span></td>
      <td><p>true if used to paint a Sparkline image.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">Bitmap</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Chart_FpChart_RenderImage_" data-uid="FarPoint.Web.Chart.FpChart.RenderImage*"></a>
<h4 id="FarPoint_Web_Chart_FpChart_RenderImage_System_IO_Stream_" data-uid="FarPoint.Web.Chart.FpChart.RenderImage(System.IO.Stream)">RenderImage(Stream)</h4>
<div class="markdown level1 summary"><p>Renders the chart model image 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 RenderImage(Stream stream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub RenderImage(stream As Stream)</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 stream stores the chart image.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Chart_FpChart_RenderImage_" data-uid="FarPoint.Web.Chart.FpChart.RenderImage*"></a>
<h4 id="FarPoint_Web_Chart_FpChart_RenderImage_System_IO_Stream_System_Boolean_" data-uid="FarPoint.Web.Chart.FpChart.RenderImage(System.IO.Stream,System.Boolean)">RenderImage(Stream, bool)</h4>
<div class="markdown level1 summary"><p>Renders the image.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void RenderImage(Stream stream, bool isSparklineChart)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub RenderImage(stream As Stream, isSparklineChart As Boolean)</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 stream.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isSparklineChart</span></td>
      <td><p>if set to <code>true</code> [is sparkline chart].</p>
</td>
    </tr>
  </tbody>
</table>
</div>
