Example #1
0
        private void butCreateBitmap_Click(object sender, EventArgs e)
        {
            CreateEan13();
            ean13.Scale = (float)Convert.ToDecimal(cboScale.Items[cboScale.SelectedIndex]);

            Bitmap bmp = ean13.CreateBitmap();

            picBarcode.Image = bmp;
        }
Example #2
0
        private void Test()
        {
            ean13       = new Ean13("9780201734843");
            ean13.Scale = (float)Convert.ToDecimal(cboScale.Items[cboScale.SelectedIndex]);

            txtCountryCode.Text      = ean13.CountryCode;
            txtManufacturerCode.Text = ean13.ManufacturerCode;
            txtProductCode.Text      = ean13.ProductCode;
            txtChecksumDigit.Text    = ean13.ChecksumDigit;

            Bitmap bmp = ean13.CreateBitmap();

            this.picBarcode.Image = bmp;
        }