void takeScreenshots()
    {
        /* Grab texture and send to server */
        //arcamera.GetComponent<ColorBlindFilter>().colorBlindMode = ColorBlindMode.None;
        Vuforia.Image cameraImage = CameraDevice.Instance.GetCameraImage(mPixelFormat);

        if (cameraImage == null)
        {
            Debug.Log("pixel format is not available yet");
        }
        else
        {
            Texture2D texture2DHuman = new Texture2D(cameraImage.Height, cameraImage.Width);
            cameraImage.CopyToTexture(texture2DHuman);
            ScreenshotManager.SaveImage(flipTexture(texture2DHuman), "HumanVision");
            //StartCoroutine(savePhoto(texture2DHuman, "HumanVision"));

            Texture2D texture2DDoggy = new Texture2D(cameraImage.Height, cameraImage.Width);
            cameraImage.CopyToTexture(texture2DDoggy);
            ScreenshotManager.SaveImage(addColorBlindnessToTexture(flipTexture(texture2DDoggy)), "DoggyVision");
            //StartCoroutine(savePhoto(texture2DDoggy, "DoggyVision"));

            // Upload bytes of image to server
            //StartCoroutine(Upload(bytes));
        }
    }
Esempio n. 2
0
 // Token: 0x06000101 RID: 257 RVA: 0x00009349 File Offset: 0x00007749
 public void OnSaveImagePress()
 {
     ScreenshotManager.SaveImage(this.texture, "MyImage", "png", "png");
 }
Esempio n. 3
0
 public void OnSaveImagePress()
 {
     ScreenshotManager.SaveImage(texture, "MyImage", "MyImages", "png");
     //ScreenshotTaken();
 }