convert input.png -remap pattern:gray30 output.bmp
byte[] input = System.IO.File.ReadAllBytes(ImgPath + "1.JPG"); MagickReadSettings readSettings = new MagickReadSettings() { UseMonochrome = true, Depth=1, Density = new Density(300, 300, DensityUnit.PixelsPerInch) }; using (MagickImage image = new MagickImage(input, readSettings)) { ...... ? }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)