R
raylopez99
I just downloaded the apparently free SDK for DirectX 9, all 200+ MB
of it, but as I read about WPF I wonder: is DirectX obsolete? Should
I even bother learning how to use it? After all, the end user must
have the DirectX library installed on their PC before they can use any
video playing program you write.
Does WPF even use DirectX? Or are the functions of DirectX (mostly
video and graphics stuff, possibly accelerated via software or
hardware) already 'built into' WPF/Vista?
I would like to know before I install the SDK.
Thanks,
RL
Playing a Video File
To play a video file, start by creating an instance of the Video
class. You can specify the file name in the Video constructor as in
the following C# code example, or else call the Open method with the
file name.
[C#]
using Microsoft.DirectX.AudioVideoPlayback; //not in standard VS2008
library, must download from MSFT
public class MyVideoPlayer : System.Windows.Forms.Form
{
of it, but as I read about WPF I wonder: is DirectX obsolete? Should
I even bother learning how to use it? After all, the end user must
have the DirectX library installed on their PC before they can use any
video playing program you write.
Does WPF even use DirectX? Or are the functions of DirectX (mostly
video and graphics stuff, possibly accelerated via software or
hardware) already 'built into' WPF/Vista?
I would like to know before I install the SDK.
Thanks,
RL
Playing a Video File
To play a video file, start by creating an instance of the Video
class. You can specify the file name in the Video constructor as in
the following C# code example, or else call the Open method with the
file name.
[C#]
using Microsoft.DirectX.AudioVideoPlayback; //not in standard VS2008
library, must download from MSFT
public class MyVideoPlayer : System.Windows.Forms.Form
{