예제 #1
0
 private void OpenBTN_Click(object sender, EventArgs e)
 {
     if (ofd.ShowDialog() != DialogResult.OK)
     {
         return;
     }
     bmp                = (Bitmap)Image.FromFile(ofd.FileName);
     tmp                = Convertors.Bitmap2Photo(bmp);
     sizeLBL.Text       = string.Format("Size: {0} {1}", tmp.Width, tmp.Height);
     widthInputTB.Text  = tmp.Width.ToString();
     heightInputTB.Text = tmp.Height.ToString();
     inputPB.Image      = Convertors.Photo2Bitmap(tmp);
 }