MediaFormat.Resample method (PowerPoint)

Adds the current media object to the queue and begins resampling, based on the specified parameters.

Syntax

expression. Resample( _Trim_, _SampleHeight_, _SampleWidth_, _VideoFrameRate_, _AudioSamplingRate_, _VideoBitRate_ )

expression An expression that returns a MediaFormat object.

Parameters

Name Required/Optional Data type Description
Trim Optional Boolean Whether to trim the sample.
SampleHeight Optional Integer The sample resolution height.
SampleWidth Optional Integer The sample resolution width.
VideoFrameRate Optional Long The video frame rate, in frames per second.
AudioSamplingRate Optional Long The audio sampling rate, in bits per second.
VideoBitRate Optional Long The video bit rate, in bits per second.

Return value

Nothing

Remarks

Resample ignores the values of parameters that are not applicable to the media.

If the media content is not fully downloaded, this method fails and an error occurs. For more information about the Partial Documents, see Work with Partial Documents.

See also

MediaFormat Object

Work with Partial Documents

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.