/// <summary> /// uses the BarcodeWriterGeneric implementation and the <see cref="ZXing.ZKWeb.Rendering.BitmapRenderer"/> class for decoding /// </summary> /// <param name="writer"></param> /// <param name="content"></param> /// <returns></returns> public static System.DrawingCore.Bitmap WriteAsBitmap(this IBarcodeWriterGeneric writer, string content) { var bitmatrix = writer.Encode(content); var renderer = new ZXing.ZKWeb.Rendering.BitmapRenderer(); return(renderer.Render(bitmatrix, writer.Format, content, writer.Options)); }
/// <summary> /// /// </summary> public BarcodeWriter() { Renderer = new ZXing.ZKWeb.Rendering.BitmapRenderer(); }