# GrapeCity.Documents.Word.CanvasShape.AddPicture

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_CanvasShape_AddPicture_" data-uid="GrapeCity.Documents.Word.CanvasShape.AddPicture*">AddPicture Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_CanvasShape_AddPicture_" data-uid="GrapeCity.Documents.Word.CanvasShape.AddPicture*"></a>
<h4 id="GrapeCity_Documents_Word_CanvasShape_AddPicture" data-uid="GrapeCity.Documents.Word.CanvasShape.AddPicture">AddPicture()</h4>
<div class="markdown level1 summary"><p>Adds a new <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a> to the end of the canvas shape.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Picture AddPicture()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddPicture() As Picture</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a></td>
      <td><p>The added <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_CanvasShape_AddPicture_" data-uid="GrapeCity.Documents.Word.CanvasShape.AddPicture*"></a>
<h4 id="GrapeCity_Documents_Word_CanvasShape_AddPicture_System_Byte___System_String_" data-uid="GrapeCity.Documents.Word.CanvasShape.AddPicture(System.Byte[],System.String)">AddPicture(byte[], string)</h4>
<div class="markdown level1 summary"><p>Adds a new <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a> to the end of the canvas shape.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Picture AddPicture(byte[] imageBytes, string contentType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddPicture(imageBytes As Byte(), contentType As String) As Picture</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">imageBytes</span></td>
      <td><p>The image data representing the picture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">contentType</span></td>
      <td><p>The content type of the image data.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a></td>
      <td><p>The added <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_CanvasShape_AddPicture_" data-uid="GrapeCity.Documents.Word.CanvasShape.AddPicture*"></a>
<h4 id="GrapeCity_Documents_Word_CanvasShape_AddPicture_GrapeCity_Documents_Drawing_Image_" data-uid="GrapeCity.Documents.Word.CanvasShape.AddPicture(GrapeCity.Documents.Drawing.Image)">AddPicture(Image)</h4>
<div class="markdown level1 summary"><p>Adds a new <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a> to the end of the canvas shape.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Picture AddPicture(Image image)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddPicture(image As Image) As Picture</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">Image</span></td>
      <td><span class="parametername">image</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a></td>
      <td><p>The added <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a>. The size of the picture is set to the size of the source image.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_CanvasShape_AddPicture_" data-uid="GrapeCity.Documents.Word.CanvasShape.AddPicture*"></a>
<h4 id="GrapeCity_Documents_Word_CanvasShape_AddPicture_System_Byte___System_String_System_Single_System_Single_" data-uid="GrapeCity.Documents.Word.CanvasShape.AddPicture(System.Byte[],System.String,System.Single,System.Single)">AddPicture(byte[], string, float, float)</h4>
<div class="markdown level1 summary"><p>Adds a new <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a> to the end of the canvas shape.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Picture AddPicture(byte[] imageBytes, string contentType, float width, float height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddPicture(imageBytes As Byte(), contentType As String, width As Single, height As Single) As Picture</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">imageBytes</span></td>
      <td><p>The image data representing the picture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">contentType</span></td>
      <td><p>The content type of the image data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The picture's width, in points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The picture's height, in points.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a></td>
      <td><p>The added <a class="xref" href="GrapeCity.Documents.Word.Picture.html">Picture</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
