コード例 #1
0
        private void OpenButton_Click(object sender, EventArgs e)
        {
            DialogResult dr = openFileDialog1.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                string path = openFileDialog1.FileName;

                sourceImage = Image.FromFile(path);

                SourceImageBox.Invalidate();
            }
            openFileDialog1.Dispose();
        }
コード例 #2
0
 private void SettingsUpDownHeight_ValueChanged(object sender, EventArgs e)
 {
     SourceImageBox.Invalidate();
 }
コード例 #3
0
 private void ShowGridCheckBox_CheckStateChanged(object sender, EventArgs e)
 {
     //Force a Redraw of Source image
     SourceImageBox.Invalidate();
 }