Class AverageColorSampler
Represents a sampled that averages multiple color to a single color.
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public sealed class AverageColorSampler : ISampler<Color>
Remarks
Averages all components (A, R, G, B) of the colors separately which isn't ideal in cases where multiple different colors are combined.
Methods
| Edit this page View SourceSample(in SamplerInfo<Color>, in Span<Color>)
Samples the specified data to a single pixel-buffer.
Declaration
public void Sample(in SamplerInfo<Color> info, in Span<Color> pixelData)
Parameters
Type | Name | Description |
---|---|---|
SamplerInfo<Color> | info | The information containing the data to sample. |
Span<Color> | pixelData | The buffer used to write the resulting pixel to. |