public Bitmap GetScreenBmp(Rectangle rect) { Bitmap screenBmp = new Bitmap(rect.Width, rect.Height); using (Graphics g = Graphics.FromImage(screenBmp)) { g.CopyFromScreen(rect.X, rect.Y, 0, 0, rect.Size); Cursor.Current.Draw(g, new Rectangle(Cursor.Position.X, Cursor.Position.Y, 33, 33)); } return screenBmp; } 这就是截图了 不要什么需求都先想按键精灵那种做法去做
110,533
社区成员
642,574
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧