Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

MediaClip.CreateFromColor(Color, TimeSpan) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?