Beispiel #1
0
 /// <summary>
 /// 完成截圖。
 /// </summary>
 public void ScreenshotsComplete()
 {
     resaultPicture = BitMapDeal.BitmapCut(ScreenMap, sRect.X, sRect.Y, sRect.Width, sRect.Height);
     //FreeResource();
     this.DialogResult = DialogResult.OK;
     //this.Dispose();
 }
Beispiel #2
0
        /// <summary>
        /// 区域截取屏幕
        /// </summary>
        /// <returns></returns>
        public static Image SelectionPrintScreen()
        {
            Image     ret       = null;
            ScreenWnd ScrmapWnd = new ScreenWnd(BitMapDeal.GetScreenBitmap());

            try
            {
                if (ScrmapWnd.ShowDialog() == DialogResult.OK)
                {
                    ret = ScrmapWnd.ResaultPicture;
                }
            }
            finally
            {
                ScrmapWnd.FreeResource();
            }
            return(ret);
        }