Class CodecInfo
Describes an image codec.
Inheritance
System.Object
CodecInfo
Assembly: PhotoSauce.MagicScaler.dll
Syntax
public abstract class CodecInfo : Object, IImageCodecInfo
Constructors
CodecInfo(CodecInfo)
Declaration
protected CodecInfo(CodecInfo original)
Parameters
CodecInfo(String, IEnumerable<String>, IEnumerable<String>)
The friendly name of the codec.
Declaration
protected CodecInfo(string Name, IEnumerable<string> MimeTypes, IEnumerable<string> FileExtensions)
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.
|
Properties
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type |
Description |
System.Type |
|
FileExtensions
A list of file extensions supported by the codec.
Declaration
public IEnumerable<string> FileExtensions { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
MimeTypes
Declaration
public IEnumerable<string> MimeTypes { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Name
The friendly name of the codec.
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
<Clone>$()
Declaration
public abstract CodecInfo <Clone>$()
Returns
Deconstruct(out String, out IEnumerable<String>, out IEnumerable<String>)
Declaration
public void Deconstruct(out string Name, out IEnumerable<string> MimeTypes, out IEnumerable<string> FileExtensions)
Parameters
Type |
Name |
Description |
System.String |
Name |
|
System.Collections.Generic.IEnumerable<System.String> |
MimeTypes |
|
System.Collections.Generic.IEnumerable<System.String> |
FileExtensions |
|
Equals(CodecInfo)
Declaration
public virtual bool Equals(CodecInfo 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 |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
builder |
|
Returns
Type |
Description |
System.Boolean |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Operators
Equality(CodecInfo, CodecInfo)
Declaration
public static bool operator ==(CodecInfo left, CodecInfo right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(CodecInfo, CodecInfo)
Declaration
public static bool operator !=(CodecInfo left, CodecInfo right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<>