MediaClip.CreateFromColor(Color, TimeSpan) MediaClip.CreateFromColor(Color, TimeSpan) MediaClip.CreateFromColor(Color, TimeSpan) MediaClip.CreateFromColor(Color, TimeSpan) MediaClip.CreateFromColor(Color, TimeSpan) Method

Definition

Creates a solid color video clip that displays a single color for a specified length of time. Solid color video clips are typically used to create an explicit gap between video segments.

public : static MediaClip CreateFromColor(Color color, TimeSpan originalDuration)
static MediaClip CreateFromColor(Color color, TimeSpan originalDuration) const;
public static MediaClip CreateFromColor(Color color, TimeSpan originalDuration)
Public Shared Function CreateFromColor(color As Color, originalDuration As TimeSpan) As MediaClip
var mediaClip = Windows.Media.Editing.MediaClip.createFromColor(color, originalDuration);

Parameters

color
Color Color Color

The color to display in the video clip.

originalDuration
TimeSpan TimeSpan TimeSpan

How long to display the color in the video clip.

Returns

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