ImageTrackList Class
The tracks of the image of an ImageDecoder (https://w3c.github.io/webcodecs/#imagetracklist), and the selected one.
public sealed class ImageTrackListProperties
| Name | Description |
|---|---|
| Length | Gets the number of tracks. |
| Ready | Gets a task that completes when the tracks are known, or fails when the decoder is closed before (https://w3c.github.io/webcodecs/#dom-imagetracklist-ready). |
| SelectedIndex | Gets the index of the selected track, or -1 when no track is selected. |
| SelectedTrack | Gets the selected track, or null when no track is selected. |
Length
ImageTrack.csGets the number of tracks.
public uint Length { get; }Ready
ImageTrack.csGets a task that completes when the tracks are known, or fails when the decoder is closed before (https://w3c.github.io/webcodecs/#dom-imagetracklist-ready).
public Task Ready { get; }SelectedIndex
ImageTrack.csGets the index of the selected track, or -1 when no track is selected.
public int SelectedIndex { get; }SelectedTrack
ImageTrack.csGets the selected track, or null when no track is selected.
public ImageTrack? SelectedTrack { get; }Indexers
| Name | Description |
|---|---|
| this[uint] | Gets the track at an index, or null when the index is out of range. |
this[uint]
ImageTrack.csGets the track at an index, or null when the index is out of range.
public ImageTrack? this[uint index] { get; }