Table of Contents

Class ImageFrameCollectionExtensions

Namespace
SixLabors.ImageSharp
Assembly
SixLabors.ImageSharp.dll

Extension methods for ImageFrameCollection<TPixel>.

public static class ImageFrameCollectionExtensions
Inheritance
ImageFrameCollectionExtensions
Inherited Members

Methods

AsEnumerable<TPixel>(ImageFrameCollection<TPixel>)

Returns the input typed as IEnumerable<T>.

public static IEnumerable<ImageFrame<TPixel>> AsEnumerable<TPixel>(this ImageFrameCollection<TPixel> source) where TPixel : unmanaged, IPixel<TPixel>

Parameters

source ImageFrameCollection<TPixel>

The sequence to type as IEnumerable<T>.

Returns

IEnumerable<ImageFrame<TPixel>>

The input sequence typed as IEnumerable<T>.

Type Parameters

TPixel

Select<TPixel, TResult>(ImageFrameCollection<TPixel>, Func<ImageFrame<TPixel>, TResult>)

Projects each element of a sequence into a new form by incorporating the element's index.

public static IEnumerable<TResult> Select<TPixel, TResult>(this ImageFrameCollection<TPixel> source, Func<ImageFrame<TPixel>, TResult> selector) where TPixel : unmanaged, IPixel<TPixel>

Parameters

source ImageFrameCollection<TPixel>

A sequence of values to invoke a transform function on.

selector Func<ImageFrame<TPixel>, TResult>

A transform function to apply to each source element; the second parameter of the function represents the index of the source element.

Returns

IEnumerable<TResult>

An IEnumerable<T> whose elements are the result of invoking the transform function on each element of source.

Type Parameters

TPixel
TResult

The type of the value returned by selector.

Exceptions

ArgumentNullException

source or selector is null.