Thanks a lot Gerry. I've tried opening directly the jpg images with a browser control and with the autofit option and the zoom works great. :-)
The problem now is that the pictures are landscape orientated and bigger than the browser area, so when I open them they appear top-left aligned and I need them to appear horizontally and vertically centered on the iphone screen. This is my script: on preOpenCard iphoneControlCreate "browser" put the result into sBrowserId iphoneControlSet sBrowserId, "visible", "true" iphoneControlSet sBrowserId, "autofit", "true" iphoneControlSet sBrowserId, "url", "http://www.bytebiscuits.com/projects/indexbook/sobreimpresion_01.jpg" iphoneControlSet sBrowserId, "rect", the rect of group "Browser" end preOpenCard I couldn´t find any option for changing the alignment. Is there any way for controlling it or any other way for getting this result ? ______________________________ Sergio Schvarstein ______________________________ El 07/10/2011, a las 05:06, use-livecode-requ...@lists.runrev.com escribió: > From: Gerry Orkin <gerry.or...@gmail.com> > To: How to use LiveCode <use-livecode@lists.runrev.com> > Subject: Re: Photo album > Message-ID: <c10e2e78-1751-4b2c-80f4-92b2cf125...@gmail.com> > Content-Type: text/plain; charset=us-ascii > > Use a browser control to display the photos. > > > Gerry > > > > On 07/10/2011, at 12:44 PM, Sergio Schvarstein wrote: > >> Hi, >> >> I need to do exactly what the photo album does on the iPhone and incorporate >> all 4 gestures on a single image: >> Pinch, zoom, drag and swipe. >> >> I have gone through the multi touch tutorial but the zoom quality is very >> bad. I need a real zoom, not a pixelated resize. >> >> Is there any for doing it with a native iPhone control ? >> Or any other way ? >> >> Thanks >> >> >> ______________________________ >> Sergio Schvarstein >> >> ______________________________ > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode