private void button1_Click(object sender, EventArgs e) { pictureBox1.Width = LabelWidth; pictureBox1.Height = LabelHeight; pictureBox1.Image = DrawTools.DrawBarcodeImage(textBox_Label.Text, LabelWidth, LabelHeight, 2, true); }