# GrapeCity.Documents.Html.GcHtmlRenderer.RenderToGcBitmap

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Html_GcHtmlRenderer_RenderToGcBitmap_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToGcBitmap*">RenderToGcBitmap Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Html_GcHtmlRenderer_RenderToGcBitmap_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToGcBitmap*"></a>
<h4 id="GrapeCity_Documents_Html_GcHtmlRenderer_RenderToGcBitmap_GrapeCity_Documents_Imaging_GcBitmap_GrapeCity_Documents_Drawing_HtmlToImageFormat_" data-uid="GrapeCity.Documents.Html.GcHtmlRenderer.RenderToGcBitmap(GrapeCity.Documents.Imaging.GcBitmap,GrapeCity.Documents.Drawing.HtmlToImageFormat)">RenderToGcBitmap(GcBitmap, HtmlToImageFormat)</h4>
<div class="markdown level1 summary"><p>Renders the source HTML to an existing <a class="xref" href="../DS.Documents.Imaging/GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool RenderToGcBitmap(GcBitmap bitmap, HtmlToImageFormat format = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RenderToGcBitmap(bitmap As GcBitmap, Optional format As HtmlToImageFormat = Nothing) 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="../DS.Documents.Imaging/GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a></td>
      <td><span class="parametername">bitmap</span></td>
      <td><p>The destination <a class="xref" href="../DS.Documents.Imaging/GrapeCity.Documents.Imaging.GcBitmap.html">GcBitmap</a>.Note that its current content will be lost.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Drawing.HtmlToImageFormat.html">HtmlToImageFormat</a></td>
      <td><span class="parametername">format</span></td>
      <td><p>The formatting attributes.</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>True if HTML was successfully rendered; otherwise, false.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
