简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM