Beispiel #1
0
        /// <summary>
        /// 截图操作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button14_Click(object sender, EventArgs e)
        {
            var jpg  = WinApi.GetWindowCapture(WinApi.FindWindow(null, "Form1Text"));
            var name = $"Form1{GetTimeStamp()}.png";

            jpg.Save(Path.Combine(@"C:\MyDatas\公司\Pictures", name), ImageFormat.Png);
        }