ImageFrameCollection<TPixel> Class
The typed, read-only, ordered list of the displayed frames of an Image<TPixel>. Never empty.
public sealed class ImageFrameCollection<TPixel> : ImageFrameCollection, IEnumerable<ImageFrame<TPixel>>, IReadOnlyCollection<ImageFrame<TPixel>>, IReadOnlyList<ImageFrame<TPixel>>, IEnumerable where TPixel : unmanagedType parameters
TPixel- The pixel type.
Remarks
The typed and untyped collections of an image expose the same frame objects.
- Inheritance
ImageFrameCollectionImageFrameCollection<TPixel>- Implements
Nested types
| Name | Description |
|---|---|
| ImageFrameCollection<TPixel>.Enumerator | Enumerates the frames of an ImageFrameCollection<TPixel>. |
Properties
| Name | Description |
|---|---|
| Count | Gets the number of displayed frames. Always at least 1. |
Gets the number of displayed frames. Always at least 1.
public override int Count { get; }Indexers
| Name | Description |
|---|---|
| this[int] | Gets the frame at the specified index. |
this[int]
ImageFrameCollection{TPixel}.csGets the frame at the specified index.
public override ImageFrame<TPixel> this[int index] { get; }Parameters
indexint- The index of the frame.
Property value
Exceptions
ArgumentOutOfRangeExceptionindexis out of range.ObjectDisposedException- The image is disposed.
Methods
| Name | Description |
|---|---|
| GetEnumerator() | Returns an enumerator over the typed frames. |
| System.Collections.Generic.IEnumerable<Meziantou.Framework.Imaging.ImageFrame<TPixel>>.GetEnumerator() | |
| System.Collections.IEnumerable.GetEnumerator() |
GetEnumerator()
ImageFrameCollection{TPixel}.csReturns an enumerator over the typed frames.
public new ImageFrameCollection<TPixel>.Enumerator GetEnumerator()Returns
ImageFrameCollection<TPixel>.Enumerator An enumerator that throws if the collection is structurally modified during enumeration.
System.Collections.Generic.IEnumerable<Meziantou.Framework.Imaging.ImageFrame<TPixel>>.GetEnumerator()
ImageFrameCollection{TPixel}.csIEnumerator<ImageFrame<TPixel>> IEnumerable<ImageFrame<TPixel>>.GetEnumerator()No documentation is available.