title: Best DirectShow way to capture image from web cam preview ? SampleGrabber is deprecated
body: <p>I have developed DirectShow C++ app which successfully previews web cam view into provided window. Now I want to capture image from this live web cam preview. I have used graph manager, ICaptureGraphBuilder2, IMoniker etc. for that.
  I have searched and found following options: 
  WIA &amp; Sample Grabber.
  Many recommends using SampleGrabber but as per MS's msdn document <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd376984%28v=vs.85%29.aspx" rel="nofollow">SampleGrabber</a> is deprecated and one should not use. And I don't want to use WIA API.</p>
  
  <p>So which is the best DirectShow way to capture image from live web cam preview? </p>