Class DecoderInfo
Describes an image codec.
Inheritance
System.Object
DecoderInfo
Assembly: PhotoSauce.MagicScaler.dll
Syntax
public sealed class DecoderInfo : CodecInfo, IImageDecoderInfo, IImageCodecInfo
Constructors
DecoderInfo(String, IEnumerable<String>, IEnumerable<String>, IEnumerable<ContainerPattern>, IDecoderOptions, Func<Stream, IDecoderOptions, IImageContainer>)
The friendly name of the codec.
Declaration
public DecoderInfo(string Name, IEnumerable<string> MimeTypes, IEnumerable<string> FileExtensions, IEnumerable<ContainerPattern> Patterns, IDecoderOptions DefaultOptions, Func<Stream, IDecoderOptions, IImageContainer> Factory)
Parameters
Type |
Name |
Description |
System.String |
Name |
The friendly name of the codec.
|
System.Collections.Generic.IEnumerable<System.String> |
MimeTypes |
A list of MIME types supported by the codec.
|
System.Collections.Generic.IEnumerable<System.String> |
FileExtensions |
A list of file extensions supported by the codec.
|
System.Collections.Generic.IEnumerable<ContainerPattern> |
Patterns |
A list of "magic byte" patterns that may match files this decoder can read.
|
IDecoderOptions |
DefaultOptions |
Default codec options to be used for this decoder in the absence of per-instance overrides.
|
System.Func<System.IO.Stream, IDecoderOptions, IImageContainer> |
Factory |
A delegate capable of creating an instance of this decoder over a given System.IO.Stream data source.
|
Properties
DefaultOptions
Default codec options to be used for this decoder in the absence of per-instance overrides.
Declaration
public IDecoderOptions DefaultOptions { get; set; }
Property Value
EqualityContract
Declaration
protected override Type EqualityContract { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
Factory
A delegate capable of creating an instance of this decoder over a given System.IO.Stream data source.
Declaration
public Func<Stream, IDecoderOptions, IImageContainer> Factory { get; set; }
Property Value
Patterns
A list of "magic byte" patterns that may match files this decoder can read.
Declaration
public IEnumerable<ContainerPattern> Patterns { get; set; }
Property Value
Methods
<Clone>$()
Declaration
public override CodecInfo <Clone>$()
Returns
Overrides
Deconstruct(out String, out IEnumerable<String>, out IEnumerable<String>, out IEnumerable<ContainerPattern>, out IDecoderOptions, out Func<Stream, IDecoderOptions, IImageContainer>)
Declaration
public void Deconstruct(out string Name, out IEnumerable<string> MimeTypes, out IEnumerable<string> FileExtensions, out IEnumerable<ContainerPattern> Patterns, out IDecoderOptions DefaultOptions, out Func<Stream, IDecoderOptions, IImageContainer> Factory)
Parameters
Type |
Name |
Description |
System.String |
Name |
|
System.Collections.Generic.IEnumerable<System.String> |
MimeTypes |
|
System.Collections.Generic.IEnumerable<System.String> |
FileExtensions |
|
System.Collections.Generic.IEnumerable<ContainerPattern> |
Patterns |
|
IDecoderOptions |
DefaultOptions |
|
System.Func<System.IO.Stream, IDecoderOptions, IImageContainer> |
Factory |
|
Equals(CodecInfo)
Declaration
public sealed override bool Equals(CodecInfo other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Equals(DecoderInfo)
Declaration
public bool Equals(DecoderInfo other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
PrintMembers(StringBuilder)
Declaration
protected override bool PrintMembers(StringBuilder builder)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
builder |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
Operators
Equality(DecoderInfo, DecoderInfo)
Declaration
public static bool operator ==(DecoderInfo left, DecoderInfo right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(DecoderInfo, DecoderInfo)
Declaration
public static bool operator !=(DecoderInfo left, DecoderInfo right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<>
System.IEquatable<>