Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hi, I am trying to place an image in 2D Panel using a Resource Image Widget. But while placing that, I find that image looks over sized and not fitting the screen. Need help on how I can Re-Size the Resource Image.
Thanks,
Avinash
Solved! Go to Solution.
Hi Avinash. You can define the width and height of the image using the width and height properties listed within the resource image details. This will allow you to resize the image to fit appropriately within your experience.
Hi Avinash. You can define the width and height of the image using the width and height properties listed within the resource image details. This will allow you to resize the image to fit appropriately within your experience.
Thank so much. Some how I missed it. Also we need while mentioned th height and width we have to mentioned them either in px or in %.
Thanks,
Avinash
Is it possible to change the width and height of 3DImage with the javascript code?
I tried in every way but in the end it does not change anything.
i used this code.
$scope.add=function() {
$scope.setWidgetProp("3DImage-1", "width", parseInt($scope.getWidgetProp("3DImage-1", "width")) + 1);
}
or
$scope.add=function() {
$scope.view.wdg["3DImage-1"].width += 1
}
but not working.
Thnx
Giuseppe