title: Cut an Image into 9 pieces C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4118150/image-splitting-into-9-pieces">Image splitting into 9 pieces</a>  </p>
  </blockquote>
  
  
  
  <p>Though I googled enough but unfortunately failed to find a help. This <a href="http://www.codeproject.com/Articles/4366/Displaying-split-Bitmap-files" rel="nofollow noreferrer" title="Code Project Tutorial">Code Project Tutorial</a> also failed to serve me what I actually need.</p>
  
  <p>I have an Image and 9 PictureBox(s) in a WinForm.</p>
  
  <pre><code>Image img = Image.FromFile("media\\a.png"); // a.png has 312X312 width and height
  //          some code help, to get
  //          img1, img2, img3, img4, img5, img6, img7, img8, img9
  //          having equal width and height
  //          then...
  pictureBox1.Image = img1;
  pictureBox2.Image = img2;
  pictureBox3.Image = img3;
  pictureBox4.Image = img4;
  pictureBox5.Image = img5;
  pictureBox6.Image = img6;
  pictureBox7.Image = img7;
  pictureBox8.Image = img8;
  pictureBox9.Image = img9;
  </code></pre>
  
  <p>Here is an example Image for you:</p>
  
  <p><img src="https://i.stack.imgur.com/yPZGV.png" alt="enter image description here"></p>
  
  <p>This is a part of my Picture Puzzle class project. I have done with photoshop images, now want to dynamically cut.</p>
  
  <p>Thanks in advance.</p>