예제 #1
0
파일: Mainform.cs 프로젝트: qzlly/SETUNA2
 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));
         }
     }
 }