Class MediaInfoReaderX
Crossplatform media info reader.
Inherited Members
Namespace: VisioForge.Core.MediaInfoReaderX
Assembly: VisioForge.Core.dll
Syntax
public class MediaInfoReaderX
Constructors
MediaInfoReaderX(ContextX)
Initializes a new instance of the MediaInfoReaderX class.
Declaration
public MediaInfoReaderX(ContextX context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ContextX | context | The context. |
MediaInfoReaderX(MediaPlayerCoreX)
Initializes a new instance of the MediaInfoReaderX class.
Declaration
public MediaInfoReaderX(MediaPlayerCoreX player)
Parameters
| Type | Name | Description |
|---|---|---|
| MediaPlayerCoreX | player | The player. |
Properties
Info
Gets the information.
Declaration
public MediaFileInfo Info { get; }
Property Value
| Type | Description |
|---|---|
| MediaFileInfo | The information. |
Methods
GetFileSnapshotBitmap(Stream, TimeSpan?, ContextX)
Gets the file snapshot as System.Drawing.Bitmap.
Declaration
public static Bitmap GetFileSnapshotBitmap(Stream stream, TimeSpan? position = null, ContextX context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream. |
| TimeSpan? | position | The position. |
| ContextX | context | The context. |
Returns
| Type | Description |
|---|---|
| Bitmap | System.Drawing.Bitmap. |
GetFileSnapshotBitmap(string, TimeSpan?, ContextX)
Gets the file snapshot as System.Drawing.Bitmap.
Declaration
public static Bitmap GetFileSnapshotBitmap(string filename, TimeSpan? position = null, ContextX context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The filename. |
| TimeSpan? | position | The position. |
| ContextX | context | The context. |
Returns
| Type | Description |
|---|---|
| Bitmap | System.Drawing.Bitmap. |
GetFileSnapshotRGB(Stream, TimeSpan?, ContextX)
Gets the file snapshot as RGB array.
Declaration
public static Tuple<byte[], int, int> GetFileSnapshotRGB(Stream stream, TimeSpan? position = null, ContextX context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream. |
| TimeSpan? | position | The position. |
| ContextX | context | The context. |
Returns
| Type | Description |
|---|---|
| Tuple<byte[], int, int> | Tuple<System.Byte[], System.Int32, System.Int32>. |
GetFileSnapshotRGB(string, TimeSpan?, ContextX)
Gets the file snapshot as RGB array.
Declaration
public static Tuple<byte[], int, int> GetFileSnapshotRGB(string filename, TimeSpan? position = null, ContextX context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The filename. |
| TimeSpan? | position | The position. |
| ContextX | context | The context. |
Returns
| Type | Description |
|---|---|
| Tuple<byte[], int, int> | Tuple<System.Byte[], System.Int32, System.Int32>. |
GetFileSnapshotSKBitmap(Stream, TimeSpan?, ContextX)
Gets the file snapshot as a SKBitmap.
Declaration
public static SKBitmap GetFileSnapshotSKBitmap(Stream stream, TimeSpan? position = null, ContextX context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream. |
| TimeSpan? | position | The position. |
| ContextX | context | The context. |
Returns
| Type | Description |
|---|---|
| SKBitmap | SKBitmap. |
GetFileSnapshotSKBitmap(string, TimeSpan?, ContextX)
Gets the file snapshot as a SKBitmap.
Declaration
public static SKBitmap GetFileSnapshotSKBitmap(string filename, TimeSpan? position = null, ContextX context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The filename. |
| TimeSpan? | position | The position. |
| ContextX | context | The context. |
Returns
| Type | Description |
|---|---|
| SKBitmap | SKBitmap. |
Open(string)
Opens the specified URI.
Declaration
public bool Open(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The filename. |
Returns
| Type | Description |
|---|---|
| bool |
|
OpenAsync(string)
Opens the specified URI (async).
Declaration
public Task<bool> OpenAsync(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The filename. |
Returns
| Type | Description |
|---|---|
| Task<bool> | Task<System.Boolean>. |
OpenAsync(Uri)
Opens the specified URI (async).
Declaration
public Task<bool> OpenAsync(Uri uri)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | uri | The URI. |
Returns
| Type | Description |
|---|---|
| Task<bool> | Task<System.Boolean>. |