Hello friends,
I would like to discuss about that how you can zoom in out feature in titanium.
First of all we have to download the draggable module .In order to do this
Refer the link ::
https://github.com/pec1985/TiDraggable
var Draggable = require('ti.draggable');
var win=Ti.UI.createWindow({});
var draggableView=Draggable.CreateView({
height:Ti.UI.SIZE,
width:Ti.UI.SIZE,
canResize:true,
canRotate:false,
IsDraggable:false,
});
var imageView=Ti.UI.createView({
height:Ti.UI.SIZE,
width:Ti.UI.SIZE,
image:”/images/myimage.png”
});
draggableView.add(imageView);
win.add(draggableView);
win.open();
When canResize property of this module is set to true then we can do zoom in/out of an image.Using this module we can rotate,zoom in/out and drag the images.
For more information about this module follow the link; https://github.com/pec1985/TiDraggable/tree/master/ios
Thanks
More From Oodles
Neha N | 14-Mar-2025
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Siddharth Dixit
Siddharth is an iPhone and Android application developer with experience in Titanium Framework .