Exemple #1
0
 static public void captureScreenShot(string filename)
 {
     if (mCurrentConsole != null)
     {
         try
         {
             mCurrentConsole.ScreenShot(filename);
         }
         catch { }
     }
 }
Exemple #2
0
 public bool GetScreenshot(string savePath, bool freezeDuring = false)
 {
     if (!ConnectTarget())
     {
         return(false);
     }
     if (freezeDuring)
     {
         Freeze();
     }
     xbCon.ScreenShot(savePath + ".bmp");
     if (freezeDuring)
     {
         UnFreeze();
     }
     return(true);
 }
Exemple #3
0
        public void Screenshot()
        {
            /*SendTextCommand("screenshot");
             * string response = RecieveString();
             *
             * uint imageSize = 0x7E9000;//Convert.ToUInt32(Regex.Matches(response, @"framebuffersize=0x(\w+)")[0].Groups[1].ToString(), 16);
             * int width = Convert.ToInt32(Regex.Matches(response, @"width=0x(\w+)")[0].Groups[1].ToString(), 16);
             * int height = Convert.ToInt32(Regex.Matches(response, @"height=0x(\w+)")[0].Groups[1].ToString(), 16);
             *
             * BinaryWriter bmpWriter = new BinaryWriter(File.Open("C:\\Users\\Adam\\Desktop\\sickimage.bmp", FileMode.CreateNew));
             * bmpWriter.Write((short)0x424D);
             * bmpWriter.Write(imageSize);
             * bmpWriter.Write((int)0);
             * bmpWriter.Write((int)14);
             * bmpWriter.Write(RecieveBinaryData(imageSize), 0, (int)imageSize);
             * bmpWriter.Close();*/

            console.ScreenShot("C:\\Users\\Adam\\Desktop\\balls.bmp");
        }