Sencha Architect (touch) - Use camera photos -
i have implemented sencha architect project possibility photo (with phonegap). after taking photo, need see photo directly container other information (the picture smaller original...and there written above , below).
how open new container , display image in smaller size? please me, don't understand how can manage photo
now use code if have better....
var me = this; ext.device.camera.capture({ success: function(image) { me.add({ xtype:'image', // commento src: image }); }, source: 'camera', cameradirection: navigator.camera.direction.front, destination: 'file'bu });
thank carlo
sencha documentation got example it. see http://docs.sencha.com/touch/2.3.1/#!/api/ext.device.camera
ext.device.camera.capture({ success: function(image) { imageview.setsrc(image); }, quality: 75, width: 200, height: 200, destination: 'data' });
you can use
destination: 'url'
in case image argument of callback function file url can use in container template source of html image.
Comments
Post a Comment