MFConvert Method (MFFrameClass)
required media properties
result frame (converted)
frame rest
additional parameters
ID of a converter
Converts the frame's format (include frame rate conversion) or just scale the video frame.
Syntax
Public Overridable Sub MFConvert( _
   ByRef _pPropsDest As M_AV_PROPS, _
   ByRef _ppFrameRes As MFFrame, _
   ByRef _pnFrameRest As Integer, _
   ByVal _bsPropsList As String, _
   ByVal _bsConverterID As String _
) 
public virtual void MFConvert( 
   ref M_AV_PROPS _pPropsDest,
   out MFFrame _ppFrameRes,
   out int _pnFrameRest,
   string _bsPropsList,
   string _bsConverterID
)
public procedure MFConvert( 
   var  _pPropsDest: M_AV_PROPS;
   Out  _ppFrameRes: MFFrame;
   Out  _pnFrameRest: Integer;
    _bsPropsList: String;
    _bsConverterID: String
); virtual; 
public: virtual void MFConvert( 
   ref M_AV_PROPS _pPropsDest,
   [PARAMFLAG::Out] MFFrame* _ppFrameRes,
   [PARAMFLAG::Out] int _pnFrameRest,
   BSTR* _bsPropsList,
   BSTR* _bsConverterID
) 

Parameters

_pPropsDest
required media properties
_ppFrameRes
result frame (converted)
_pnFrameRest
frame rest
_bsPropsList
additional parameters
_bsConverterID
ID of a converter
Example

Here is example of how to convert a frame:

MFFrame pFrame;
m_objLive.SourceFrameConvertedGet(ref m_avProps, -1, out pFrame, "");
M_AV_PROPS props = new M_AV_PROPS();
props.vidProps.eInterlace = eMInterlace.eMI_Field1First; // you can set any fields that you need
MFFrame convertedFrame;
int rest;
pFrame.MFConvert(ref props, out convertedFrame, out rest, "", "");
See Also

Reference

MFFrameClass Class
MFFrameClass Members