To load an image use the following javascript function, replace 'objectName' with the stack 'Storage ID'
To set it up associate the function with an html file input field. For example:
<input id="inputID" type="file" onchange="window.storage1.insert(this)">
window.objectName.load() —> for example: window.storage1.load(this);
To reset an image use the following javascript function, replace 'objectName' with the stack 'Storage ID'
window.objectName.reset() —> for example: window.storage1.reset()
To move the position of the image use the following javascript function, replace 'objectName' with the stack 'Storage ID'
window.objectName.position(axis, move) —> for example: storage1.position(0, 5, 1)
axis: 0=move image horizontally, 1=move image vertically
move (in px): use a positive/negative integer to increase/decrease the x,y position of the image, for example: 5
mode: 2=background image ,1=UIkit3 background, 0=Image (foreground)
To scale the image use the following javascript function, replace 'objectName' with the stack 'Storage ID'
window.objectName.scale(axis, scale, mode) —> for example: window.storage1.scale(1, 0.2, 2);
axis: 0=scale image horizontally, 1=scale image vertically
scale: use a positive/negative value between 0 and 0.5 to increase/decrease the horizontal or vertical size of the image, for example: 0.5 .
mode: 2=background image ,1=UIkit3 background, 0=Image (foreground)
This website uses cookies. By continuing to browse the website you agree to our terms & conditions and to our privacy policy.