Show / Hide Table of Contents

Class AverageColorSampler

Represents a sampled that averages multiple color to a single color.

Inheritance
object
AverageColorSampler
Implements
ISampler<Color>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

Sample(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.

Implements

ISampler<T>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX