Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 win 表单应用程序中创建 AxWebBrowser 的实例,因为我需要它来呈现 Flash。如何截取它在 C# 中呈现的页面的屏幕截图?
你不能只用
Graphics g = Graphics.FromImage(myImage); g.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
..显然与您窗户的尺寸等有关?从未尝试过,但我无法想象为什么它不起作用。