# C1.C1Word.Canvas.PictureShape.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*">PictureShape Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor" data-uid="C1.C1Word.Canvas.PictureShape.#ctor">PictureShape()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor_System_Drawing_Image_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor(System.Drawing.Image)">PictureShape(Image)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape(Image img)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(img As Image)</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.image">Image</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The image contained in the new <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor_System_Drawing_Image_System_Int32_System_Int32_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor(System.Drawing.Image,System.Int32,System.Int32)">PictureShape(Image, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape(Image img, int x, int y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(img As Image, 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.drawing.image">Image</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The image contained in the new <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</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>


<a id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor_System_Drawing_Image_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor(System.Drawing.Image,System.Int32,System.Int32,System.Int32,System.Int32)">PictureShape(Image, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape(Image 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 Image, 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.drawing.image">Image</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The image contained in the new <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</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>


<a id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor_System_Drawing_Image_System_Drawing_Rectangle_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor(System.Drawing.Image,System.Drawing.Rectangle)">PictureShape(Image, Rectangle)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape(Image img, Rectangle rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(img As Image, rc As Rectangle)</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.image">Image</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The image contained in the new <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p>A rectangle that specifies the image size and position
with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor_System_Drawing_Image_System_Drawing_Size_System_Drawing_ContentAlignment_C1_C1Word_Canvas_ImageScaling_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor(System.Drawing.Image,System.Drawing.Size,System.Drawing.ContentAlignment,C1.C1Word.Canvas.ImageScaling)">PictureShape(Image, Size, ContentAlignment, ImageScaling)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape(Image img, Size cellSize, ContentAlignment align, ImageScaling scale)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(img As Image, cellSize As Size, align As ContentAlignment, 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.drawing.image">Image</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The <a class="xref" href="C1.C1Word.Canvas.PictureShape.Image.html#C1_C1Word_Canvas_PictureShape_Image">Image</a> contained in the new <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</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="https://learn.microsoft.com/dotnet/api/system.drawing.contentalignment">ContentAlignment</a></td>
      <td><span class="parametername">align</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.contentalignment">ContentAlignment</a> value that specifies the position of the image in the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Word.Canvas.ImageScaling.html">ImageScaling</a></td>
      <td><span class="parametername">scale</span></td>
      <td><p>An <a class="xref" href="C1.C1Word.Canvas.ImageScaling.html">ImageScaling</a> value that specifies the image scaling within the cell.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor_C1_C1Word_Canvas_IShapeContainer_System_Drawing_Image_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor(C1.C1Word.Canvas.IShapeContainer,System.Drawing.Image,System.Int32,System.Int32,System.Int32,System.Int32)">PictureShape(IShapeContainer, Image, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape(IShapeContainer container, Image img, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(container As IShapeContainer, img As Image, 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.C1Word.Canvas.IShapeContainer.html">IShapeContainer</a></td>
      <td><span class="parametername">container</span></td>
      <td><p><a class="xref" href="C1.C1Word.Canvas.IShapeContainer.html">IShapeContainer</a> object that owns the shape container.</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">img</span></td>
      <td><p>The image contained in the new <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</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_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor_C1_Win_Bitmap_C1Bitmap_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor(C1.Win.Bitmap.C1Bitmap)">PictureShape(C1Bitmap)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape(C1Bitmap bmp)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(bmp As C1Bitmap)</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">C1Bitmap</span></td>
      <td><span class="parametername">bmp</span></td>
      <td><p>The specified bitmap object contained in the new <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor_C1_Win_Bitmap_C1Bitmap_System_Int32_System_Int32_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor(C1.Win.Bitmap.C1Bitmap,System.Int32,System.Int32)">PictureShape(C1Bitmap, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape(C1Bitmap bmp, int x, int y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(bmp As C1Bitmap, 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">C1Bitmap</span></td>
      <td><span class="parametername">bmp</span></td>
      <td><p>The specified bitmap object contained in the new <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</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>


<a id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor_C1_Win_Bitmap_C1Bitmap_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor(C1.Win.Bitmap.C1Bitmap,System.Int32,System.Int32,System.Int32,System.Int32)">PictureShape(C1Bitmap, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape(C1Bitmap bmp, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(bmp As C1Bitmap, 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">C1Bitmap</span></td>
      <td><span class="parametername">bmp</span></td>
      <td><p>The specified bitmap object contained in the new <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</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>


<a id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor_C1_Win_Bitmap_C1Bitmap_System_Drawing_Rectangle_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor(C1.Win.Bitmap.C1Bitmap,System.Drawing.Rectangle)">PictureShape(C1Bitmap, Rectangle)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape(C1Bitmap bmp, Rectangle rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(bmp As C1Bitmap, rc As Rectangle)</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">C1Bitmap</span></td>
      <td><span class="parametername">bmp</span></td>
      <td><p>The specified bitmap object contained in the new <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p>A rectangle that specifies the image size and position
with respect to the cell, in twips.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor_C1_Win_Bitmap_C1Bitmap_System_Drawing_Size_System_Drawing_ContentAlignment_C1_C1Word_Canvas_ImageScaling_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor(C1.Win.Bitmap.C1Bitmap,System.Drawing.Size,System.Drawing.ContentAlignment,C1.C1Word.Canvas.ImageScaling)">PictureShape(C1Bitmap, Size, ContentAlignment, ImageScaling)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape(C1Bitmap bmp, Size cellSize, ContentAlignment align, ImageScaling scale)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(bmp As C1Bitmap, cellSize As Size, align As ContentAlignment, 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">C1Bitmap</span></td>
      <td><span class="parametername">bmp</span></td>
      <td><p>The specified bitmap object contained in the new <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</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="https://learn.microsoft.com/dotnet/api/system.drawing.contentalignment">ContentAlignment</a></td>
      <td><span class="parametername">align</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.contentalignment">ContentAlignment</a> value that specifies the position of the image in the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Word.Canvas.ImageScaling.html">ImageScaling</a></td>
      <td><span class="parametername">scale</span></td>
      <td><p>An <a class="xref" href="C1.C1Word.Canvas.ImageScaling.html">ImageScaling</a> value that specifies the image scaling within the cell.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Word_Canvas_PictureShape__ctor_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor*"></a>
<h4 id="C1_C1Word_Canvas_PictureShape__ctor_C1_C1Word_Canvas_IShapeContainer_C1_Win_Bitmap_C1Bitmap_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.C1Word.Canvas.PictureShape.#ctor(C1.C1Word.Canvas.IShapeContainer,C1.Win.Bitmap.C1Bitmap,System.Int32,System.Int32,System.Int32,System.Int32)">PictureShape(IShapeContainer, C1Bitmap, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PictureShape(IShapeContainer container, C1Bitmap bmp, int x, int y, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(container As IShapeContainer, bmp As C1Bitmap, 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.C1Word.Canvas.IShapeContainer.html">IShapeContainer</a></td>
      <td><span class="parametername">container</span></td>
      <td><p><a class="xref" href="C1.C1Word.Canvas.IShapeContainer.html">IShapeContainer</a> object that owns the shape container.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">C1Bitmap</span></td>
      <td><span class="parametername">bmp</span></td>
      <td><p>The specified bitmap object contained in the new <a class="xref" href="C1.C1Word.Canvas.PictureShape.html">PictureShape</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>
</div>
