Class ImageFrameCollectionExtensions
Extension methods for ImageFrameCollection<TPixel>.
Inherited Members
Namespace: SixLabors.ImageSharp
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class ImageFrameCollectionExtensions
Methods
| Edit this page View SourceAsEnumerable<TPixel>(ImageFrameCollection<TPixel>)
Returns the input typed as IEnumerable<T>.
Declaration
public static IEnumerable<ImageFrame<TPixel>> AsEnumerable<TPixel>(this ImageFrameCollection<TPixel> source) where TPixel : unmanaged, IPixel<TPixel>
Parameters
| Type | Name | Description |
|---|---|---|
| ImageFrameCollection<TPixel> | source | The sequence to type as IEnumerable<T>. |
Returns
| Type | Description |
|---|---|
| IEnumerable<ImageFrame<TPixel>> | The input sequence typed as IEnumerable<T>. |
Type Parameters
| Name | Description |
|---|---|
| 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.
Declaration
public static IEnumerable<TResult> Select<TPixel, TResult>(this ImageFrameCollection<TPixel> source, Func<ImageFrame<TPixel>, TResult> selector) where TPixel : unmanaged, IPixel<TPixel>
Parameters
| Type | Name | Description |
|---|---|---|
| ImageFrameCollection<TPixel> | source | A sequence of values to invoke a transform function on. |
| Func<ImageFrame<TPixel>, TResult> | selector | A transform function to apply to each source element; the second parameter of the function represents the index of the source element. |
Returns
| Type | Description |
|---|---|
| IEnumerable<TResult> | An IEnumerable<T> whose elements are the result of invoking the transform function on each element of |
Type Parameters
| Name | Description |
|---|---|
| TPixel | |
| TResult | The type of the value returned by |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|