# C1.Win.Util.ImageRecolorer.MapPixels

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Util_ImageRecolorer_MapPixels_" data-uid="C1.Win.Util.ImageRecolorer.MapPixels*">MapPixels Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Util_ImageRecolorer_MapPixels_" data-uid="C1.Win.Util.ImageRecolorer.MapPixels*"></a>
<h4 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)">MapPixels(Bitmap, Bitmap, int, int)</h4>
<div class="markdown level1 summary"><p>Copies the source image to the destination image with replacing colors.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void MapPixels(Bitmap srcImage, Bitmap dstImage, int width, int height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub MapPixels(srcImage As Bitmap, dstImage As Bitmap, 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.bitmap">Bitmap</a></td>
      <td><span class="parametername">srcImage</span></td>
      <td><p>The source image using Format32bppArgb as pixel format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.bitmap">Bitmap</a></td>
      <td><span class="parametername">dstImage</span></td>
      <td><p>The destination image using Format32bppPArgb as pixel format.</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 source and destination images.</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 source and destination images.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
