cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

I want to store screenshot taken in Vuforia Studio into ThingWorx repository

Aditya1702
15-Moonstone

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

4 REPLIES 4

Similar discussion - "Visualize Vuforia studio capture image and text input in ThingWorx": https://community.ptc.com/t5/Vuforia-Studio/Visualize-Vuforia-studio-capture-image-and-text-input-in/td-p/881234 

Aditya1702
15-Moonstone
(To:VladimirN)

Hi @VladimirN ,

 

In the above link they are storing the image property of the camera widget which I am aware of.

Here I want to store the src property of the image widget which I am not able to.

 

Thanks for your help.

 

Regards,

Aditya Gupta

 

Hello,

 

Do we have any solution for the above problem?

 

Regards,

Aditya Gupta 

Announcements

Top Tags