MFORMATSLib Namespace > IMFFrame Interface : MFSave Method |
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 )
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);