By using DirectShowLib i can able to record the video by using ASF writter here is the code to start recording
try
{
IBaseFilter capFilter
Look at the DMO and DxLogo examples in the DirectShow.Net samples to do what your looking for. what Daniel Mošmondor is explaining you can find in the DxSnap example...
http://directshownet.sourceforge.net/
I'm doing it in my software in a way that SampleGrabber
filter is inserted into a graph, and upon arrival of a picture, I convert it to Bitmap
object, then draw on it with Graphics
.