-api-id | -api-type |
---|---|
M:Windows.Media.Editing.MediaComposition.GetThumbnailsAsync(Windows.Foundation.Collections.IIterable{Windows.Foundation.TimeSpan},System.Int32,System.Int32,Windows.Media.Editing.VideoFramePrecision) |
winrt method |
Asynchronously gets a vector view of thumbnails of the media composition.
Specifies the points in the timeline of the MediaComposition from which to render the thumbnails, offset from the start of the MediaComposition.
Specifies the target width at which to render. The default is 0. scaledWidth and/or scaledHeight can be optional; see Remarks.
Specifies the target height at which to render. The default is 0. scaledWidth and/or scaledHeight can be optional; see Remarks.
Specifies the frame precision algorithm to use when retrieving the thumbnails.
A vector view on the resulting thumbnails.
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).