Esempio n. 1
0
        /// <summary>
        /// 从计算机屏幕上创建对象
        /// </summary>
        /// <returns>创建的对象</returns>
        public static ReversibleDrawer FromScreen()
        {
            ReversibleDrawer rd = new ReversibleDrawer();

            rd.InitFromHWnd(new IntPtr(0));
            return(rd);
        }
Esempio n. 2
0
        /// <summary>
        /// 从一个窗体句柄创建一个对象
        /// </summary>
        /// <param name="hwnd">窗体句柄</param>
        /// <returns>创建的对象</returns>
        public static ReversibleDrawer FromHwnd(IntPtr hwnd)
        {
            ReversibleDrawer rd = new ReversibleDrawer();

            rd.InitFromHWnd(hwnd);
            return(rd);
        }