调整图片的全图和原图浏览方式
/// <summary> /// 调整图片浏览方式 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void radioSetPicture_EditValueChanged(object sender, EventArgs e) { //全图 if (radioSetPicture.EditValue.ToString() == "1") { pictureEdit1.Location = new Point(0, 0); pictureEdit1.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Clip; } //原图 if (radioSetPicture.EditValue.ToString() == "0") { pictureEdit1.Location = new Point(0, 0); pictureEdit1.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Zoom; } }