Share via


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 const& color, TimeSpan const& originalDuration);
public static MediaClip CreateFromColor(Color color, System.TimeSpan originalDuration);
function createFromColor(color, originalDuration)
Public Shared Function CreateFromColor (color As Color, originalDuration As TimeSpan) As MediaClip

Parameters

color
Color

The color to display in the video clip.

originalDuration
TimeSpan TimeSpan

How long to display the color in the video clip.

Returns

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

Remarks

Note that the created clip does not use the alpha component of the specified color.

Applies to