# GrapeCity.Documents.Word.ImageEffectList.AddDuotone

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_ImageEffectList_AddDuotone_" data-uid="GrapeCity.Documents.Word.ImageEffectList.AddDuotone*">AddDuotone Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_ImageEffectList_AddDuotone_" data-uid="GrapeCity.Documents.Word.ImageEffectList.AddDuotone*"></a>
<h4 id="GrapeCity_Documents_Word_ImageEffectList_AddDuotone_GrapeCity_Documents_Word_UserColor_GrapeCity_Documents_Word_UserColor_" data-uid="GrapeCity.Documents.Word.ImageEffectList.AddDuotone(GrapeCity.Documents.Word.UserColor,GrapeCity.Documents.Word.UserColor)">AddDuotone(UserColor, UserColor)</h4>
<div class="markdown level1 summary"><p>Adds a new <a class="xref" href="GrapeCity.Documents.Word.Duotone.html">Duotone</a> effect into the list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Duotone AddDuotone(UserColor color1, UserColor color2)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function AddDuotone(color1 As UserColor, color2 As UserColor) As Duotone</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="GrapeCity.Documents.Word.UserColor.html">UserColor</a></td>
      <td><span class="parametername">color1</span></td>
      <td><p>The first user color to combine with <code class="paramref">color2</code> through a linear interpolation to determine the new color for pixels.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.UserColor.html">UserColor</a></td>
      <td><span class="parametername">color2</span></td>
      <td><p>The second user color to combine with <code class="paramref">color1</code> through a linear interpolation to determine the new color for pixels.</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.Duotone.html">Duotone</a></td>
      <td><p>The inserted <a class="xref" href="GrapeCity.Documents.Word.Duotone.html">Duotone</a> effect.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
