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