API 调用将应用程序 (win) 的输出呈现为图像

发布于 2024-07-16 15:05:18 字数 220 浏览 6 评论 0原文

我需要构建一个应用程序(.NET),给定另一个应用程序的 pid,不断打印该应用程序的屏幕以制作视频...我正在使用 API 调用: 新位图(Screen.PrimaryScreen.Bounds.Width,Screen.PrimaryScreen.Bounds.Height,PixelFormat.Format32bppArgb);

我的问题是速度......

有什么想法吗?

I need a to build a application (.NET) that given the pid of another app continually makes printscreens of that app to make a video... I'm using the API call:
new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);

the problem I've is speed....

Any ideas ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海的爱人是光 2024-07-23 15:05:18

如果您需要高速捕获,您可能需要检查 DirectShow api,这样您就可以构建屏幕捕获图形并将输出保存为电影(avi、wmv 等)。您可以在那里找到一些相关信息:DirectShow.NET

您可以查看 PlayCap 示例。 您需要的是屏幕捕获源过滤器。 (您可以从 Windows sdk 示例中查看 MediaLooks 或 PushSourceDesktop 我确信还有更多选择..)

If you need high speed capture you might want to check DirectShow api, so you can build a screen capture graph and save output as a movie (avi, wmv etc).. Some information on that you can find there: DirectShow.NET.

You can check for example PlayCap example. What you need is screen capture source filter. (You can see MediaLooks or PushSourceDesktop from Windows sdk samples I'm sure there are more choices ..)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文