×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Text over video

Text over video

Text over video

(OP)
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);

RE: Text over video

(OP)
Anyone?  :/

_________________________________
Leozack

CODE

MakeUniverse($infinity,1,42);

RE: Text over video

(OP)
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);

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close