# C1.Excel.XLImage.FromImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Excel_XLImage_FromImage_" data-uid="C1.Excel.XLImage.FromImage*">FromImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Excel_XLImage_FromImage_" data-uid="C1.Excel.XLImage.FromImage*"></a>
<h4 id="C1_Excel_XLImage_FromImage_GrapeCity_Documents_Drawing_Image_" data-uid="C1.Excel.XLImage.FromImage(GrapeCity.Documents.Drawing.Image)">FromImage(Image)</h4>
<div class="markdown level1 summary"><p>Convert a image to the image in memory.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public static XLImage FromImage(Image image)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Shared Function FromImage(image As Image) As XLImage</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">Image</span></td>
      <td><span class="parametername">image</span></td>
      <td><p>The image 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.Excel.XLImage.html">XLImage</a></td>
      <td><p>The graphics image in memory.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLImage_FromImage_" data-uid="C1.Excel.XLImage.FromImage*"></a>
<h4 id="C1_Excel_XLImage_FromImage_GrapeCity_Documents_Drawing_IImage_" data-uid="C1.Excel.XLImage.FromImage(GrapeCity.Documents.Drawing.IImage)">FromImage(IImage)</h4>
<div class="markdown level1 summary"><p>Convert a image interface to the image in memory.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public static XLImage FromImage(IImage img)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Shared Function FromImage(img As IImage) As XLImage</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">IImage</span></td>
      <td><span class="parametername">img</span></td>
      <td><p>The image interface.</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.Excel.XLImage.html">XLImage</a></td>
      <td><p>The graphics image in memory.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
