代码之家  ›  专栏  ›  技术社区  ›  Alok

官方的DirectShow PushSource桌面过滤器示例在GraphEdit中显示白色屏幕而不是桌面图像

  •  0
  • Alok  · 技术社区  · 3 年前

    我在学习 Directshow 过滤器开发。我试图编译并测试在 Push Source Filters Sample

    在这个示例代码中有三个过滤器

    • CPushSourceBitmap:单个位图(从当前目录加载)
    • CPushSourceBitmapSet:位图集(从当前目录加载)
    • CPushSourceDesktop:当前桌面映像的副本(仅限GDI)

    编译和构建之后,我使用命令注册了过滤器

    regsvr32.exe some_path\bin\x64\Debug\PushSource.dll

    然后我插入 PushSource Dektop Filter 进入graphiedit和渲染pin。

    enter image description here

    enter image description here

    在游戏中,我看到的是白色屏幕,而不是桌面视图。

    我错过了什么?

    我使用Windows 10 Home edition作为i3处理器上的操作系统。

    0 回复  |  直到 3 年前
    推荐文章