# C1.Win.Util.ImageRecolorer

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Util_ImageRecolorer" data-uid="C1.Win.Util.ImageRecolorer" class="text-break">ImageRecolorer Class
</h1>
  <div class="markdown level0 summary"><p>Provides a method for replacing colors in the source image
with the specified new colors in the destination image.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">ImageRecolorer</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Util.html">C1.Win.Util</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Win_Util_ImageRecolorer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ImageRecolorer</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ImageRecolorer</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Util_ImageRecolorer__ctor" data-uid="C1.Win.Util.ImageRecolorer.#ctor">
          <a class="xref" href="C1.Win.Util.ImageRecolorer.-ctor.html#C1_Win_Util_ImageRecolorer__ctor">ImageRecolorer()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Win.Util.ImageRecolorer.html">ImageRecolorer</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_ImageRecolorer__ctor_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_" data-uid="C1.Win.Util.ImageRecolorer.#ctor(System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Color)">
          <a class="xref" href="C1.Win.Util.ImageRecolorer.-ctor.html#C1_Win_Util_ImageRecolorer__ctor_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_">ImageRecolorer(Color, Color, Color, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Win.Util.ImageRecolorer.html">ImageRecolorer</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_ImageRecolorer__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Win.Util.ImageRecolorer.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.Util.ImageRecolorer.-ctor.html#C1_Win_Util_ImageRecolorer__ctor_System_Int32_System_Int32_System_Int32_System_Int32_">ImageRecolorer(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.Win.Util.ImageRecolorer.html">ImageRecolorer</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Util_ImageRecolorer_ChannelBlack" data-uid="C1.Win.Util.ImageRecolorer.ChannelBlack">
          <a class="xref" href="C1.Win.Util.ImageRecolorer.ChannelBlack.html#C1_Win_Util_ImageRecolorer_ChannelBlack">ChannelBlack</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color to replace Black in the source image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_ImageRecolorer_ChannelBlue" data-uid="C1.Win.Util.ImageRecolorer.ChannelBlue">
          <a class="xref" href="C1.Win.Util.ImageRecolorer.ChannelBlue.html#C1_Win_Util_ImageRecolorer_ChannelBlue">ChannelBlue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color to replace Blue in the source image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_ImageRecolorer_ChannelMagenta" data-uid="C1.Win.Util.ImageRecolorer.ChannelMagenta">
          <a class="xref" href="C1.Win.Util.ImageRecolorer.ChannelMagenta.html#C1_Win_Util_ImageRecolorer_ChannelMagenta">ChannelMagenta</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color to replace Magenta in the source image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_ImageRecolorer_ChannelWhite" data-uid="C1.Win.Util.ImageRecolorer.ChannelWhite">
          <a class="xref" href="C1.Win.Util.ImageRecolorer.ChannelWhite.html#C1_Win_Util_ImageRecolorer_ChannelWhite">ChannelWhite</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color to replace White in the source image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_ImageRecolorer_IgnoreColor" data-uid="C1.Win.Util.ImageRecolorer.IgnoreColor">
          <a class="xref" href="C1.Win.Util.ImageRecolorer.IgnoreColor.html#C1_Win_Util_ImageRecolorer_IgnoreColor">IgnoreColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color to ignore on replacing.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_ImageRecolorer_IgnoreColorTolerance" data-uid="C1.Win.Util.ImageRecolorer.IgnoreColorTolerance">
          <a class="xref" href="C1.Win.Util.ImageRecolorer.IgnoreColorTolerance.html#C1_Win_Util_ImageRecolorer_IgnoreColorTolerance">IgnoreColorTolerance</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that controls the range of colors to ignore when replacing.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Util_ImageRecolorer_BlendOverBackground_System_Drawing_Bitmap_System_Drawing_Color_System_Drawing_Color_" data-uid="C1.Win.Util.ImageRecolorer.BlendOverBackground(System.Drawing.Bitmap,System.Drawing.Color,System.Drawing.Color)">
          <a class="xref" href="C1.Win.Util.ImageRecolorer.BlendOverBackground.html#C1_Win_Util_ImageRecolorer_BlendOverBackground_System_Drawing_Bitmap_System_Drawing_Color_System_Drawing_Color_">BlendOverBackground(Bitmap, Color, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Blends only the pixels matching the given <code class="paramref">targetColor</code> against a specified
<code class="paramref">background</code> color, preserving all other pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Util_ImageRecolorer_MapPixels_System_Drawing_Bitmap_System_Drawing_Bitmap_System_Int32_System_Int32_" data-uid="C1.Win.Util.ImageRecolorer.MapPixels(System.Drawing.Bitmap,System.Drawing.Bitmap,System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.Util.ImageRecolorer.MapPixels.html#C1_Win_Util_ImageRecolorer_MapPixels_System_Drawing_Bitmap_System_Drawing_Bitmap_System_Int32_System_Int32_">MapPixels(Bitmap, Bitmap, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the source image to the destination image with replacing colors.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
