Class ImagePluginWrapper
Wraps an instance of IImage with the provided plugins.
Implements
Inherited Members
Namespace: StrixMusic.Sdk.PluginModels
Assembly: StrixMusic.Sdk.dll
Syntax
public class ImagePluginWrapper : IImage, IImageBase, ICollectionItemBase, IAppModel, IMerged<ICoreImage>, IEquatable<ICoreImage>, IMerged, IPluginWrapper
Properties
| Improve this Doc View SourceActivePlugins
All plugins that were imported and activated for this instance.
Declaration
public SdkModelPlugin ActivePlugins { get; }
Property Value
Type | Description |
---|---|
SdkModelPlugin |
Remarks
Once built, the returned instance will have plugins applied on top of the <xref href="StrixMusic.Sdk.AdapterModels.IMergedMutable%601" data-throw-if-not-resolved="false"></xref> instance.
If no plugins override functionality when accessing a member, the provided <xref href="StrixMusic.Sdk.AdapterModels.IMergedMutable%601" data-throw-if-not-resolved="false"></xref> will be used instead.
See SdkModelPlugin for more info.
See Also
| Improve this Doc View SourceHeight
The height of the image, if known. A hint to help render the image at the correct size.
Declaration
public double? Height { get; }
Property Value
Type | Description |
---|---|
double? |
MimeType
The mime type of the image, if known. A hint to help optimize image rendering.
Declaration
public string? MimeType { get; }
Property Value
Type | Description |
---|---|
string |
Sources
The sources that make up this merged item.
Declaration
public IReadOnlyList<ICoreImage> Sources { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<ICoreImage> |
Width
The width of the image, if known. A hint to help render the image at the correct size.
Declaration
public double? Width { get; }
Property Value
Type | Description |
---|---|
double? |
Methods
| Improve this Doc View SourceEquals(ICoreImage?)
Declaration
public bool Equals(ICoreImage? other)
Parameters
Type | Name | Description |
---|---|---|
ICoreImage | other |
Returns
Type | Description |
---|---|
bool |
OpenStreamAsync()
Opens a stream to the image resource.
Declaration
public Task<Stream> OpenStreamAsync()
Returns
Type | Description |
---|---|
Task<Stream> | A Task containing a Stream of the raw image resource. |
Events
| Improve this Doc View SourceSourcesChanged
Raised when any of the sources have changed.
Declaration
public event EventHandler? SourcesChanged
Event Type
Type | Description |
---|---|
EventHandler |