SWT Video Transparency Question [message #466737] |
Tue, 17 January 2006 02:08 |
Eclipse User |
|
|
|
Originally posted by: bremmi.yahoo.com
I've got JNI that wraps some DirectShow video playback API and I'm passing
handles down from Java to the native code to run the graph (play the
video) and I'm running into a few problems.
I want to draw text/graphics on top of the window that the video is being
rendered onto. What's the best way to do this? I tried creating a Shell
and putting two Canvases on top, one on which I draw the video (onto the
HWND represented by canvas.handle) and one to which I draw the overlay
text in a PaintListener event. This doesn't seem to work - if the canvases
are side by side, they're fine. If I put the overlay canvas on top of the
video canvas, only the video canvas gets drawn - my PaintListener never
gets called on the overlay canvas.
I've also tried creating two shells right on top of each other - one being
a video shell and the other being a transparent overlay shell, but this
doesn't always seem to work right either, and seems a little clunky. I'm
just wondering what the right path is - I can probably figure it out after
that.
Thanks =)
|
|
|
Powered by
FUDForum. Page generated in 0.04806 seconds