Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Video Transparency Question
SWT Video Transparency Question [message #466737] Tue, 17 January 2006 02:08
Eclipse UserFriend
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 =)
Previous Topic:Getting the context menu for a View
Next Topic:eclispe 64 crash
Goto Forum:
  


Current Time: Thu Apr 25 01:54:50 GMT 2024

Powered by FUDForum. Page generated in 0.02644 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top