The
-colors
option has a completely different name in the MagickImage class. It will call the quantize method. Your command translates to this:image.Quantize(new QuantizeSettings() { ColorSpace = ColorSpace.Gray, // -colorspace gray DitherMethod = DitherMethod.No, // +dither Colors = 2 // -colors 2 }); image.Normalize(); // -normalize