MFVideoSaveToFile Method (IMFFrame)
path to a file to save
Saves frame's video to a file. Supported formats are: PNG, JPG, BMP, TGA, TIFF
Syntax
Sub MFVideoSaveToFile( _
   ByVal _bsFileName As String _
) 
void MFVideoSaveToFile( 
   string _bsFileName
)
procedure MFVideoSaveToFile( 
    _bsFileName: String
); 
void MFVideoSaveToFile( 
   BSTR* _bsFileName
) 

Parameters

_bsFileName
path to a file to save
Example

Here is an example of how to get a frame and save its video into a file:

                
m_objMFReader = new MFReaderClass();
m_objMFReader.ReaderOpen(sourceFileName, "");
m_avProps = new M_AV_PROPS(); // set video format for conversion
m_avProps.vidProps.eVideoFormat = eMVideoFormat.eMVF_HD1080_5994i;
MFFrame pFrame = null;
// Get next frame or frame by position
if (m_objMFReader != null)
    m_objMFReader.SourceFrameConvertedGetByTime(ref m_avProps, -1, -1, out pFrame, "");
pFrame.MFVideoSaveToFile(@"c:\test.png");
See Also

Reference

IMFFrame Interface
IMFFrame Members