Add Watermark to Capture stream
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.
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.
精彩评论