private void button3_Click_1(object sender, EventArgs e) { simple = new SimplePattern(); NewLeafBitmap nlb = new NewLeafBitmap(); nlb.falseColor = new Bitmap(32, 32); nlb.filepal = new byte[15]; //BitmapEditor ed = new BitmapEditor(); //ed.nlbit = nlb; //ed.refreshPalette(); // ed.ShowDialog(); nombo.Text = simple.designName; authbox.Text = simple.creatorName; citybox.Text = simple.cityName; button5.Enabled = true; pictureBox1.Image = nlb.getTrueColorBitmap(); }
private void button4_Click_1(object sender, EventArgs e) { if (!Clipboard.ContainsImage()) { MessageBox.Show("No image on the clipboard!"); return; } Stream fs; fs = QRFromClipboard(); // fs = File.Open("C:/DATASETS/serialize.txt", FileMode.Open); simple = new SimplePattern(fs); nombo.Text = simple.designName; authbox.Text = simple.creatorName; citybox.Text = simple.cityName; button5.Enabled = true; pictureBox1.Image = simple.design.getTrueColorBitmap(); }