I want to store screenshot taken in Vuforia Studio into ThingWorx repository
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Labels:
-
Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
Do we have any solution for the above problem?
Regards,
Aditya Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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:
- https://community.ptc.com/t5/Vuforia-Studio/Transferring-an-image-to-twx/td-p/703693?_gl=1*1jco05c*_gcl_au*MzU0NDIwMzYyLjE3MjQ1OTk5MDk.*_ga*MTM3MDQwNDM2OC4xNzI0NTk5OTA5*_ga_7NMP2MSYPM*MTcyNTM0MjM2NC4xMC4xLjE3MjUzNDI0NTUuMzQuMC4w*_ga_CBN5QVB9VJ*MTcyNTM0MjM2NC45LjEuMTcyNTM0MjQ0OC4wLjAuMA..
- https://www.ptc.com/en/support/article/CS339332
