I'm writing a program to show different pictures and videos on a form. I started with displaying images with transparency using GDI. Due to the fact that GDI doesn't support transparency, the loading and displaying was very very slow, so I moved over to SharpDX.
In the meantime I managed (with one of the samples from SharpDX) to display different images on my form with opacity, positioning and sizing the images.
The images are drawn with DrawBitmap
of the RenderTarget
class in the render loop.
Now I want to do the same with videos. My goal is to play videos (more than one at the same time) in my form and set the position, size and transparency of the different videos.
I'm new to SharpDX and information about graphic programming and the documentation and the samples of SharpDX are very rare. I found many samples for playing videos with SharpDX, but all for XAML and WIN8 or Store-Apps, but no samples of how to play video in normal C# programs. What I found is one video player with SharpDX, but I don't know how to change this sample to add transpareny, sizing and positioning of the video playing.
Can anyone give me some examples how to play videos with SharpDX in a form or picturebox/panel? It would be great if this would show the things from above.