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
| Edit this page View SourceEnumeratePixelRegions<TPixel>(ImageFrame<TPixel>)
Enumerates pixel regions within a single image frame as Buffer2DRegion<T>.
Declaration
public IEnumerable<Buffer2DRegion<TPixel>> EnumeratePixelRegions<TPixel>(ImageFrame<TPixel> frame) where TPixel : unmanaged, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
ImageFrame<TPixel> | frame | The image frame. |
Returns
Type | Description |
---|---|
IEnumerable<Buffer2DRegion<TPixel>> | An enumeration of pixel regions. |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel type. |
EnumeratePixelRegions<TPixel>(Image<TPixel>)
Enumerates pixel regions for all frames within the image as Buffer2DRegion<T>.
Declaration
public IEnumerable<Buffer2DRegion<TPixel>> EnumeratePixelRegions<TPixel>(Image<TPixel> image) where TPixel : unmanaged, 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. |