Question

I'm working on a video player project (or something like that), that can play .avi files. I wanted to improve it with something "special", so I put a "Take snapshot" button (btnSnapshot) under the playback area, which is a Picture Box (picboxPlayback). I'm using DirectX.AudioVideoPlayback, and the video file's owner is this Picture Box:

Microsoft.DirectX.AudioVideoPlayback.Video myVideo = new Microsoft.DirectX.AudioVideoPlayback.Video(SelectedVideoPath);
myVideo.Owner = picboxPlayback;

Then I've tried to write the code that takes the snapshot from the current frame and saves it to a JPEG image to a user-defined path, but I've stuck when I realized that "Video" does not have any "TakeSnapshot" or such methods.

I looked on internet for a quick and simple solution, but did'nt find anything, or what I found was so complicated that I did'nt understand it. (probably because I'm too beginner to DirectX)

I don't know if there's even a quick and simple way to do this, but I would be very grateful if you could help me. :)

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top