Interface IPixelSamplingStrategy
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Quantization
- Assembly
- SixLabors.ImageSharp.dll
Provides an abstraction to enumerate pixel regions for sampling within Image<TPixel>.
public interface IPixelSamplingStrategy
Methods
EnumeratePixelRegions<TPixel>(ImageFrame<TPixel>)
Enumerates pixel regions within a single image frame as Buffer2DRegion<T>.
IEnumerable<Buffer2DRegion<TPixel>> EnumeratePixelRegions<TPixel>(ImageFrame<TPixel> frame) where TPixel : unmanaged, IPixel<TPixel>
Parameters
frame
ImageFrame<TPixel>The image frame.
Returns
- IEnumerable<Buffer2DRegion<TPixel>>
An enumeration of pixel regions.
Type Parameters
TPixel
The pixel type.
EnumeratePixelRegions<TPixel>(Image<TPixel>)
Enumerates pixel regions for all frames within the image as Buffer2DRegion<T>.
IEnumerable<Buffer2DRegion<TPixel>> EnumeratePixelRegions<TPixel>(Image<TPixel> image) where TPixel : unmanaged, IPixel<TPixel>
Parameters
image
Image<TPixel>The image.
Returns
- IEnumerable<Buffer2DRegion<TPixel>>
An enumeration of pixel regions.
Type Parameters
TPixel
The pixel type.