Compartilhar via


MediaFormat.Resample Method

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

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Sub Resample ( _
    Trim As Boolean, _
    SampleHeight As Integer, _
    SampleWidth As Integer, _
    VideoFrameRate As Integer, _
    AudioSamplingRate As Integer, _
    VideoBitRate As Integer _
)
'Usage
Dim instance As MediaFormat
Dim Trim As Boolean
Dim SampleHeight As Integer
Dim SampleWidth As Integer
Dim VideoFrameRate As Integer
Dim AudioSamplingRate As Integer
Dim VideoBitRate As Integer

instance.Resample(Trim, SampleHeight, _
    SampleWidth, VideoFrameRate, AudioSamplingRate, _
    VideoBitRate)
void Resample(
    bool Trim,
    int SampleHeight,
    int SampleWidth,
    int VideoFrameRate,
    int AudioSamplingRate,
    int VideoBitRate
)

Parameters

  • SampleHeight
    Type: System.Int32
    The sample resolution height.
  • SampleWidth
    Type: System.Int32
    The sample resolution width.
  • VideoFrameRate
    Type: System.Int32
    The video frame rate, in frames per second.
  • AudioSamplingRate
    Type: System.Int32
    The audio sampling rate, in bits per second.
  • VideoBitRate
    Type: System.Int32
    The video bit rate, in bits per second.

Remarks

Resample(Boolean, Int32, Int32, Int32, Int32, Int32) ignores the values of parameters that are not applicable to the media.

See Also

Reference

MediaFormat Interface

MediaFormat Members

Microsoft.Office.Interop.PowerPoint Namespace