MediaOverlay MediaOverlay MediaOverlay MediaOverlay Class

Definition

Represents an overlay that can be used in a media composition.

public : sealed class MediaOverlay : IMediaOverlaypublic sealed class MediaOverlay : IMediaOverlayPublic NotInheritable Class MediaOverlay Implements IMediaOverlay// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

MediaOverlay(MediaClip) MediaOverlay(MediaClip) MediaOverlay(MediaClip) MediaOverlay(MediaClip)

Initializes a new instance of the MediaOverlay class.

public : MediaOverlay(MediaClip clip)public MediaOverlay(MediaClip clip)Public Sub New(clip As MediaClip)// You can use this method in JavaScript.
Parameters
clip
MediaClip MediaClip MediaClip MediaClip

The media clip to be used for the overlay.

See Also

MediaOverlay(MediaClip, Rect, Double) MediaOverlay(MediaClip, Rect, Double) MediaOverlay(MediaClip, Rect, Double) MediaOverlay(MediaClip, Rect, Double)

Initializes a new instance of the MediaOverlay class.

public : MediaOverlay(MediaClip clip, Rect position, double opacity)public MediaOverlay(MediaClip clip, Rect position, Double opacity)Public Sub New(clip As MediaClip, position As Rect, opacity As Double)// You can use this method in JavaScript.
Parameters
clip
MediaClip MediaClip MediaClip MediaClip

The media clip to be used for the overlay.

position
Rect Rect Rect Rect

The position of the overlay.

opacity
double Double Double Double

The opacity of the overlay, in the range of 0.0 to 1.0, where 0.0 is completely transparent and 1.0 is completely opaque.

See Also

Properties

AudioEnabled AudioEnabled AudioEnabled AudioEnabled

Gets or sets a value indicating whether audio is enabled for the MediaOverlay.

public : PlatForm::Boolean AudioEnabled { get; set; }public bool AudioEnabled { get; set; }Public ReadWrite Property AudioEnabled As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if audio is enabled; otherwise, false.

Clip Clip Clip Clip

Gets the media clip to be used for the overlay.

public : MediaClip Clip { get; }public MediaClip Clip { get; }Public ReadOnly Property Clip As MediaClip// You can use this property in JavaScript.
Value
MediaClip MediaClip MediaClip MediaClip

The media clip to be used for the overlay.

Delay Delay Delay Delay

Gets or sets the time span from the start of the clip after which the media overlay should be rendered.

public : TimeSpan Delay { get; set; }public TimeSpan Delay { get; set; }Public ReadWrite Property Delay As TimeSpan// You can use this property in JavaScript.
Value
TimeSpan TimeSpan TimeSpan TimeSpan

The time span from the start of the clip after which the media overlay should be rendered.

Opacity Opacity Opacity Opacity

Gets the opacity of the overlay.

public : double Opacity { get; set; }public double Opacity { get; set; }Public ReadWrite Property Opacity As double// You can use this property in JavaScript.
Value
double double double double

The opacity of the overlay, in the range of 0.0 to 1.0, where 0.0 is completely transparent and 1.0 is completely opaque.

Position Position Position Position

Gets the position of the overlay.

public : Rect Position { get; set; }public Rect Position { get; set; }Public ReadWrite Property Position As Rect// You can use this property in JavaScript.
Value
Rect Rect Rect Rect

The position of the overlay.

Methods

Clone() Clone() Clone() Clone()

Creates a MediaOverlay object that is identical to this instance.

public : MediaOverlay Clone()public MediaOverlay Clone()Public Function Clone() As MediaOverlay// You can use this method in JavaScript.
Returns

A MediaOverlay object that is a copy of this instance.