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(); }
private void SettingsUpDownHeight_ValueChanged(object sender, EventArgs e) { SourceImageBox.Invalidate(); }
private void ShowGridCheckBox_CheckStateChanged(object sender, EventArgs e) { //Force a Redraw of Source image SourceImageBox.Invalidate(); }