Table of Contents

Class ExtensivePixelSamplingStrategy

Namespace
SixLabors.ImageSharp.Processing.Processors.Quantization
Assembly
SixLabors.ImageSharp.dll

A pixel sampling strategy that enumerates all pixels.

public class ExtensivePixelSamplingStrategy : IPixelSamplingStrategy
Inheritance
ExtensivePixelSamplingStrategy
Implements
Inherited Members

Constructors

ExtensivePixelSamplingStrategy()

public ExtensivePixelSamplingStrategy()

Methods

EnumeratePixelRegions<TPixel>(ImageFrame<TPixel>)

Enumerates pixel regions within a single image frame as Buffer2DRegion<T>.

public 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>.

public 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.