l**2 发帖数: 126 | 1 我用摄像头自带的软件打开摄像头,然后想用抓取窗口的方法抓取图像
我用的这个函数:bitblt
但是只能把窗口的框架抓出来,各种文件,选项,菜单都可以抓出来,但是一到显示摄
像头图像的地方,什么都抓取不到啊....
谁知道怎么解决吗? | X****r 发帖数: 3557 | 2 Sorry I'm not used to the Chinese input on my PowerBook so I'm replying in
English.
Usually video applications render by using DirectDraw (a component of
DirectX), or other similar methods, that show the image directly on the
hardware, skipping the GDI layer, so GDI functions like bitblt wouldn't be
able to grab the image.
The easiest way to get images from video devices is to write a DirectShow
filter. If you would rather use your existing screen-grabbing application,
another thing you can prob
【在 l**2 的大作中提到】 : 我用摄像头自带的软件打开摄像头,然后想用抓取窗口的方法抓取图像 : 我用的这个函数:bitblt : 但是只能把窗口的框架抓出来,各种文件,选项,菜单都可以抓出来,但是一到显示摄 : 像头图像的地方,什么都抓取不到啊.... : 谁知道怎么解决吗?
| l**2 发帖数: 126 | 3 another thing you can probably do is to create a DirectShow graph using
existing filters, but set the renderer to use GDI instead of DirectShow.
你的意思是修改现在的这个摄像头自带的应用程序吗?但是不开源啊...
【在 X****r 的大作中提到】 : Sorry I'm not used to the Chinese input on my PowerBook so I'm replying in : English. : Usually video applications render by using DirectDraw (a component of : DirectX), or other similar methods, that show the image directly on the : hardware, skipping the GDI layer, so GDI functions like bitblt wouldn't be : able to grab the image. : The easiest way to get images from video devices is to write a DirectShow : filter. If you would rather use your existing screen-grabbing application, : another thing you can prob
| l**2 发帖数: 126 | |
|