Class ExtensivePixelSamplingStrategy
A pixel sampling strategy that enumerates all pixels.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Quantization
Assembly: SixLabors.ImageSharp.dll
Syntax
public class ExtensivePixelSamplingStrategy : IPixelSamplingStrategy
Methods
| Improve this Doc View SourceEnumeratePixelRegions<TPixel>(Image<TPixel>)
Enumerates pixel regions within the image as Buffer2DRegion<T>.
Declaration
public 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. |