Sergio Yes I have the same problem, but I haven't yet worked on a solution. I imagine you could show the photo in an HTML file instead, with the photo aligned as you want?
I should have mentioned in my original post that I'm also using a dynamically generated HTML files and iPhone CSS to style a gallery of thumbnails - looks great :) I'm away from home for a couple of days and only have my iPhone to do email but I can explain more about it when I return - I might even do up a demo stack. Gerry -- http://gerryorkin.com On 07/10/2011, at 10:57 PM, Sergio Schvarstein <[email protected]> wrote: > 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, [email protected] escribió: > >> From: Gerry Orkin <[email protected]> >> To: How to use LiveCode <[email protected]> >> Subject: Re: Photo album >> Message-ID: <[email protected]> >> 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 > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
