I have problems converting some jpg to black and white TIFF using FloydSteinberg dithering.
Some (for example santa.jpg ) becomes completely white.
My code is based on the example in this thread.
(Using Magick.NET 7.0.0.0022 installed with NuGet)
Some (for example santa.jpg ) becomes completely white.
My code is based on the example in this thread.
using (MagickImage image = new MagickImage(@"C:\santa.jpg"))
{
QuantizeSettings settings = new QuantizeSettings();
settings.DitherMethod = DitherMethod.FloydSteinberg;
settings.ColorSpace = ColorSpace.Gray;
settings.Colors = 2;
image.Quantize(settings);
image.Depth = 1;
image.Write(@"C:\santa.tif");
}
Should this work or have I missed something?(Using Magick.NET 7.0.0.0022 installed with NuGet)