MPLATFORMLib Namespace > MFactoryClass Class : MFFrameCreateFromFile Method |
Public Overridable Sub MFFrameCreateFromFile( _ ByVal _bsFileName As String, _ ByRef _ppFrame As IMFFrame, _ ByVal _bsPropsList As String _ )
public virtual void MFFrameCreateFromFile( string _bsFileName, out IMFFrame _ppFrame, string _bsPropsList )
public procedure MFFrameCreateFromFile( _bsFileName: String; Out _ppFrame: IMFFrame; _bsPropsList: String ); virtual;
public: virtual void MFFrameCreateFromFile( BSTR* _bsFileName, [PARAMFLAG::Out] IMFFrame* _ppFrame, BSTR* _bsPropsList )
Here is an example of how to create a frame from file and sent it to a preview:
m_objPreview = new MFPreviewClass(); //Configure preview m_objPreview.PreviewWindowSet("", panelPreview.Handle.ToInt32()); m_objPreview.PreviewEnable("", 1, 1); MFFactoryClass factory = new MFFactoryClass(); MFFrame frame; factory.MFFrameCreateFromFile(pathToFile, out frame, ""); m_objPreview.ReceiverFramePut(frame, -1, "");