/// <summary> /// uses the BarcodeWriterGeneric implementation and the <see cref="Color32Renderer"/> class for decoding /// </summary> /// <param name="writer"></param> /// <param name="content"></param> /// <returns></returns> public static Color32[] WriteAsColor32(this IBarcodeWriterGeneric writer, string content) { var bitmatrix = writer.Encode(content); var renderer = new Color32Renderer(); return(renderer.Render(bitmatrix, writer.Format, content, writer.Options)); }
/// <summary> /// Initializes a new instance of the <see cref="BarcodeWriter"/> class. /// </summary> public BarcodeWriter() { Renderer = new Color32Renderer(); }