MediaOverlay Class

Definition

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

public ref class MediaOverlay sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Editing.IMediaOverlayFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.GCPressure]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaOverlay final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.GCPressure]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Editing.IMediaOverlayFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class MediaOverlay final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Editing.IMediaOverlayFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.GCPressure]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaOverlay
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.GCPressure]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Editing.IMediaOverlayFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class MediaOverlay
function MediaOverlay(clip, position, opacity)
Public NotInheritable Class MediaOverlay
Inheritance
Object Platform::Object IInspectable MediaOverlay
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

MediaOverlay(MediaClip)

Initializes a new instance of the MediaOverlay class.

MediaOverlay(MediaClip, Rect, Double)

Initializes a new instance of the MediaOverlay class.

Properties

AudioEnabled

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

Clip

Gets the media clip to be used for the overlay.

Delay

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

Opacity

Gets the opacity of the overlay.

Position

Gets the position of the overlay.

Methods

Clone()

Creates a MediaOverlay object that is identical to this instance.

Applies to