title: Get a certain square region of a bitmap
body: <p>Hey guys I was wondering if there is a way to get a certain region of a bit map? I'm trying to make a tileset cutter and I need it to iterate through the loaded tileset and cut the image up into xscale * yscale images then save them individually. I am currently using this for my loop for the cutting procedure.</p>
  
  <pre><code>         int x_scale, y_scale, image_width, image_height;
  
           image_width = form1.getWidth();
           image_height = form1.getHeight();
           x_scale = Convert.ToInt32(xs.Text);
           y_scale = Convert.ToInt32(ys.Text);
  
           for (int x = 0; x &lt; image_width; x += x_scale)
           {
               for (int y = 0; y &lt; image_height; y += y_scale)
               {
                   Bitmap new_cut = form1.getLoadedBitmap();//get the already loaded bitmap
  
  
               }
           }
  </code></pre>
  
  <p>So is there a way I can "select" a part of the bitmap new_cut and then save that portion?</p>