调整图片的全图和原图浏览方式

 /// <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;
            }
        }

 

posted @ 2012-12-26 21:50  qin孑  阅读(212)  评论(0编辑  收藏  举报