Example #1
0
 //另一个窗体,用做放大的图片显示,上面有一个picturebox控件
 private void button5_Click(object sender, EventArgs e)
 {
     if (pictureBox1.ImageLocation == "")
     {
         MessageBox.Show("没有图片,无法放大");
     }
     else
     {
         ima.pictureBox1.Image = pictureBox1.Image;
         ima.ShowDialog( );
     }
 }
Example #2
0
 private void btn11_Click(object sender, EventArgs e)
 {
     if (picKH07.ImageLocation == "")
     {
         MessageBox.Show("没有图片,不能放大");
     }
     else
     {
         R_FrmImageAmplication ima = new R_FrmImageAmplication( );
         ima.pictureBox1.Image = picKH07.Image;
         ima.ShowDialog( );
     }
 }