Beispiel #1
0
            public void Print(BitmapOutput bmp, int qty = 1)
            {
                if (qty == 0)
                {
                    return;
                }
                var grf = bmp.ToGRF(1.0f);

                var sb = new StringBuilder();

                for (var y = 0; y < grf.GetLength(1); ++y)
                {
                    for (var x = 0; x < grf.GetLength(0); ++x)
                    {
                        sb.AppendFormat("{0:X2}", grf[x, y]);
                    }
                }

                Spool(String.Format("~DG000,{0},{1},", grf.GetLength(0) * grf.GetLength(1), grf.GetLength(0)));
                Spool(sb.ToString());
                Spool(String.Format("^XA^MMT^PW{0}^LL0{1}^LS0^FT0,0^XG000.GRF,1,1^FS^PQ{2},0,{2},Y^XZ", grf.GetLength(0) * 8, grf.GetLength(1), qty));
                Flush();
            }
Beispiel #2
0
 public void Print(BitmapOutput bmp, int qty = 1)
 {
     Prt.Print(bmp, qty);
 }
Beispiel #3
0
 public void Print(BitmapOutput b, int qty = 1)
 {
     bmp = b.render;
     pd.Print();
     bmp = null;
 }