mohan
09-30-2003, 06:31 AM
Hi Antun,
<canvas>
<view x="50" y="10" name="foo" resource="56069[2].jpg" stretches="both" />
<button y="200" label="+" width="70" height="20"
onclick="foo.setWidth( foo.width +10 );
foo.setHeight( foo.height + 10); foo.setX(foo.x-5); foo.sety(foo.y-5);"/>
<button x="100" y="200" label="-" width="70" height="20"
onclick="foo.setWidth( foo.width -10 ) ;
foo.setHeight( foo.height - 10);foo.setX(foo.x+5); foo.sety(foo.y+5); "/>
</canvas>
By using above code we can zoomin and zoomout the image.But we have to fix the max and min zoomin and zoomout for value .so that it should not further zoomin or zoomout.
How can i do that?
Thanks alot
Mallesh
<canvas>
<view x="50" y="10" name="foo" resource="56069[2].jpg" stretches="both" />
<button y="200" label="+" width="70" height="20"
onclick="foo.setWidth( foo.width +10 );
foo.setHeight( foo.height + 10); foo.setX(foo.x-5); foo.sety(foo.y-5);"/>
<button x="100" y="200" label="-" width="70" height="20"
onclick="foo.setWidth( foo.width -10 ) ;
foo.setHeight( foo.height - 10);foo.setX(foo.x+5); foo.sety(foo.y+5); "/>
</canvas>
By using above code we can zoomin and zoomout the image.But we have to fix the max and min zoomin and zoomout for value .so that it should not further zoomin or zoomout.
How can i do that?
Thanks alot
Mallesh