# C1.Excel.XLPictureShape.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*">XLPictureShape Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLImage_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLImage,System.Int32,System.Int32)">XLPictureShape(XLImage, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(XLImage img, int x, int y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(img As XLImage, x As Integer, y As Integer)</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="C1.Excel.XLImage.html">XLImage</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The image contained in the new <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the new shape with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the new shape with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLImage_System_Int32_System_Int32__examples">Examples</h5>
<p>The code below adds an image to a cell. The image is rendered in its original size, and is
indented from the top left corner of the cell by 30 twips:</p>
<pre><code class="lang-csharp">// get sheet and cell
XLSheet sheet = c1ExcelBook1.Sheets[0];
XLCell  cell  = sheet[row, col];

// build XLPictureShape
XLPictureShape pic = new XLPictureShape(image, 30, 30);

// assign XLPictureShape to cell
cell.Value = pic;</code></pre>



<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLImage_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLImage,System.Int32,System.Int32,System.Int32,System.Int32)">XLPictureShape(XLImage, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(XLImage img, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(img As XLImage, x As Integer, y As Integer, width As Integer, height As Integer)</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="C1.Excel.XLImage.html">XLImage</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The image contained in the new <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the image with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the image with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in twips.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLImage_System_Int32_System_Int32_System_Int32_System_Int32__examples">Examples</h5>
<p>The code below adds an image to a cell. The image is drawn within a rectangle centered on a
cell with a 60 twip edge around it:</p>
<pre><code class="lang-csharp">// get sheet and cell
XLSheet sheet = c1ExcelBook1.Sheets[0];
XLCell  cell  = sheet[row, col];

// calculate cell size to align picture
Rectangle rc = new Rectangle(0, 0
    sheet.Columns[col].Width, 
    sheet.Rows[row].Height);

// add 60 twip edge
rc.Inflate(-60, -60);

// build XLPictureShape
XLPictureShape pic = new XLPictureShape(image, 
    rc.X, rc.Y, rc.Width, rc.Height);

// assign XLPictureShape to cell
cell.Value = pic;</code></pre>



<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLImage_System_Drawing_RectangleF_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLImage,System.Drawing.RectangleF)">XLPictureShape(XLImage, RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(XLImage img, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(img As XLImage, rc As RectangleF)</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="C1.Excel.XLImage.html">XLImage</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The image contained in the new <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</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">rc</span></td>
      <td><p>The rectangle that specifies the image size and position
with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLImage_System_Drawing_RectangleF__examples">Examples</h5>
<p>The code below adds an image to a cell. The image is drawn within a rectangle centered on a
cell with a 60 twip edge around it:</p>
<pre><code class="lang-csharp">// get sheet and cell
XLSheet sheet = c1ExcelBook1.Sheets[0];
XLCell  cell  = sheet[row, col];

// calculate cell size to align picture
Rectangle rc = new Rectangle(0, 0
    sheet.Columns[col].Width, 
    sheet.Rows[row].Height);

// add 60 twip edge
rc.Inflate(-60, -60);

// build XLPictureShape
XLPictureShape pic = new XLPictureShape(image, rc);

// assign XLPictureShape to cell
cell.Value = pic;</code></pre>



<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLImage_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLImage)">XLPictureShape(XLImage)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(XLImage img)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(img 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><a class="xref" href="C1.Excel.XLImage.html">XLImage</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The image contained in the new <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLImage_System_Drawing_SizeF_C1_Excel_XLAlignHorz_C1_Excel_XLAlignVert_C1_Excel_ImageScaling_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLImage,System.Drawing.SizeF,C1.Excel.XLAlignHorz,C1.Excel.XLAlignVert,C1.Excel.ImageScaling)">XLPictureShape(XLImage, SizeF, XLAlignHorz, XLAlignVert, ImageScaling)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(XLImage img, SizeF cellSize, XLAlignHorz align, XLAlignVert valign, ImageScaling scale)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(img As XLImage, cellSize As SizeF, align As XLAlignHorz, valign As XLAlignVert, scale As ImageScaling)</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="C1.Excel.XLImage.html">XLImage</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The <span class="xref">GrapeCity.Documents.Drawing.Image</span> contained in the new <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a></td>
      <td><span class="parametername">cellSize</span></td>
      <td><p>The size of the cell that will contain the image, in pixels (used for aligning the image).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.XLAlignHorz.html">XLAlignHorz</a></td>
      <td><span class="parametername">align</span></td>
      <td><p>A <a class="xref" href="C1.Excel.XLAlignHorz.html">XLAlignHorz</a> value that specifies the position of the image in the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.XLAlignVert.html">XLAlignVert</a></td>
      <td><span class="parametername">valign</span></td>
      <td><p>A <a class="xref" href="C1.Excel.XLAlignVert.html">XLAlignVert</a> value that specifies the position of the image in the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.ImageScaling.html">ImageScaling</a></td>
      <td><span class="parametername">scale</span></td>
      <td><p>An <a class="xref" href="C1.Excel.ImageScaling.html">ImageScaling</a> value that specifies the image scaling within the cell.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLImage_System_Drawing_SizeF_C1_Excel_XLAlignHorz_C1_Excel_XLAlignVert_C1_Excel_ImageScaling__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This constructor automatically calculates the image size, position, and clipping based on the cell and image sizes
and on the given alignment and scaling parameters.</p>
</div>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLSheet_C1_Excel_XLImage_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLSheet,C1.Excel.XLImage,System.Int32,System.Int32,System.Int32,System.Int32)">XLPictureShape(XLSheet, XLImage, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</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 XLPictureShape(XLSheet sheet, XLImage img, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub New(sheet As XLSheet, img As XLImage, x As Integer, y As Integer, width As Integer, height As Integer)</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="C1.Excel.XLSheet.html">XLSheet</a></td>
      <td><span class="parametername">sheet</span></td>
      <td><p><a class="xref" href="C1.Excel.XLSheet.html">XLSheet</a> object that owns the new shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.XLImage.html">XLImage</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The image contained in the new <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the image with respect to the sheet, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the image with respect to the sheet, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLSheet_C1_Excel_XLImage_System_Drawing_RectangleF_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLSheet,C1.Excel.XLImage,System.Drawing.RectangleF)">XLPictureShape(XLSheet, XLImage, RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</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 XLPictureShape(XLSheet sheet, XLImage img, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub New(sheet As XLSheet, img As XLImage, rc As RectangleF)</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="C1.Excel.XLSheet.html">XLSheet</a></td>
      <td><span class="parametername">sheet</span></td>
      <td><p><a class="xref" href="C1.Excel.XLSheet.html">XLSheet</a> object that owns the new shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.XLImage.html">XLImage</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The image contained in the new <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</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">rc</span></td>
      <td><p>The rectangle that specifies the image size and position with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_GrapeCity_Documents_Drawing_IImage_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(GrapeCity.Documents.Drawing.IImage,System.Int32,System.Int32)">XLPictureShape(IImage, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</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 XLPictureShape(IImage image, int x, int y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub New(image As IImage, x As Integer, y As Integer)</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">image</span></td>
      <td><p>The <span class="xref">GrapeCity.Documents.Drawing.IImage</span> source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the new shape with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the new shape with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_GrapeCity_Documents_Drawing_IImage_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(GrapeCity.Documents.Drawing.IImage,System.Int32,System.Int32,System.Int32,System.Int32)">XLPictureShape(IImage, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</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 XLPictureShape(IImage image, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub New(image As IImage, x As Integer, y As Integer, width As Integer, height As Integer)</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">image</span></td>
      <td><p>The <span class="xref">GrapeCity.Documents.Drawing.IImage</span> source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the image with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the image with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_GrapeCity_Documents_Drawing_IImage_System_Drawing_RectangleF_" data-uid="C1.Excel.XLPictureShape.#ctor(GrapeCity.Documents.Drawing.IImage,System.Drawing.RectangleF)">XLPictureShape(IImage, RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</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 XLPictureShape(IImage image, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub New(image As IImage, rc As RectangleF)</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">image</span></td>
      <td><p>The <span class="xref">GrapeCity.Documents.Drawing.IImage</span> source.</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">rc</span></td>
      <td><p>The rectangle that specifies the image size and position
with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_GrapeCity_Documents_Drawing_IImage_" data-uid="C1.Excel.XLPictureShape.#ctor(GrapeCity.Documents.Drawing.IImage)">XLPictureShape(IImage)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</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 XLPictureShape(IImage image)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub New(image As IImage)</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">image</span></td>
      <td><p>The <span class="xref">GrapeCity.Documents.Drawing.IImage</span> source.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_GrapeCity_Documents_Drawing_IImage_System_Drawing_SizeF_C1_Excel_XLAlignHorz_C1_Excel_XLAlignVert_C1_Excel_ImageScaling_" data-uid="C1.Excel.XLPictureShape.#ctor(GrapeCity.Documents.Drawing.IImage,System.Drawing.SizeF,C1.Excel.XLAlignHorz,C1.Excel.XLAlignVert,C1.Excel.ImageScaling)">XLPictureShape(IImage, SizeF, XLAlignHorz, XLAlignVert, ImageScaling)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</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 XLPictureShape(IImage image, SizeF cellSize, XLAlignHorz align, XLAlignVert valign, ImageScaling scale)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub New(image As IImage, cellSize As SizeF, align As XLAlignHorz, valign As XLAlignVert, scale As ImageScaling)</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">image</span></td>
      <td><p>The <span class="xref">GrapeCity.Documents.Drawing.IImage</span> source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a></td>
      <td><span class="parametername">cellSize</span></td>
      <td><p>The size of the cell that will contain the image, in pixels (used for aligning the image).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.XLAlignHorz.html">XLAlignHorz</a></td>
      <td><span class="parametername">align</span></td>
      <td><p>A <a class="xref" href="C1.Excel.XLAlignHorz.html">XLAlignHorz</a> value that specifies the position of the image in the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.XLAlignVert.html">XLAlignVert</a></td>
      <td><span class="parametername">valign</span></td>
      <td><p>A <a class="xref" href="C1.Excel.XLAlignVert.html">XLAlignVert</a> value that specifies the position of the image in the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.ImageScaling.html">ImageScaling</a></td>
      <td><span class="parametername">scale</span></td>
      <td><p>An <a class="xref" href="C1.Excel.ImageScaling.html">ImageScaling</a> value that specifies the image scaling within the cell.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Excel_XLPictureShape__ctor_GrapeCity_Documents_Drawing_IImage_System_Drawing_SizeF_C1_Excel_XLAlignHorz_C1_Excel_XLAlignVert_C1_Excel_ImageScaling__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This constructor automatically calculates the image size, position, and clipping based on the cell and image sizes
and on the given alignment and scaling parameters.</p>
</div>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLSheet_GrapeCity_Documents_Drawing_IImage_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLSheet,GrapeCity.Documents.Drawing.IImage,System.Int32,System.Int32,System.Int32,System.Int32)">XLPictureShape(XLSheet, IImage, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</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 XLPictureShape(XLSheet sheet, IImage image, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub New(sheet As XLSheet, image As IImage, x As Integer, y As Integer, width As Integer, height As Integer)</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="C1.Excel.XLSheet.html">XLSheet</a></td>
      <td><span class="parametername">sheet</span></td>
      <td><p><a class="xref" href="C1.Excel.XLSheet.html">XLSheet</a> object that owns the new shape.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">IImage</span></td>
      <td><span class="parametername">image</span></td>
      <td><p>The <span class="xref">GrapeCity.Documents.Drawing.IImage</span> source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the image with respect to the sheet, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the image with respect to the sheet, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLSheet_GrapeCity_Documents_Drawing_IImage_System_Drawing_RectangleF_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLSheet,GrapeCity.Documents.Drawing.IImage,System.Drawing.RectangleF)">XLPictureShape(XLSheet, IImage, RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</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 XLPictureShape(XLSheet sheet, IImage image, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub New(sheet As XLSheet, image As IImage, rc As RectangleF)</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="C1.Excel.XLSheet.html">XLSheet</a></td>
      <td><span class="parametername">sheet</span></td>
      <td><p><a class="xref" href="C1.Excel.XLSheet.html">XLSheet</a> object that owns the new shape.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">IImage</span></td>
      <td><span class="parametername">image</span></td>
      <td><p>The <span class="xref">GrapeCity.Documents.Drawing.IImage</span> source.</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">rc</span></td>
      <td><p>The rectangle that specifies the image size and position
with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_Byte___System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(System.Byte[],System.Int32,System.Int32)">XLPictureShape(byte[], int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(byte[] data, int x, int y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(data As Byte(), x As Integer, y As Integer)</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">data</span></td>
      <td><p>The binary data as image source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the new shape with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the new shape with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_Byte___System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(System.Byte[],System.Int32,System.Int32,System.Int32,System.Int32)">XLPictureShape(byte[], int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(byte[] data, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(data As Byte(), x As Integer, y As Integer, width As Integer, height As Integer)</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">data</span></td>
      <td><p>The binary data as image source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the image with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the image with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_Byte___System_Drawing_RectangleF_" data-uid="C1.Excel.XLPictureShape.#ctor(System.Byte[],System.Drawing.RectangleF)">XLPictureShape(byte[], RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(byte[] data, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(data As Byte(), rc As RectangleF)</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">data</span></td>
      <td><p>The binary data as image source.</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">rc</span></td>
      <td><p>The rectangle that specifies the image size and position
with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_Byte___" data-uid="C1.Excel.XLPictureShape.#ctor(System.Byte[])">XLPictureShape(byte[])</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(byte[] data)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(data 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">data</span></td>
      <td><p>The binary data as image source.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_Byte___System_Drawing_Size_C1_Excel_XLAlignHorz_C1_Excel_XLAlignVert_C1_Excel_ImageScaling_" data-uid="C1.Excel.XLPictureShape.#ctor(System.Byte[],System.Drawing.Size,C1.Excel.XLAlignHorz,C1.Excel.XLAlignVert,C1.Excel.ImageScaling)">XLPictureShape(byte[], Size, XLAlignHorz, XLAlignVert, ImageScaling)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(byte[] data, Size cellSize, XLAlignHorz align, XLAlignVert valign, ImageScaling scale)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(data As Byte(), cellSize As Size, align As XLAlignHorz, valign As XLAlignVert, scale As ImageScaling)</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">data</span></td>
      <td><p>The binary data as image source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">cellSize</span></td>
      <td><p>The size of the cell that will contain the image, in pixels (used for aligning the image).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.XLAlignHorz.html">XLAlignHorz</a></td>
      <td><span class="parametername">align</span></td>
      <td><p>A <a class="xref" href="C1.Excel.XLAlignHorz.html">XLAlignHorz</a> value that specifies the position of the image in the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.XLAlignVert.html">XLAlignVert</a></td>
      <td><span class="parametername">valign</span></td>
      <td><p>A <a class="xref" href="C1.Excel.XLAlignVert.html">XLAlignVert</a> value that specifies the position of the image in the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.ImageScaling.html">ImageScaling</a></td>
      <td><span class="parametername">scale</span></td>
      <td><p>An <a class="xref" href="C1.Excel.ImageScaling.html">ImageScaling</a> value that specifies the image scaling within the cell.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Excel_XLPictureShape__ctor_System_Byte___System_Drawing_Size_C1_Excel_XLAlignHorz_C1_Excel_XLAlignVert_C1_Excel_ImageScaling__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This constructor automatically calculates the image size, position, and clipping based on the cell and image sizes
and on the given alignment and scaling parameters.</p>
</div>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLSheet_System_Byte___System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLSheet,System.Byte[],System.Int32,System.Int32,System.Int32,System.Int32)">XLPictureShape(XLSheet, byte[], int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(XLSheet sheet, byte[] data, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sheet As XLSheet, data As Byte(), x As Integer, y As Integer, width As Integer, height As Integer)</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="C1.Excel.XLSheet.html">XLSheet</a></td>
      <td><span class="parametername">sheet</span></td>
      <td><p><a class="xref" href="C1.Excel.XLSheet.html">XLSheet</a> object that owns the new shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td><span class="parametername">data</span></td>
      <td><p>The binary data as image source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the image with respect to the sheet, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the image with respect to the sheet, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLSheet_System_Byte___System_Drawing_RectangleF_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLSheet,System.Byte[],System.Drawing.RectangleF)">XLPictureShape(XLSheet, byte[], RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(XLSheet sheet, byte[] data, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sheet As XLSheet, data As Byte(), rc As RectangleF)</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="C1.Excel.XLSheet.html">XLSheet</a></td>
      <td><span class="parametername">sheet</span></td>
      <td><p><a class="xref" href="C1.Excel.XLSheet.html">XLSheet</a> object that owns the new shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td><span class="parametername">data</span></td>
      <td><p>The binary data as image source.</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">rc</span></td>
      <td><p>The rectangle that specifies the image size and position
with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_IO_Stream_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(System.IO.Stream,System.Int32,System.Int32)">XLPictureShape(Stream, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(Stream stream, int x, int y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(stream As Stream, x As Integer, y As Integer)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The stream with image source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the new shape with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the new shape with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_IO_Stream_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(System.IO.Stream,System.Int32,System.Int32,System.Int32,System.Int32)">XLPictureShape(Stream, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(Stream stream, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(stream As Stream, x As Integer, y As Integer, width As Integer, height As Integer)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The stream with image source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the image with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the image with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_IO_Stream_System_Drawing_RectangleF_" data-uid="C1.Excel.XLPictureShape.#ctor(System.IO.Stream,System.Drawing.RectangleF)">XLPictureShape(Stream, RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(Stream stream, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(stream As Stream, rc As RectangleF)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The stream with image source.</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">rc</span></td>
      <td><p>The rectangle that specifies the image size and position
with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_IO_Stream_" data-uid="C1.Excel.XLPictureShape.#ctor(System.IO.Stream)">XLPictureShape(Stream)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(Stream stream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(stream As Stream)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The stream with image source.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_IO_Stream_System_Drawing_SizeF_C1_Excel_XLAlignHorz_C1_Excel_XLAlignVert_C1_Excel_ImageScaling_" data-uid="C1.Excel.XLPictureShape.#ctor(System.IO.Stream,System.Drawing.SizeF,C1.Excel.XLAlignHorz,C1.Excel.XLAlignVert,C1.Excel.ImageScaling)">XLPictureShape(Stream, SizeF, XLAlignHorz, XLAlignVert, ImageScaling)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(Stream stream, SizeF cellSize, XLAlignHorz align, XLAlignVert valign, ImageScaling scale)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(stream As Stream, cellSize As SizeF, align As XLAlignHorz, valign As XLAlignVert, scale As ImageScaling)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The stream with image source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a></td>
      <td><span class="parametername">cellSize</span></td>
      <td><p>The size of the cell that will contain the image, in pixels (used for aligning the image).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.XLAlignHorz.html">XLAlignHorz</a></td>
      <td><span class="parametername">align</span></td>
      <td><p>A <a class="xref" href="C1.Excel.XLAlignHorz.html">XLAlignHorz</a> value that specifies the position of the image in the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.XLAlignVert.html">XLAlignVert</a></td>
      <td><span class="parametername">valign</span></td>
      <td><p>A <a class="xref" href="C1.Excel.XLAlignVert.html">XLAlignVert</a> value that specifies the position of the image in the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.ImageScaling.html">ImageScaling</a></td>
      <td><span class="parametername">scale</span></td>
      <td><p>An <a class="xref" href="C1.Excel.ImageScaling.html">ImageScaling</a> value that specifies the image scaling within the cell.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Excel_XLPictureShape__ctor_System_IO_Stream_System_Drawing_SizeF_C1_Excel_XLAlignHorz_C1_Excel_XLAlignVert_C1_Excel_ImageScaling__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This constructor automatically calculates the image size, position, and clipping based on the cell and image sizes
and on the given alignment and scaling parameters.</p>
</div>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLSheet_System_IO_Stream_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLSheet,System.IO.Stream,System.Int32,System.Int32,System.Int32,System.Int32)">XLPictureShape(XLSheet, Stream, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(XLSheet sheet, Stream stream, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sheet As XLSheet, stream As Stream, x As Integer, y As Integer, width As Integer, height As Integer)</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="C1.Excel.XLSheet.html">XLSheet</a></td>
      <td><span class="parametername">sheet</span></td>
      <td><p><a class="xref" href="C1.Excel.XLSheet.html">XLSheet</a> object that owns the new shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The stream with image source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the image with respect to the sheet, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the image with respect to the sheet, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLSheet_System_IO_Stream_System_Drawing_RectangleF_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLSheet,System.IO.Stream,System.Drawing.RectangleF)">XLPictureShape(XLSheet, Stream, RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(XLSheet sheet, Stream stream, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sheet As XLSheet, stream As Stream, rc As RectangleF)</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="C1.Excel.XLSheet.html">XLSheet</a></td>
      <td><span class="parametername">sheet</span></td>
      <td><p><a class="xref" href="C1.Excel.XLSheet.html">XLSheet</a> object that owns the new shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The stream with image source.</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">rc</span></td>
      <td><p>The rectangle that specifies the image size and position
with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_String_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(System.String,System.Int32,System.Int32)">XLPictureShape(string, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(string source, int x, int y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(source As String, x As Integer, y As Integer)</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.string">string</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>Text source as file path or base64 string data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the new shape with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the new shape with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_String_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(System.String,System.Int32,System.Int32,System.Int32,System.Int32)">XLPictureShape(string, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(string source, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(source As String, x As Integer, y As Integer, width As Integer, height As Integer)</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.string">string</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>Text source as file path or base64 string data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the image with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the image with respect to the cell, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_String_System_Drawing_RectangleF_" data-uid="C1.Excel.XLPictureShape.#ctor(System.String,System.Drawing.RectangleF)">XLPictureShape(string, RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(string source, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(source As String, rc As RectangleF)</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.string">string</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>Text source as file path or base64 string data.</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">rc</span></td>
      <td><p>The rectangle that specifies the image size and position
with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_String_" data-uid="C1.Excel.XLPictureShape.#ctor(System.String)">XLPictureShape(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(string source)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(source 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.string">string</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>Text source as file path or base64 string data.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_System_String_System_Drawing_SizeF_C1_Excel_XLAlignHorz_C1_Excel_XLAlignVert_C1_Excel_ImageScaling_" data-uid="C1.Excel.XLPictureShape.#ctor(System.String,System.Drawing.SizeF,C1.Excel.XLAlignHorz,C1.Excel.XLAlignVert,C1.Excel.ImageScaling)">XLPictureShape(string, SizeF, XLAlignHorz, XLAlignVert, ImageScaling)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(string source, SizeF cellSize, XLAlignHorz align, XLAlignVert valign, ImageScaling scale)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(source As String, cellSize As SizeF, align As XLAlignHorz, valign As XLAlignVert, scale As ImageScaling)</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.string">string</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>Text source as file path or base64 string data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a></td>
      <td><span class="parametername">cellSize</span></td>
      <td><p>The size of the cell that will contain the image, in pixels (used for aligning the image).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.XLAlignHorz.html">XLAlignHorz</a></td>
      <td><span class="parametername">align</span></td>
      <td><p>A <a class="xref" href="C1.Excel.XLAlignHorz.html">XLAlignHorz</a> value that specifies the position of the image in the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.XLAlignVert.html">XLAlignVert</a></td>
      <td><span class="parametername">valign</span></td>
      <td><p>A <a class="xref" href="C1.Excel.XLAlignVert.html">XLAlignVert</a> value that specifies the position of the image in the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Excel.ImageScaling.html">ImageScaling</a></td>
      <td><span class="parametername">scale</span></td>
      <td><p>An <a class="xref" href="C1.Excel.ImageScaling.html">ImageScaling</a> value that specifies the image scaling within the cell.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Excel_XLPictureShape__ctor_System_String_System_Drawing_SizeF_C1_Excel_XLAlignHorz_C1_Excel_XLAlignVert_C1_Excel_ImageScaling__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This constructor automatically calculates the image size, position, and clipping based on the cell and image sizes
and on the given alignment and scaling parameters.</p>
</div>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLSheet_System_String_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLSheet,System.String,System.Int32,System.Int32,System.Int32,System.Int32)">XLPictureShape(XLSheet, string, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(XLSheet sheet, string source, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sheet As XLSheet, source As String, x As Integer, y As Integer, width As Integer, height As Integer)</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="C1.Excel.XLSheet.html">XLSheet</a></td>
      <td><span class="parametername">sheet</span></td>
      <td><p><a class="xref" href="C1.Excel.XLSheet.html">XLSheet</a> object that owns the new shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>Text source as file path or base64 string data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The horizontal position of the image with respect to the sheet, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The vertical position of the image with respect to the sheet, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The width of the image, in twips.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The height of the image, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Excel_XLPictureShape__ctor_" data-uid="C1.Excel.XLPictureShape.#ctor*"></a>
<h4 id="C1_Excel_XLPictureShape__ctor_C1_Excel_XLSheet_System_String_System_Drawing_RectangleF_" data-uid="C1.Excel.XLPictureShape.#ctor(C1.Excel.XLSheet,System.String,System.Drawing.RectangleF)">XLPictureShape(XLSheet, string, RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Excel.XLPictureShape.html">XLPictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLPictureShape(XLSheet sheet, string source, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sheet As XLSheet, source As String, rc As RectangleF)</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="C1.Excel.XLSheet.html">XLSheet</a></td>
      <td><span class="parametername">sheet</span></td>
      <td><p><a class="xref" href="C1.Excel.XLSheet.html">XLSheet</a> object that owns the new shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>Text source as file path or base64 string data.</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">rc</span></td>
      <td><p>The rectangle that specifies the image size and position
with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
