Log in or register to post comments

Capturing screen shot

November 26, 2013 - 1:47am #1

Hi , I'm trying to capture a screen shot in my applicaiton , I use Application.CaptureScreenShot , and using the second method (ReadPixels) will give me the error "readpixels was called to read pixels from system frame buffer while not inside drawing frame" . it seems Application.CaptureScreenShot works and it doesn't give me errors but I need to save the file in my gallery , otherwise it won't be helpful for the user to share or use it later. I wanted to know if there are any ways to that. I'll appreciate if you can help me with this.

thanks

 

Capturing screen shot

November 29, 2013 - 10:46am #5

Thanks , I had seen that thread , but it says that the image won't be available until reboot.  till now the only thing that seems to work is this asset https://www.assetstore.unity3d.com/#/content/7827 .

Thanks again

Capturing screen shot

November 29, 2013 - 8:23am #4

my problem is that I can't save the captured screenshot to the gallery

Well, this is more an issue to do with Unity and programming for your device, rather than saving it to the gallery on iOS or Android.

 

The link I provided: 

     https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/obtain-unity-camera-image-without-augmentation

shows how to save the image into the documents directory (in iOS) around this line:

           // For testing purposes, also write to a file in the project folder
           File.WriteAllBytes(Application.persistentDataPath + "/Screenshot.png", bytes);

 

...so I thought you ought to be able to do a web search to find out how to extend this and save it in the gallery

e.g.

http://answers.unity3d.com/questions/204372/saving-screenshots-to-android-gallery.html

 

N

 

 

Capturing screen shot

November 29, 2013 - 4:40am #3

Thanks Nalin , I have searched vuforia site , unity answers and many other sites and haven't found a solution . my problem is that I can't save the captured screenshot to the gallery.  I'll apprecaite if you can help me with this.

thanks

Capturing screen shot

November 26, 2013 - 4:01am #2

Overall this is noting really to do with Vuforia.

However this thread might help you:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/obtain-unity-camera-image-without-augmentation

You could also try searching the forums.

 

N

 

 

Log in or register to post comments