# GrapeCity.Drawing.IDrawingContext.DrawCamera

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Drawing_IDrawingContext_DrawCamera_" data-uid="GrapeCity.Drawing.IDrawingContext.DrawCamera*">DrawCamera Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Drawing_IDrawingContext_DrawCamera_" data-uid="GrapeCity.Drawing.IDrawingContext.DrawCamera*"></a>
<h4 id="GrapeCity_Drawing_IDrawingContext_DrawCamera_GrapeCity_Spreadsheet_Drawing_ICamera_System_Int32_System_Int32_" data-uid="GrapeCity.Drawing.IDrawingContext.DrawCamera(GrapeCity.Spreadsheet.Drawing.ICamera,System.Int32,System.Int32)">DrawCamera(ICamera, int, int)</h4>
<div class="markdown level1 summary"><p>Draws the camera object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ImageBrush DrawCamera(ICamera camera, int width = 0, int height = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function DrawCamera(camera As ICamera, Optional width As Integer = 0, Optional height As Integer = 0) As ImageBrush</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="GrapeCity.Spreadsheet.Drawing.ICamera.html">ICamera</a></td>
      <td><span class="parametername">camera</span></td>
      <td><p>The camera object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the target picture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the target picture.</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="GrapeCity.Drawing.ImageBrush.html">ImageBrush</a></td>
      <td><p>An <a class="xref" href="GrapeCity.Drawing.ImageBrush.html">ImageBrush</a> object represents the picture of the camera object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
