Hi, I working in easy code for show a picture as layer type Image:
Code
<action name="create_picture_window">
addlayer(%1);
set(layer[%1].url,%2);
set(layer[%1].align,center);
set(layer[%1].onclick,removelayer(%1));
</action>
For use:
create_picture_window(mypicture1,picture1.jpg);
Very simple until now, but for add a background border: How to create that layer using width and height of the first layer created?
I tried creating container layer, copyng the width and height and add 15 px but not work.
Please helpme to complete this code, use the argument vars instead of % is too welcome.
Greets,
Fernando