ImageCue Class

Definition

Represents a image cue that can be included in a TimedMetadataTrack.

public ref class ImageCue sealed
/// [Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ImageCue final
[Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ImageCue
function ImageCue()
Public NotInheritable Class ImageCue
Inheritance
Object Platform::Object IInspectable ImageCue
Attributes
Implements

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

An ImageCue can be added to a TimedMetadataTrack with the AddCue method. When the cue's start time is reached, the CueEntered event is raised and you can use the MediaCueEventArgs passed into the handler to get a copy of the ImageCue.

Constructors

ImageCue()

Initializes a new instance of the ImageCue class.

Properties

Duration

Gets or sets the duration of the cue.

Extent

Gets or sets the extent of the ImageCue, which is the rendered size of the assoociated image either in pixels or in percentage of available space.

Id

Gets the identifier for the timed metadata track.

Position

Gets or sets the position of the image associated with the ImageCue, relative to the top left corner of the video frame.

SoftwareBitmap

Gets or sets the image associated with the image cue.

StartTime

Gets the start time of the cue.

Applies to