MFSave Method (IMFFrame)
size of a frame's data
pointer to frame's data
clone's type
Saves a full copy of all data (used internally for transfer data between process)
Syntax
Sub MFSave( _
   ByRef _pcbData As UInteger, _
   ByVal _ppData As IntPtr, _
   ByVal _eSaveType As eMFrameClone _
) 
void MFSave( 
   out uint _pcbData,
   out IntPtr _ppData,
   eMFrameClone _eSaveType
)
procedure MFSave( 
   Out  _pcbData: LongWord;
   Out  _ppData: IntPtr;
    _eSaveType: eMFrameClone
); 
void MFSave( 
   [PARAMFLAG::Out] uint _pcbData,
   [PARAMFLAG::Out] IntPtr _ppData,
   eMFrameClone _eSaveType
) 

Parameters

_pcbData
size of a frame's data
_ppData
pointer to frame's data
_eSaveType
clone's type
Example

Here is example of how to save a frame to use it in another process:

MFFrame pFrame = null;
try
{
    m_objLive.SourceFrameConvertedGet(ref m_avProps, -1, out pFrame, "");
}
catch
{
}
uint data;
int size;
long pointer;
pFrame.MFVideoGetBytes(out size, out pointer);
IntPtr dataPointer = (IntPtr) pointer;
pFrame.MFSave(out data, dataPointer, eMFrameClone.eMFC_Full);
See Also

Reference

IMFFrame Interface
IMFFrame Members