Interface IPixelSamplingStrategy
Provides an abstraction to enumerate pixel regions within a multi-framed Image<TPixel>.
Namespace: SixLabors.ImageSharp.Processing.Processors.Quantization
Assembly: SixLabors.ImageSharp.dll
Syntax
public interface IPixelSamplingStrategy
Methods
| Improve this Doc View SourceEnumeratePixelRegions<TPixel>(Image<TPixel>)
Enumerates pixel regions within the image as Buffer2DRegion<T>.
Declaration
IEnumerable<Buffer2DRegion<TPixel>> EnumeratePixelRegions<TPixel>(Image<TPixel> image)
where TPixel : struct, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
Image<TPixel> | image | The image. |
Returns
Type | Description |
---|---|
IEnumerable<Buffer2DRegion<TPixel>> | An enumeration of pixel regions. |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel type. |