Ejemplo n.º 1
0
        public void AddBackImage(Image image)
        {
            FileOperator ope         = new FileOperator();
            string       newFileName = ope.GetNewBackFileName(GetConfig.Dynamic, System.DateTime.Now.ToString("yyyyMMdd"), ".jpg");
            string       path        = GetConfig.Dynamic + "\\" + newFileName;

            FileOperator.SaveAsJPEG(image, path, GetConfig.IMS_Quality);
            AddNewImage ani = new AddNewImage(BackAddImage);

            this.p_BackImags.BeginInvoke(ani, new object[] { path, false });
        }
Ejemplo n.º 2
0
 public void AddPreferImage(Image image)
 {
     if (frmMainForm.examInf.ExamAccessionNum != "" && frmMainForm.examInf.ReqDateTime != "")
     {
         if (!Directory.Exists(Dir))
         {
             Directory.CreateDirectory(Dir);
         }
         FileOperator ope         = new FileOperator();
         string       newFileName = ope.GetNewFileName(Dir, frmMainForm.examInf.ExamAccessionNum, ".jpg");
         string       newPath     = Dir + "\\" + newFileName;
         FileOperator.SaveAsJPEG(image, newPath, GetConfig.IMS_Quality);
         AddNewImage ani = new AddNewImage(PreferAddImage);
         this.p_PreferImages.BeginInvoke(ani, new object[] { newFileName, newPath });
     }
 }
Ejemplo n.º 3
0
 public void AddPreferImage(Image image)
 {
     if (frmMainForm.examInf.ExamAccessionNum != "" && frmMainForm.examInf.ReqDateTime != "")
     {
         if (!Directory.Exists(Dir))
         {
             Directory.CreateDirectory(Dir);
         }
         FileOperator ope         = new FileOperator();
         string       newFileName = ope.GetNewFileName(Dir, frmMainForm.examInf.ExamAccessionNum, ".jpg");
         string       path        = Dir + newFileName;
         FileOperator.SaveAsJPEG(image, path, GetConfig.IMS_Quality);
         ImgObj obj = this.AddImgObj(newFileName, path);
         if (obj != null)
         {
             AddNewImage ani = new AddNewImage(RptAddImage);
             this.p_RptImages.BeginInvoke(ani, new object[] { obj });
         }
     }
     this.l_Count.Text = "共 " + this.p_RptImages.Controls.Count.ToString() + " 张";
 }