Share via


MediaClip.CreateFromImageFileAsync(IStorageFile, TimeSpan) Method

Definition

Creates a video clip that displays a single image for a specified length of time.

public:
 static IAsyncOperation<MediaClip ^> ^ CreateFromImageFileAsync(IStorageFile ^ file, TimeSpan originalDuration);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<MediaClip> CreateFromImageFileAsync(IStorageFile const& file, TimeSpan const& originalDuration);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<MediaClip> CreateFromImageFileAsync(IStorageFile file, System.TimeSpan originalDuration);
function createFromImageFileAsync(file, originalDuration)
Public Shared Function CreateFromImageFileAsync (file As IStorageFile, originalDuration As TimeSpan) As IAsyncOperation(Of MediaClip)

Parameters

file
IStorageFile

A StorageFile object representing the source image file.

originalDuration
TimeSpan TimeSpan

How long to display the image in the video clip.

Returns

A new media clip object containing the image-based video clip.

Attributes

Applies to