Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Overlay image and/or text on video

 
 
Old 01-10-2006   #1 (permalink)
latteier@gmail.com


 
 

Overlay image and/or text on video

Hi,

I'm very new to this and I'm trying to figure out how to overlay images
and/or text over video.

At first I tried using MediaElement, but I'm having trouble getting it
to play my videos, and I can't figure out how to overlay something else
over it.

Next I tried creating a VideoDrawing and an ImageDrawing and putting
them together in a DrawingGroup. This also doesn't work for me. In
fact, I so far haven't figured out how to get the VideoDrawing to
render.

Does anyone have any suggestions for exploration? I'm not even sure
that this can be done using WPF. Perhaps DirectShow is the only correct
answer.

Thanks!

-Amos

P.S. I've also tried using the windows media player control, but that
doesn't seem to allow overlays with alpha.


My System SpecsSystem Spec
Old 01-10-2006   #2 (permalink)
Doug


 
 

Re: Overlay image and/or text on video

Here's a pretty simple example:

<Grid>
<MediaElement Source="c:\\temp\\bliss.avi" />
<Viewbox>
<TextBlock>Text over media element?</TextBlock>
</Viewbox>
</Grid>

But if you are just starting out with WPF you will probably want to run through
the samples & howtos in the SDK documentation.

- Doug

> Hi,
>
> I'm very new to this and I'm trying to figure out how to overlay
> images and/or text over video.
>
> At first I tried using MediaElement, but I'm having trouble getting it
> to play my videos, and I can't figure out how to overlay something
> else over it.
>
> Next I tried creating a VideoDrawing and an ImageDrawing and putting
> them together in a DrawingGroup. This also doesn't work for me. In
> fact, I so far haven't figured out how to get the VideoDrawing to
> render.
>
> Does anyone have any suggestions for exploration? I'm not even sure
> that this can be done using WPF. Perhaps DirectShow is the only
> correct answer.
>
> Thanks!
>
> -Amos
>
> P.S. I've also tried using the windows media player control, but that
> doesn't seem to allow overlays with alpha.
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Are Chats--text, audio, video---secure? Live Messenger
Attached image becomes text Live Mail
Vista Video and Image caching Media Center
Aero & Video Overlay Vista General
Copying web page text & Image to mail? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46