添加水印捕获流 [英] Add Watermark to Capture stream

查看:175
本文介绍了添加水印捕获流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用DirectX.Capture和直接显示。
使用现有的项目 http://www.codeproject.com/ KB /的DirectX / directxcapture.aspx?味精= 2490488
要添加水痕这可能吗?如果是的话怎么样?

I am using DirectX.Capture and Direct Show. Using existing project http://www.codeproject.com/KB/directx/directxcapture.aspx?msg=2490488 want to add water mark is it possible? if yes how?

推荐答案

要加在记录视频水印,你就必须插入一些水印滤入图,确实拍摄和录制。在我的应用程序,我通过样品采集做。过滤使箱,因为它是从输入源捕获的访问每个视频帧

To add a watermark in the recorder video, you would have to insert some watermarking filter into the graph that does capture and recording. In my apps, I am doing it via sample grabber filter which enables me to access every video frame as it is captured from the input source.

虽然小心:该帧将在一些像素格式,并如果它不是RGB24你会在很多麻烦画的东西就可以了。如果可能的话,配置您的输入源RGB24,你就可以在其上描绘即使GDI和GDI +。

Beware though: the frame will be in some pixel format, and if it's not RGB24 you'll be in a lot of trouble to draw something on it. If possible, configure your input source to RGB24 and you'll be able to draw on it even with GDI or GDI+.

展开你的问题,如果你需要更多的信息。

Expand your question if you need more info.

这篇关于添加水印捕获流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆