MediaComposition.GetThumbnailsAsync 方法

定义

异步获取媒体合成缩略图的矢量视图。

public:
 virtual IAsyncOperation<IVectorView<ImageStream ^> ^> ^ GetThumbnailsAsync(IIterable<TimeSpan> ^ timesFromStart, int scaledWidth, int scaledHeight, VideoFramePrecision framePrecision) = GetThumbnailsAsync;
IAsyncOperation<IVectorView<ImageStream>> GetThumbnailsAsync(IIterable<TimeSpan> const& timesFromStart, int const& scaledWidth, int const& scaledHeight, VideoFramePrecision const& framePrecision);
public IAsyncOperation<IReadOnlyList<ImageStream>> GetThumbnailsAsync(IEnumerable<System.TimeSpan> timesFromStart, int scaledWidth, int scaledHeight, VideoFramePrecision framePrecision);
function getThumbnailsAsync(timesFromStart, scaledWidth, scaledHeight, framePrecision)
Public Function GetThumbnailsAsync (timesFromStart As IEnumerable(Of TimeSpan), scaledWidth As Integer, scaledHeight As Integer, framePrecision As VideoFramePrecision) As IAsyncOperation(Of IReadOnlyList(Of ImageStream))

参数

timesFromStart

IIterable<TimeSpan>

IEnumerable<TimeSpan>

指定要从中呈现缩略图的 MediaComposition 时间线中的点,偏移量从 MediaComposition 的开头。

scaledWidth
Int32

int

指定要呈现的目标宽度。 默认值为 0。 scaledWidth 和/或 scaledHeight 可以是可选的;请参阅备注。

scaledHeight
Int32

int

指定要呈现的目标高度。 默认值为 0。 scaledWidth 和/或 scaledHeight 可以是可选的;请参阅备注。

framePrecision
VideoFramePrecision

指定检索缩略图时要使用的帧精度算法。

返回

生成的缩略图上的矢量视图。

注解

如果同时设置了 scaledWidthscaledHeight ,则会忽略原始 MediaComposition 的纵横比,并且值可能会更改纵横比。

如果指定 了 scaledWidthscaledHeight (但未同时指定两者),则会根据 对 MediaComposition) 的原始纵横比进行分解来计算, (控制该维度但纵横比的值将保留。

适用于