Display Text or Picture over running Video

  • Thread starter Thread starter sam_sam80
  • Start date Start date
S

sam_sam80

Hi Evrybody,

Some one can tell me how to display texte or tranparent icon (like
mouse pointer) over a runnig video. This video is an IP camera stream
displaying within control (Vitamin Control) in C# application.

I think about DirectShow (DxLogo example) but I don't know how to
manipulate an IP stream. Any example is very appreciated.


Sory for my English


Samir
 
Samir,

You might want to consider using Windows Presentation Foundation if you
are using .NET 3.0. You could host your control as a windows control and
then overlay your text on top of the video (you simply have to create a text
element with a transparent background, all of which WPF handles very
easily).
 
Thank you Nicolas for your answer,
I am using .Net 1.1. I alredy create picturebox control with
tranparent Baground over the video window it display the image in
rectangle and the transparent color is filled with frame (winform)
color not with video content. It is not what I want to do.
Juste for more precision, my final objectif is to make annotation
(pointeur, text, drawing: line...) over a runnig video.
I am still blocked.

Samir
 
Samir,

If you are using .NET 1.1, then your options are limited. You might
want to create a control which hosts the media control which is hosting your
video, and then override the OnPaint method to draw your lines/text after
you render the video beneath (which would be accomplished by calling the
base implementation of OnPaint).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top