/// <summary> /// uses the BarcodeWriterGeneric implementation and the <see cref="MagickImageRenderer"/> class for decoding /// </summary> /// <param name="writer"></param> /// <param name="content"></param> /// <returns></returns> public static ImageMagick.MagickImage WriteAsMagickImage(this IBarcodeWriterGeneric writer, string content) { var bitmatrix = writer.Encode(content); var renderer = new MagickImageRenderer(); return(renderer.Render(bitmatrix, writer.Format, content, writer.Options)); }
/// <summary> /// contructor /// </summary> public BarcodeWriter() { Renderer = new MagickImageRenderer(); }