MediaClip.CreateFromImageFileAsync(IStorageFile, TimeSpan) MediaClip.CreateFromImageFileAsync(IStorageFile, TimeSpan) MediaClip.CreateFromImageFileAsync(IStorageFile, TimeSpan) MediaClip.CreateFromImageFileAsync(IStorageFile, TimeSpan) 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)
static IAsyncOperation<MediaClip> CreateFromImageFileAsync(IStorageFile file, TimeSpan originalDuration) const;
public static IAsyncOperation<MediaClip> CreateFromImageFileAsync(IStorageFile file, TimeSpan originalDuration)
Public Shared Function CreateFromImageFileAsync(file As IStorageFile, originalDuration As TimeSpan) As IAsyncOperation(Of MediaClip)
Windows.Media.Editing.MediaClip.createFromImageFileAsync(file, originalDuration).done( /* Your success and error handlers */ );

Parameters

file
IStorageFile IStorageFile IStorageFile

A StorageFile object representing the source image file.

originalDuration
TimeSpan TimeSpan TimeSpan

How long to display the image in the video clip.

Returns

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