# FarPoint.Web.Spread.BaseCellType.DrawBackgroundImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_BaseCellType_DrawBackgroundImage_" data-uid="FarPoint.Web.Spread.BaseCellType.DrawBackgroundImage*">DrawBackgroundImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_BaseCellType_DrawBackgroundImage_" data-uid="FarPoint.Web.Spread.BaseCellType.DrawBackgroundImage*"></a>
<h4 id="FarPoint_Web_Spread_BaseCellType_DrawBackgroundImage_FarPoint_PDF_PdfGraphics_System_Drawing_RectangleF_FarPoint_Web_Spread_Appearance_System_Boolean_" data-uid="FarPoint.Web.Spread.BaseCellType.DrawBackgroundImage(FarPoint.PDF.PdfGraphics,System.Drawing.RectangleF,FarPoint.Web.Spread.Appearance,System.Boolean)">DrawBackgroundImage(PdfGraphics, RectangleF, Appearance, bool)</h4>
<div class="markdown level1 summary"><p>Draws the background image to PDF.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected RectangleF DrawBackgroundImage(PdfGraphics g, RectangleF r, Appearance appearance, bool isLocked)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function DrawBackgroundImage(g As PdfGraphics, r As RectangleF, appearance As Appearance, isLocked As Boolean) As RectangleF</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><span class="xref">PdfGraphics</span></td>
      <td><span class="parametername">g</span></td>
      <td><p>PDF graphics device</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">RectangleF</span></td>
      <td><span class="parametername">r</span></td>
      <td><p>Rectangle boundary of the cell to print</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.Appearance.html">Appearance</a></td>
      <td><span class="parametername">appearance</span></td>
      <td><p>Appearance settings</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isLocked</span></td>
      <td><p>Whether the cell is marked as locked</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">RectangleF</span></td>
      <td><p>return true to stop painting text later</p>
</td>
    </tr>
  </tbody>
</table>
</div>
