Beispiel #1
0
        /// <summary>
        /// ͼƬËõС
        /// </summary>
        private void btnPicSmaller_Click(object sender, EventArgs e)
        {
            try
            {
                if (pictureBoxStandPic.Image == null)
                {
                    return;
                }
                if (saveStandImage == null)
                {
                    saveStandImage = pictureBoxStandPic.Image;
                }

                decimal zoonNum = saveZoomNum * 0.1m + 1m;
                if (zoonNum <= 0)
                {
                    return;
                }
                else
                {
                    saveZoomNum--;
                }
                pictureBoxStandPic.Image = TemplatePic.ZoomImage(saveStandImage, zoonNum);
            }
            catch (Exception E)
            {
                this.ShowMessage(E.Message);
            }
        }
Beispiel #2
0
 /// <summary>
 /// ԭʼͼƬ
 /// </summary>
 private void btnPicYuan_Click(object sender, EventArgs e)
 {
     try
     {
         if (pictureBoxStandPic.Image == null)
         {
             return;
         }
         if (saveStandImage == null)
         {
             saveStandImage = pictureBoxStandPic.Image;
         }
         saveZoomNum = 0;
         pictureBoxStandPic.Image = TemplatePic.ZoomImage(saveStandImage, saveZoomNum * 0.1m + 1m);
     }
     catch (Exception E)
     {
         this.ShowMessage(E.Message);
     }
 }