# GrapeCity.Documents.Excel.CellPicture.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_CellPicture__ctor_" data-uid="GrapeCity.Documents.Excel.CellPicture.#ctor*">CellPicture Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_CellPicture__ctor_" data-uid="GrapeCity.Documents.Excel.CellPicture.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_CellPicture__ctor_System_Byte___" data-uid="GrapeCity.Documents.Excel.CellPicture.#ctor(System.Byte[])">CellPicture(byte[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Excel.CellPicture.html">CellPicture</a> class
with the specified image data.
The provided array is copied, so subsequent changes to the input array
do not affect this instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CellPicture(byte[] imageData)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(imageData As Byte())</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.byte">byte</a>[]</td>
      <td><span class="parametername">imageData</span></td>
      <td><p>The image binary data. Supported types: PNG, JPG, GIF, BMP, SVG.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_CellPicture__ctor_" data-uid="GrapeCity.Documents.Excel.CellPicture.#ctor*"></a>
<h4 id="GrapeCity_Documents_Excel_CellPicture__ctor_System_Byte___System_String_" data-uid="GrapeCity.Documents.Excel.CellPicture.#ctor(System.Byte[],System.String)">CellPicture(byte[], string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Excel.CellPicture.html">CellPicture</a> class
with the specified image data and alt text.
The provided array is copied, so subsequent changes to the input array
do not affect this instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CellPicture(byte[] imageData, string altText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(imageData As Byte(), altText As String)</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.byte">byte</a>[]</td>
      <td><span class="parametername">imageData</span></td>
      <td><p>The image binary data. Supported types: PNG, JPG, GIF, BMP, SVG.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">altText</span></td>
      <td><p>The alt text of the picture.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
