Example #1
0
 private void CommandCutRect(Rectangle rect, string fname)
 {
     using (Bitmap bitmap = new Bitmap(rect.Width, rect.Height, PixelFormat.Format24bppRgb))
     {
         Point location = new Point(rect.X, rect.Y);
         CaptureForm.CopyFromScreen(bitmap, location);
         if (fname == "")
         {
             this.AddImageList(new ScrapSourceImage(bitmap, location));
         }
     }
 }