# GrapeCity.SpreadBuilder.DDSheet.AddImage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_SpreadBuilder_DDSheet_AddImage_" data-uid="GrapeCity.SpreadBuilder.DDSheet.AddImage*">AddImage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_SpreadBuilder_DDSheet_AddImage_" data-uid="GrapeCity.SpreadBuilder.DDSheet.AddImage*"></a>
<h4 id="GrapeCity_SpreadBuilder_DDSheet_AddImage_System_Byte___GrapeCity_SpreadBuilder_Imaging_ImageInfo_System_Drawing_Color_System_Drawing_Color_System_Int32_System_Int16_System_Int32_System_Int16_System_Int32_System_Int16_System_Int32_System_Int16_System_String_" data-uid="GrapeCity.SpreadBuilder.DDSheet.AddImage(System.Byte[],GrapeCity.SpreadBuilder.Imaging.ImageInfo,System.Drawing.Color,System.Drawing.Color,System.Int32,System.Int16,System.Int32,System.Int16,System.Int32,System.Int16,System.Int32,System.Int16,System.String)">AddImage(byte[], ImageInfo, Color, Color, int, short, int, short, int, short, int, short, string)</h4>
<div class="markdown level1 summary"><p>Adds the specified image (currently saved as PNG) to this sheet at the specified location and with the specified settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddImage(byte[] imageData, ImageInfo imageOptions, Color lineColor, Color backColor, int columnLeft, short dxL, int rowTop, short dyT, int columnRight, short dxR, int rowBottom, short dyB, string hyperlink)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</td>
      <td><span class="parametername">imageData</span></td>
      <td><p>This is an image object that represents the image to be placed on the sheet.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.SpreadBuilder.Imaging.ImageInfo.html">ImageInfo</a></td>
      <td><span class="parametername">imageOptions</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">lineColor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">backColor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnLeft</span></td>
      <td><p>Column containing the upper left corner of the object's bounding rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int16">short</a></td>
      <td><span class="parametername">dxL</span></td>
      <td><p>X (horizontal) position of the upper left corner of the object's bounding rectangle,
relative to the left side of the underlying cell (specified in colL), expressed as 1/1024th of the cell
width.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowTop</span></td>
      <td><p>Row containing the upper left corner of the object's bounding rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int16">short</a></td>
      <td><span class="parametername">dyT</span></td>
      <td><p>Y (vertical) position of the upper left corner of the object's bounding rectangle,
relative to the top of the underlying cell, expressed as 1/1024th of the cell height.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnRight</span></td>
      <td><p>Column containing the lower right corner of the object's bounding rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int16">short</a></td>
      <td><span class="parametername">dxR</span></td>
      <td><p>X (horizontal) position of the lower right corner of the object's bounding rectangle, relative to the left side of the underlying cell, expressed as 1/1024th of the cell width.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowBottom</span></td>
      <td><p>Row containing the lower right corner of the object's bounding rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int16">short</a></td>
      <td><span class="parametername">dyB</span></td>
      <td><p>Y (vertical) position of the lower right corner of the object's bounding rectangle, relative to the top of the underlying cell, expressed as 1/1024th of the cell height.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">hyperlink</span></td>
      <td><p>If you want the image to have a clickable hyperlink, enter the URL here.  Otherwise use an empty string.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
