コード例 #1
0
        public MyPicWithOriginalStream GetScreenShot(int screenId)
        {
            Bitmap b = ImageCapture.GetAll();
            MyPicWithOriginalStream ret = new MyPicWithOriginalStream(b);

            return(ret);
        }
コード例 #2
0
        public void ImageStore_ScreenStore(MyPicWithOriginalStream screen, IdAndStep id)
        {
            StoredPicInfo imageToAdd = new StoredPicInfo(screen, id.CreateFileName(Msg_DestMobile), id.IsSub);

            if (ImageList.ContainsKey(id.ToString()))
            {
                ImageList.Remove(id.ToString());
                ImageList.Add(id.ToString(), imageToAdd);
            }
            else
            {
                // not there yet
                ImageList.Add(id.ToString(), imageToAdd);
            }
            if (!id.IsSub)
            {
                _lastStoredImage = imageToAdd;
            }
            screen.myPic.ToFileIfConfigured("NiceTray._6WhatsAppProcess_Real.DumpScreensOnStore", imageToAdd.fileName, true);
        }
コード例 #3
0
 private void ScreenStore(MyPicWithOriginalStream screen, int screenId, _6WhatsAppProcess_RealData data)
 {
     data.ImageStore_ScreenStore(screen, new IdAndStep(screenId, data.id, false, -1));
 }
コード例 #4
0
 public StoredPicInfo(MyPicWithOriginalStream thePic, string fileName, bool isSub)
 {
     this.thePic   = thePic;
     this.fileName = fileName;
     this.isSub    = isSub;
 }