MFORMATSLib Namespace > IMFFrame Interface : MFTransition Method |
Sub MFTransition( _ ByVal _pFrameFrom As Object, _ ByRef _ppFrameRes As MFFrame, _ ByVal _dblPos As Double, _ ByVal _bsTransition As String, _ ByVal _bsPropsList As String, _ ByVal _bsConverterID As String _ )
void MFTransition( object _pFrameFrom, out MFFrame _ppFrameRes, double _dblPos, string _bsTransition, string _bsPropsList, string _bsConverterID )
procedure MFTransition( _pFrameFrom: TObject; Out _ppFrameRes: MFFrame; _dblPos: Double; _bsTransition: String; _bsPropsList: String; _bsConverterID: String );
void MFTransition( IUnknown* _pFrameFrom, [PARAMFLAG::Out] MFFrame* _ppFrameRes, double _dblPos, BSTR* _bsTransition, BSTR* _bsPropsList, BSTR* _bsConverterID )
Here is a example of how to use a transition from File transition sample:
/// <summary> /// Make a transition between frames /// </summary> /// <param name="pFrameTo">frame to which transition is implemented</param> /// <param name="pFrameFrom">frame from which transition is implemented</param> /// <param name="_dblPos">transition's position</param> /// <param name="_strConverterID">converter's ID</param> private void FrameTransition(ref MFFrame pFrameTo, MFFrame pFrameFrom, double _dblPos, string _strConverterID) { MFFrame pFrameRes = null; pFrameTo.MFTransition(pFrameFrom, out pFrameRes, _dblPos, "fade", "", _strConverterID); if (pFrameRes != null) { Marshal.ReleaseComObject(pFrameTo); pFrameTo = pFrameRes; } }