I'm trying to reduce the colors of an image to 8 dominant colors, and I have a picture of a rainbow here:
I've got code like this:
I was using MagickNet 6.8.9.601, but I just switched to 7.0.0.0001 to see if that would help anything. It didn't. Why does Quantize do that? Do you have any advice or suggestions?
I've got code like this:
var qSettings = new QuantizeSettings { Colors = 8, DitherMethod = DitherMethod.No, ColorSpace = ImageMagick.ColorSpace.RGB};
imageMagick.Quantize(qSettings);
imageMagick.Write("c:\\work\\test.png");
No matter what combination I try (changing the ColorSpace, modifying TreeDepth, etc.), it will always merge at least two of the bars together. usually red and orange or dark blue and violet.I was using MagickNet 6.8.9.601, but I just switched to 7.0.0.0001 to see if that would help anything. It didn't. Why does Quantize do that? Do you have any advice or suggestions?