Esempio n. 1
0
 static void Main(string[] args)
 {
     Barcode39 barcode = new Barcode39();
     Console.Write("Enter your barcode: ");
     var input = Console.ReadLine();
     string result = barcode.DrawCode39Barcode(input, 0);
     File.WriteAllText("barcode.html", result);
 }
Esempio n. 2
0
 // }}}
 // GtkRenderer::renderBarcode() {{{
 public void renderBarcode(BarcodeElement elm)
 {
     if(elm.symbologie==0) {
         Barcode39 barcode = new Barcode39();
         //barcode.BarHeight=Conversions.dot2mm(this.heightMagnification);
         barcode.Code = elm.data;
         barcode.BarHeight = (float)elm.height;
         barcode.render((int)elm.fieldOriginX,(int)elm.fieldOriginY, this._da);
     } else {
         Console.WriteLine("Barcode "+elm._symbologieMap[elm.symbologie]+" are not implemented yet");
     }
 }