# C1.Win.Document.C1Image.GetFormat

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Document_C1Image_GetFormat_" data-uid="C1.Win.Document.C1Image.GetFormat*">GetFormat Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Document_C1Image_GetFormat_" data-uid="C1.Win.Document.C1Image.GetFormat*"></a>
<h4 id="C1_Win_Document_C1Image_GetFormat_System_Drawing_Imaging_ImageFormat_" data-uid="C1.Win.Document.C1Image.GetFormat(System.Drawing.Imaging.ImageFormat)">GetFormat(ImageFormat)</h4>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.Win.Document.C1ImageFormat.html">C1ImageFormat</a> value corresponding to the passed <span class="xref">System.Drawing.Imaging.ImageFormat</span>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static C1ImageFormat GetFormat(ImageFormat imageformat)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetFormat(imageformat As ImageFormat) As C1ImageFormat</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">ImageFormat</span></td>
      <td><span class="parametername">imageformat</span></td>
      <td><p>A <span class="xref">System.Drawing.Imaging.ImageFormat</span> object.</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="C1.Win.Document.C1ImageFormat.html">C1ImageFormat</a></td>
      <td><p>A <a class="xref" href="C1.Win.Document.C1ImageFormat.html">C1ImageFormat</a> enumeration.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
