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
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
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
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
Not sure what the specific use case about "store the src property of the image widget".
Here are some documents about storing Images captured in Vuforia view into Thingworx: