# C1.C1Pdf.C1PdfDocument.DrawMetafile

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Pdf_C1PdfDocument_DrawMetafile_" data-uid="C1.C1Pdf.C1PdfDocument.DrawMetafile*">DrawMetafile Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Pdf_C1PdfDocument_DrawMetafile_" data-uid="C1.C1Pdf.C1PdfDocument.DrawMetafile*"></a>
<h4 id="C1_C1Pdf_C1PdfDocument_DrawMetafile_System_Drawing_Imaging_Metafile_System_Drawing_RectangleF_System_Drawing_RectangleF_System_Boolean_System_Drawing_GraphicsUnit_" data-uid="C1.C1Pdf.C1PdfDocument.DrawMetafile(System.Drawing.Imaging.Metafile,System.Drawing.RectangleF,System.Drawing.RectangleF,System.Boolean,System.Drawing.GraphicsUnit)">DrawMetafile(Metafile, RectangleF, RectangleF, bool, GraphicsUnit)</h4>
<div class="markdown level1 summary"><p>Draw metafile.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawMetafile(Metafile meta, RectangleF rcImage, RectangleF rcClip, bool clipAllStrings, GraphicsUnit unit)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawMetafile(meta As Metafile, rcImage As RectangleF, rcClip As RectangleF, clipAllStrings As Boolean, unit As GraphicsUnit)</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.metafile">Metafile</a></td>
      <td><span class="parametername">meta</span></td>
      <td><p>The metafile object to draw.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rcImage</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a> structure that specifies the location of the drawn image, in points from the top left corner of the page.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rcClip</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a> structure that specifies a clipping rectangle on the page. No part of the image is drawn outside the clipping rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">clipAllStrings</span></td>
      <td><p>Whether to clip all strings or no.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphicsunit">GraphicsUnit</a></td>
      <td><span class="parametername">unit</span></td>
      <td><p>The unit of measure for the given data.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
