MFResize Method (IMFFrame)
FCC for output frame
width
height
a number of field to be scaled (0 means both fields, 1 means the first field, 2 means the second one)
result frame
additional properties
converter's ID
Resizes the frame (just scale video frame).
Syntax

Parameters

_fccOutput
FCC for output frame
_nWidth
width
_nHeight
height
_nResizeField
a number of field to be scaled (0 means both fields, 1 means the first field, 2 means the second one)
_ppFrameRes
result frame
_bsPropsList
additional properties
_bsConverterID
converter's ID
Example

Here is an example of how to get a frame from a source, resize it and save it into a file:

m_objPreview = new MFPreviewClass();
//Configure preview
m_objPreview.PreviewWindowSet("", panelPreview.Handle.ToInt32());
m_objPreview.PreviewEnable("", 1, 1);
m_objMFReader = new MFReaderClass();
m_objMFReader.ReaderOpen(sourceFileName, "");
m_avProps = new M_AV_PROPS(); // set video format for conversion
m_avProps.vidProps.eVideoFormat = eMVideoFormat.eMVF_HD1080_5994i;
MFFrame pFrame = null;
// Get next frame
if (m_objMFReader != null)
    m_objMFReader.SourceFrameConvertedGetByTime(ref m_avProps, -1, -1, out pFrame, "");
m_objPreview.ReceiverFramePut(pFrame, -1, ""); // show the frame on preview
MFFrame resizedFrame;
pFrame.MFResize(eMFCC.eMFCC_Default, 1000, 700, 0, out resizedFrame, "", "");
resizedFrame.MFVideoSaveToFile(@"c:\resizedTest.png");
See Also

Reference

IMFFrame Interface
IMFFrame Members