Bitmap memoryImage;
private void CaptureScreen()
{
Graphics myGraphics = this.CreateGraphics();
Size s = this.Size;
memoryImage = new Bitmap(s.Width, s.Height, myGraphics);
Graphics memoryGraphics = Graphics.FromImage(memoryImage);
memoryGraphics.CopyFromScreen(this.Location.X, this.Location.Y, 0, 0, s);
}
几句话COPY当前窗口的图像快照(.net2.0以上适用)
最新推荐文章于 2019-07-01 16:36:00 发布
314

被折叠的 条评论
为什么被折叠?



