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>)

public IEnumerable<Buffer2DRegion<TPixel>> EnumeratePixelRegions<TPixel>(ImageFrame<TPixel> frame) where TPixel : unmanaged, IPixel<TPixel>

Parameters

frame ImageFrame<TPixel>

Returns

IEnumerable<Buffer2DRegion<TPixel>>

Type Parameters

TPixel

EnumeratePixelRegions<TPixel>(Image<TPixel>)

public IEnumerable<Buffer2DRegion<TPixel>> EnumeratePixelRegions<TPixel>(Image<TPixel> image) where TPixel : unmanaged, IPixel<TPixel>

Parameters

image Image<TPixel>

Returns

IEnumerable<Buffer2DRegion<TPixel>>

Type Parameters

TPixel