diff --git a/src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs b/src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs index 85786949d8..7c92d3e463 100644 --- a/src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs +++ b/src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs @@ -575,7 +575,9 @@ private void Write4BitPixelData(Configuration configuration, Stream stre { using IQuantizer frameQuantizer = this.quantizer.CreatePixelSpecificQuantizer(configuration, new QuantizerOptions() { - MaxColors = 16 + MaxColors = 16, + Dither = this.quantizer.Options.Dither, + DitherScale = this.quantizer.Options.DitherScale }); frameQuantizer.BuildPalette(this.pixelSamplingStrategy, image); @@ -623,7 +625,9 @@ private void Write2BitPixelData(Configuration configuration, Stream stre { using IQuantizer frameQuantizer = this.quantizer.CreatePixelSpecificQuantizer(configuration, new QuantizerOptions() { - MaxColors = 4 + MaxColors = 4, + Dither = this.quantizer.Options.Dither, + DitherScale = this.quantizer.Options.DitherScale }); frameQuantizer.BuildPalette(this.pixelSamplingStrategy, image); @@ -680,7 +684,9 @@ private void Write1BitPixelData(Configuration configuration, Stream stre { using IQuantizer frameQuantizer = this.quantizer.CreatePixelSpecificQuantizer(configuration, new QuantizerOptions() { - MaxColors = 2 + MaxColors = 2, + Dither = this.quantizer.Options.Dither, + DitherScale = this.quantizer.Options.DitherScale }); frameQuantizer.BuildPalette(this.pixelSamplingStrategy, image);