ImageTrack Class

A track of the image of an ImageDecoder (https://w3c.github.io/webcodecs/#imagetrack): a still image or an animation.

public sealed class ImageTrack

Properties

NameDescription
AnimatedGets whether the track is an animation of several frames.
FrameCountGets the number of frames of the track found so far (it increases while the data of a stream arrives).
RepetitionCountGets the number of times the animation is repeated after it is played once (Single.PositiveInfinity: forever).
SelectedGets or sets whether the track is the one that is decoded (https://w3c.github.io/webcodecs/#dom-imagetrack-selected).

Gets whether the track is an animation of several frames.

public bool Animated { get; }

FrameCount

ImageTrack.cs

Gets the number of frames of the track found so far (it increases while the data of a stream arrives).

public uint FrameCount { get; }

RepetitionCount

ImageTrack.cs

Gets the number of times the animation is repeated after it is played once (Single.PositiveInfinity: forever).

public float RepetitionCount { get; }

Gets or sets whether the track is the one that is decoded (https://w3c.github.io/webcodecs/#dom-imagetrack-selected).

public bool Selected { get; set; }