Exemplo n.º 1
0
        public static Image TakeScreenshot(XboxDebugCommunicator xdc)
        {
            string str = Application.StartupPath + "\\TempScreenshot.dds";

            xdc.Screenshot(str);
            Image image = XboxScreenshot.Deswizzle(str);

            File.Delete(str);
            return(image);
        }
Exemplo n.º 2
0
        public static Image TakeScreenshot(XboxDebugCommunicator xdc)
        {
            //Set our temporary DDS fileName
            string tempPath = Application.StartupPath + "\\TempScreenshot.dds";

            //Save a screenshot
            xdc.Screenshot(tempPath);
            //Decode our image
            Image img = Deswizzle(tempPath);

            //Delete our tempFile
            File.Delete(tempPath);
            return(img);
        }