Share via


MediaComposition.GetThumbnailAsync メソッド

定義

メディアコンポジションのサムネイルを表すイメージ ストリームを非同期的に取得します。

public:
 virtual IAsyncOperation<ImageStream ^> ^ GetThumbnailAsync(TimeSpan timeFromStart, int scaledWidth, int scaledHeight, VideoFramePrecision framePrecision) = GetThumbnailAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ImageStream> GetThumbnailAsync(TimeSpan const& timeFromStart, int const& scaledWidth, int const& scaledHeight, VideoFramePrecision const& framePrecision);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ImageStream> GetThumbnailAsync(System.TimeSpan timeFromStart, int scaledWidth, int scaledHeight, VideoFramePrecision framePrecision);
function getThumbnailAsync(timeFromStart, scaledWidth, scaledHeight, framePrecision)
Public Function GetThumbnailAsync (timeFromStart As TimeSpan, scaledWidth As Integer, scaledHeight As Integer, framePrecision As VideoFramePrecision) As IAsyncOperation(Of ImageStream)

パラメーター

timeFromStart
TimeSpan TimeSpan

MediaComposition の先頭からオフセットされたサムネイルをレンダリングする MediaComposition のタイムライン内のポイントを指定します。

scaledWidth
Int32

int

レンダリングするターゲットの幅を指定します。 既定値は 0 です。 scaledWidthscaledHeight は省略可能です。「解説」を参照してください。

scaledHeight
Int32

int

レンダリングするターゲットの高さを指定します。 既定値は 0 です。 scaledWidthscaledHeight は省略可能です。「解説」を参照してください。

framePrecision
VideoFramePrecision

サムネイルを取得するときに使用するフレーム精度アルゴリズムを指定します。

戻り値

結果のサムネイルを表す画像ストリーム。

属性

注釈

scaledWidthscaledHeight の両方が設定されている場合、元の MediaComposition の縦横比は無視され、値によって縦横比が変更される可能性があります。

scaledWidth または scaledHeight の両方が指定されていない場合、指定した値はその寸法を制御しますが、縦横比は維持されます (もう一方のディメンションは、MediaComposition の元の縦横比を考慮して計算されます)。

適用対象