ReceiverFramePut Method (MFSinkClass)
frame that is used for output or for preview
maximal wait time in milliseconds. By default use "-1".
Puts frame to receiver object.
Syntax
Public Overridable Sub ReceiverFramePut( _
   ByVal _pFrame As MFFrame, _
   ByVal _rtMaxWait As Long, _
   ByVal _bsHints As String _
) 
public virtual void ReceiverFramePut( 
   MFFrame _pFrame,
   long _rtMaxWait,
   string _bsHints
)
public procedure ReceiverFramePut( 
    _pFrame: MFFrame;
    _rtMaxWait: Int64;
    _bsHints: String
); virtual; 
public: virtual void ReceiverFramePut( 
   MFFrame* _pFrame,
   long _rtMaxWait,
   BSTR* _bsHints
) 

Parameters

_pFrame
frame that is used for output or for preview
_rtMaxWait
maximal wait time in milliseconds. By default use "-1".
_bsHints
Example

Here is an example of how to send a frame to a preview:

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, "");
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, "");
m_objPreview.ReceiverFramePut(pFrame, -1, ""); // show the frame on preview
See Also

Reference

MFSinkClass Class
MFSinkClass Members