sceneform-android-sdk icon indicating copy to clipboard operation
sceneform-android-sdk copied to clipboard

How capture image of the rendering model and save to local as png or jpg.

Open RavindraVirat opened this issue 8 years ago • 2 comments

I want to capture the image of the model and save to local folder. To achieve this I tried some code like arFragment.getArSceneView().getArFrame().acquireCameraImage() this is giving Image class object, I thought from here I will get bitmap object but bitmap is always null. Please update how to achieve this functionality.

RavindraVirat avatar Jun 26 '18 07:06 RavindraVirat

You can use the PixelCopy API as described in the following codelabs: https://codelabs.developers.google.com/codelabs/sceneform-intro/index.html?index=..%2F..%2Fio2018#14

SimonMarquis avatar Jun 26 '18 08:06 SimonMarquis

Thanks, its working fine.

RavindraVirat avatar Jun 27 '18 08:06 RavindraVirat