title: How to get image in image?
body: <p>Just no idea how to do that:</p>
  
  <p>We have one image, and we know constants <code>WIDTH</code> and <code>HEIGHT</code> of one card in this image. I would like to show one image in this image. Next constant is how many cards we have, so <code>CNT_CARDS = 52</code>. I don't want to create each card - only show that. I'm using winforms (C#).</p>
  
  <p><strong>Pseudocode</strong></p>
  
  <p>Load the image.</p>
  
  <p>For each card can apply:</p>
  
  <pre><code>int offsetTop = row * HEIGHT;
  int offsetLeft = column * WIDTH;
  imageInImage.Location = new Point(offsetLeft, offsetTop);
  imageInImage.Size = new Size(WIDTH, HEIGHT);
  </code></pre>
  
  <p>For example if we want to get Queen of diamond:</p>
  
  <pre><code>int offsetTop = 2 * HEIGHT;
  int offsetLeft = 11 * WIDTH;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/gnv4Q.jpg" alt="poker image"></p>