コード例 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            BMP_Tools BT = new BMP_Tools();

            BT.GetImage(Ini.Read("PICPATH"));
            pictureBox2.BackgroundImage = BT.CutButtonImage(int.Parse(textBox1.Text), int.Parse(textBox2.Text));
            textBox2.Text = (int.Parse(textBox2.Text) + 1).ToString();
        }
コード例 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            BMP_Tools BT = new BMP_Tools();

            BT.GetImage(Ini.Read("PICPATH"));
            pictureBox9.BackgroundImage = BT.SBMP;
            pictureBox9.Width           = BT.SBMP.Width;
            pictureBox9.Height          = BT.SBMP.Height;
        }
コード例 #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog Dlg = new OpenFileDialog();

            Dlg.DefaultExt = "*.*";
            Dlg.Filter     = "(*.*)|*.jpg|*.bmp|*.png";
            if (Dlg.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }
            Ini.Write("PICPATH", Dlg.FileName);
            BMP_Tools BT = new BMP_Tools();

            BT.GetImage(Ini.Read("PICPATH"));
            pictureBox9.BackgroundImage = BT.SBMP;
            pictureBox9.Width           = BT.SBMP.Width;
            pictureBox9.Height          = BT.SBMP.Height;
        }