如果它比您的显示器大,是否有任何方法可以屏幕抓取 Windows 窗体控件?
例如,我的 winform 是 3000px x 3000px
显示器是 1080p
this.Height = 3000;
this.Width = 3000;
Graphics g = this.CreateGraphics();
//new bitmap object to save the image
Bitmap bmp = new Bitmap(this.Width, this.Height + 1000);
//Drawing control to the bitmap
this.DrawToBitmap(bmp, new Rectangle(0, 0, this.Width, this.Height + 1000));
bmp.Save(@"C:\Users\Watson\Documents\Visual Studio 2013\WebSites\WebSite3\Images\button.jpg", ImageFormat.Jpeg);
bmp.Dispose();
屏幕截图总是受限于我的显示器尺寸。是否有解决方法来呈现您的应用程序,即使它不在您的屏幕上?