Пример #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            StrokeScribeClass ss = new StrokeScribeClass();

            ss.Alphabet  = enumAlphabet.CODE128B;
            ss.Text      = dataGridView1.CurrentRow.Cells[3].Value;
            ss.FontColor = 0x000000; //0xff0000=синий, 0x00ff00=зеленый, 0x0000ff=красный

            int   width = ss.BitmapW;
            int   rc    = ss.SavePicture((dataGridView1.CurrentRow.Cells[3].Value) + ".bmp", enumFormats.BMP, width * 2, width);
            Form5 form  = new Form5();

            form.ShowDialog();
        }
Пример #2
0
    static void Main(string[] args)
    {
        StrokeScribeClass ss = new StrokeScribeClass();

        ss.Alphabet          = enumAlphabet.DATAMATRIX;
        ss.DataMatrixMinSize = 16;
        ss.ECI  = 0;
        ss.UTF8 = false;

        Console.Write("Input : ");
        string txt;

        txt = Console.ReadLine();

        ss.Text = txt;
        int w = ss.BitmapW;
        int h = ss.BitmapH;

        ss.SavePicture(txt + ".bmp", enumFormats.BMP, w * 2, h * 2);
        System.Console.Write(ss.ErrorDescription);
        WriteTextFile.Second(txt);
    }