MFORMATSLib Namespace > IMFSource Interface : SourceFrameGetByNumber Method |
Sub SourceFrameGetByNumber( _ ByVal _nFrameNo As Integer, _ ByVal _rtMaxWait As Long, _ ByRef _ppFrame As MFFrame, _ ByVal _bsHints As String _ )
void SourceFrameGetByNumber( int _nFrameNo, long _rtMaxWait, out MFFrame _ppFrame, string _bsHints )
Here is an example of how to get a frame from a file:
m_objPreview = new MFPreviewClass(); //Configure preview m_objPreview.PreviewWindowSet("", panelPreview.Handle.ToInt32()); m_objPreview.PreviewEnable("", 1, 1); m_objMFReader = new MFReaderClass(); m_objMFReader.ReaderOpen(sourceFileName, ""); MFFrame pFrame = null; // Get next frame if (m_objMFReader != null) m_objMFReader.SourceFrameGetByNumber(-1, -1, out pFrame, ""); m_objPreview.ReceiverFramePut(pFrame, -1, ""); // show the frame on preview