I have a panel in my winform which plays a video on selection,and while the video is playing i need to grab the frames from it, which is after a button click,And the frames grabbed should be saved with a file name .I did a lot of research on implementing this ,
Initially i was trying for screenshot capture functions for that specific panel and displaying it in a picurebox. 1."copyfromscreen()" 2.using system messages. 3.drawtobitmap() -control specific , all these didn't work out that well,and I was not satisfied with the result.
And later i realised there is a method in directshow Ibasicvideo.getcurrentimage() to grab the current frame from the rendering video.I have been searching the internet for a good working example , but didn't succeed,I really need help on this ,
Any solution to display the current image of the video inside a seperate picturebox is appreciable.Thanks in advance !!!!