Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text over video

Status
Not open for further replies.

Leozack

MIS
Oct 25, 2002
867
GB
Hey all - I'm just tinkering with a new c# winforms app and I'm struggling with a multimedia issue. I have a picturebox that I can write outlined/dropshadow text to, but to get an even nicer diffused/antialiased outline/shadow on I'd need to play with a graphics bitmap it seems - but without it it's running nice and fast with a .paint event that seems to be called whenever the form is resized so the text can stay centered horizontally & vertically and wrapped on resize. What's the fastest way to be able to make an even nicer outline?

More importantly, I've been experimenting with using directshow.net library 2005 to show a video in the form. I wanted to get it as a background on the picturebox instead of a picture and hoped the auto-resize-painting text would stay on it - but it seems this doesn't happen and I have to write on the graphics object that directshow.net is frame-capturing instead. Doing this works but I'd ahve to manually sort out the centering/position/wrapping - or find a way to force it to be updated on resize (it does seem to center/wrap the writing on the video but resizing the form doesn't change it (maybe beacuse the video part of the form isn't changing size)

I figure someone already has a nice library/process for making nice overlay text on videos from videofile or camerastream (nice looking like subtitles on an anime or something (not boring plain subtitles you might find on a movie!) This is all giving me a big headache as I'm really not sure how all the graphics object trickery is going on :/

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Anyone? :/

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
It's annoying that I can get text to draw where it only appears while I'm dragging the window-resizing about, or I can draw to the frames being captured before they're disaplyed on picturebox background yet can't do advanced glow etc but even without that the framerate drops enough to be noticable. Has noone got an answer to this? :/

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top