I want to store screenshot taken in Vuforia Studio into ThingWorx repository
Hi Everyone,
Good Afternoon,
I have a code to take screenshot in Vuforia Studio. Now I want to store that screenshot inside thingworx repository.
Any idea how can it be done.
Need solution asap.
Code used for screenshot:
//Take Screenshot
var callback = function (pngBase64String, args) {
$scope.view.wdg['currentPhoto'].imgsrc='data:image/png;base64,' + pngBase64String;
console.log("args");
console.log(args);
console.log("pngBase64String");
console.log(pngBase64String);
$scope.view.wdg["label_args"].text = args;
$scope.$applyAsync();
};
// params = { dataURL:bool, withAugmentation: bool, imgFormat: string, imgWidth: number, imgHeight:number}
$scope.screenShot = function() {
var params = {withAugmentation: true};
tml3dRenderer.takeScreenshot(params, callback, null);
}
Thanks in Advance.
Regards,
Aditya Gupta

