Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button1_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- private void button_showPicture_Click(object sender, EventArgs e)
- {
- if (openFileDialog1.ShowDialog() == DialogResult.OK)
- {
- pictureBox1.Load(openFileDialog1.FileName);
- }
- }
- private void button_setbg_Click(object sender, EventArgs e)
- {
- if (colorDialog1.ShowDialog() == DialogResult.OK)
- {
- pictureBox1.BackColor = colorDialog1.Color;
- }
- }
- private void button_clear_Click(object sender, EventArgs e)
- {
- pictureBox1.Image = null;
- }
- private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
- {
- }
- private void checkBox_stetch_CheckedChanged(object sender, EventArgs e)
- {
- if (checkBox_stretch.Checked)
- pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
- else
- pictureBox1.SizeMode = PictureBoxSizeMode.Normal;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment