# GrapeCity.Spreadsheet.WinForms.Ribbon.Icon.FromImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_WinForms_Ribbon_Icon_FromImage_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.Icon.FromImage*">FromImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_WinForms_Ribbon_Icon_FromImage_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.Icon.FromImage*"></a>
<h4 id="GrapeCity_Spreadsheet_WinForms_Ribbon_Icon_FromImage_System_Drawing_Size_System_Drawing_Color_System_Drawing_Image_" data-uid="GrapeCity.Spreadsheet.WinForms.Ribbon.Icon.FromImage(System.Drawing.Size,System.Drawing.Color,System.Drawing.Image)">FromImage(Size, Color, Image)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of Icon with with specified key, size, color and image.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Icon FromImage(Size size, Color color, Image image)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FromImage(size As Size, color As Color, image As Image) As Icon</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.size">Size</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The icon size.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>Indicates the icon color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.image">Image</a></td>
      <td><span class="parametername">image</span></td>
      <td><p>The image to show.</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.Spreadsheet.WinForms.Ribbon.Icon.html">Icon</a></td>
      <td><p>A new instance of Icon</p>
</td>
    </tr>
  </tbody>
</table>
</div>
