private void btn_stretch_Click(object sender, EventArgs e) { try { imageProcessing.Stretch(curBitmap, out curBitmap); Invalidate(); } catch (NullReferenceException exp) { MessageBox.Show("请选择图片"); } catch (Exception exp) { MessageBox.Show(exp.Message); } }