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

Resource Widget. How to change size of the Image

SOLVED
Aquamarine

Resource Widget. How to change size of the Image

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Resource Widget. How to change size of the Image

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.

View solution in original post

3 REPLIES 3

Re: Resource Widget. How to change size of the Image

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.

View solution in original post

Re: Resource Widget. How to change size of the Image

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

Re: Resource Widget. How to change size of the Image

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