Search Results for

    Show / Hide Table of Contents

    Class CodecCollection

    Represents the set of configured codecs for the processing pipeline.

    Inheritance
    System.Object
    CodecCollection
    Implements
    System.Collections.Generic.ICollection<IImageCodecInfo>
    System.Collections.Generic.IEnumerable<IImageCodecInfo>
    System.Collections.IEnumerable
    System.Collections.Generic.IReadOnlyCollection<IImageCodecInfo>
    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 item is found in the System.Collections.Generic.ICollection<>; otherwise, false.

    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 item was successfully removed from the System.Collections.Generic.ICollection<>; otherwise, false. This method also returns false if item is not found in the original System.Collections.Generic.ICollection<>.

    Exceptions
    Type Condition
    System.NotSupportedException

    The System.Collections.Generic.ICollection<> is read-only.

    Implements

    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    System.Collections.Generic.IReadOnlyCollection<>

    Extension Methods

    WindowsCodecExtensions.UseWicCodecs(CodecCollection, WicCodecPolicy)
    In This Article
    Back to top Copyright © 2022 Clinton Ingram
    Generated with DocFX