MediaComposition.GetThumbnailsAsync Method

Definition

Asynchronously gets a vector view of thumbnails of the media composition.

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))

Parameters

timesFromStart

IIterable<TimeSpan>

IEnumerable<TimeSpan>

Specifies the points in the timeline of the MediaComposition from which to render the thumbnails, offset from the start of the MediaComposition.

scaledWidth
Int32

int

Specifies the target width at which to render. The default is 0. scaledWidth and/or scaledHeight can be optional; see Remarks.

scaledHeight
Int32

int

Specifies the target height at which to render. The default is 0. scaledWidth and/or scaledHeight can be optional; see Remarks.

framePrecision
VideoFramePrecision

Specifies the frame precision algorithm to use when retrieving the thumbnails.

Returns

A vector view on the resulting thumbnails.

Remarks

If scaledWidth and scaledHeight are both set, the aspect ratio of the original MediaComposition is ignored, and your values can alter the aspect ratio.

If either scaledWidth or scaledHeight but not both is specified, the value you provide controls that dimension but the aspect ratio is preserved (the other dimension is calculated based on factoring the original aspect ratio of the MediaComposition).

Applies to