ImageProcessor.Imaging.Quantizers.WuQuantizer.PaletteColorHistory.AddPixel C# (CSharp) Method

AddPixel() public method

Adds a pixel to the color history.
public AddPixel ( ImageProcessor.Imaging.Colors.Color32 pixel ) : void
pixel ImageProcessor.Imaging.Colors.Color32 /// The pixel to add. ///
return void
        public void AddPixel(Color32 pixel)
        {
            this.Alpha += pixel.A;
            this.Red += pixel.R;
            this.Green += pixel.G;
            this.Blue += pixel.B;
            this.Sum++;
        }