title: How can I make a original picture and its mirrored image merge together to be one image in C#?
body: <p>The original picture:
  <a href="https://i.stack.imgur.com/uJRI8.jpg" rel="nofollow noreferrer">The original picture</a></p>
  <p><a href="https://i.stack.imgur.com/uJRI8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uJRI8.jpg" alt="enter image description here" /></a></p>
  <p>How I want to display it:
  <a href="https://i.stack.imgur.com/7Airu.jpg" rel="nofollow noreferrer">Original picture with mirrored image</a></p>
  <p><a href="https://i.stack.imgur.com/7Airu.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7Airu.jpg" alt="enter image description here" /></a></p>
  <p>So far, I believe I will need to make a copy of original picture(transformPic) into another variable (lets call it Temp), then resize transformedPic for double width.  Copy Temp into transformedPic.  Then I will store a mirrored image of the original picture into Temp and copy it into the second half of transformedPic.</p>
  <p>My code so far:</p>
  <pre><code>int Height = transformedPic.GetLength(0); //rows
                      int Width = transformedPic.GetLength(1); //columns
  
  
                      Color Temp;
                      //copying transformedPic into temp variable
                      for (int i = 0; i &lt; Height; i++)
                      {
                          for (int j = 0; j &lt; Width; j++)
                          {
                              Temp = transformedPic[i, j];
                              transformedPic[i, j] = transformedPic[i, j];
                              transformedPic[i, j] = Temp;
                          }
                      }
  
                      //doubling the width of transformedPic
                      for (int i = 0; i &lt; Height; i++)
                      {
                          for (int j = 0; j &lt; Width*2; j++)
                          {
                              transformedPic[i, j-1] = transformedPic[i, j-1];
                          }
                      }
  
                      //copying temp into transformedPic variable
                      for (int i = 0; i &lt; Height; i++)
                      {
                          for (int j = 0; j &lt; Width; j++)
                          {
                              Temp = transformedPic[i, j];
                              transformedPic[i, j] = transformedPic[i, j];
                              transformedPic[i, j] = Temp;
                          }
                      }
  
                      //Mirroring original picture horizontally in Temp variable
                      for (int i = 0; i &lt; Height; i++)
                      {
                          for (int j = 0; j &lt; Width / 2; j++)
                          {
                              Temp = transformedPic[i, j];
                              transformedPic[i, j] = transformedPic[i, Width - 1 - j];
                              transformedPic[i, Width - 1 - j] = Temp;
                          }
                      }
  
  </code></pre>
  <p>How can I store the Temp array(mirrored original image) into the second half of the transformedPic(original picture) and both of them one picture itself?</p>
  <p>I have to do all this with the concepts of copying, resizing, and for looping 2D arrays.</p>