Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     listView1.View = View.Details;
     listView1.Columns.Add("Variable", 149, HorizontalAlignment.Left);
     listView1.Columns.Add("Value", 130, HorizontalAlignment.Left);
     myBMP = new BMPFile("defaultIamge.bmp");
     myBMP.printHeader(this);
     pictureBox1.Image = myBMP.bitmap;
 }
Exemplo n.º 2
0
        private void loadFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog file = new OpenFileDialog();

            file.Filter      = "BMP files (*.bmp)|*.bmp|All files (*.*)|*.*";
            file.FilterIndex = 1;
            file.Multiselect = true;
            if (file.ShowDialog() == DialogResult.OK)
            {
                string   sFileName   = file.FileName;
                string[] arrAllFiles = file.FileNames; //used when Multiselect = true
                myBMP = new BMPFile(sFileName);
                myBMP.printHeader(this);
                pictureBox1.Image = myBMP.bitmap;
            }
        }