You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, April 11th 2017, 9:25am

Get the width and height of the image in the layer url = "images / logo.png",Ok?

Hi,Klaus
<layer name="main_logo" type="image" url="images/logo.png" align="lefttop" x="10" y="10" blendmode="normal" devices="normal"/>

Above the code.



Want to get url = "images / logo.png" picture is wide and high, ok?
I tried trace(get (layer [main_logo] .imagewidth)); But did not succeed.

Thanks

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

2

Tuesday, April 11th 2017, 11:34am

Source code

1
<layer name="main_logo" keep="true" type="image" url="images/logo.png" align="lefttop" x="10" y="10" blendmode="normal" devices="normal" onloaded="showlog();trace(get(layer[main_logo].imagewidth));" />