Class CodecCollection
Represents the set of configured codecs for the processing pipeline.
Inheritance
Implements
Namespace: PhotoSauce.MagicScaler
Assembly: PhotoSauce.MagicScaler.dll
Syntax
public sealed class CodecCollection : Object
Remarks
Instances should not be retained or used outside of Configure(Action<CodecCollection>).
Constructors
CodecCollection()
Declaration
public CodecCollection()
Properties
Count
Gets the number of elements contained in the System.Collections.Generic.ICollection<>.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of elements contained in the System.Collections.Generic.ICollection<>. |
Methods
Add(IImageCodecInfo)
Adds an item to the System.Collections.Generic.ICollection<>.
Declaration
public void Add(IImageCodecInfo item)
Parameters
Type | Name | Description |
---|---|---|
IImageCodecInfo | item | The object to add to the System.Collections.Generic.ICollection<>. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The System.Collections.Generic.ICollection<> is read-only. |
Clear()
Removes all items from the System.Collections.Generic.ICollection<>.
Declaration
public void Clear()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The System.Collections.Generic.ICollection<> is read-only. |
Contains(IImageCodecInfo)
Determines whether the System.Collections.Generic.ICollection<> contains a specific value.
Declaration
public bool Contains(IImageCodecInfo item)
Parameters
Type | Name | Description |
---|---|---|
IImageCodecInfo | item | The object to locate in the System.Collections.Generic.ICollection<>. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<IImageCodecInfo> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<IImageCodecInfo> | An enumerator that can be used to iterate through the collection. |
Remove(IImageCodecInfo)
Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection<>.
Declaration
public bool Remove(IImageCodecInfo item)
Parameters
Type | Name | Description |
---|---|---|
IImageCodecInfo | item | The object to remove from the System.Collections.Generic.ICollection<>. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The System.Collections.Generic.ICollection<> is read-only. |