Jump to content
uniGUI Discussion Forums
Sign in to follow this  
Wicket

pan large image

Recommended Posts

Hi,

 

I want to be able to view (pan around) large images on a small mobile app. I am using TUnimImage to load the image from the server file system.

 

The screen area is too small for the image, so the screen will only show half the image (for example)

 

What would be the best way to allow the user to pan/scroll around? Possible even zoom in and out?

 

I have looked at using a TUnimScrollbox - but I cant seem to get it to work. 

 

Surely someone has implemented something similar - so any help/pointers/examples would be great.

 

Thanks.

Share this post


Link to post
Share on other sites

Hi,

 

 

What would be the best way to allow the user to pan/scroll around?

 

Can you try with this config ?!:

 

UnimImage -> ClientEvents -> UniEvents -> function beforeInit:

function beforeInit(sender, config)
{
    config.scrollable = true;
}

Share this post


Link to post
Share on other sites

Hi Delphi Developer,

 

This made no difference for my scenario 

Share this post


Link to post
Share on other sites

Any other suggestion? I really only need a simplistic way of being able to pan, so then I can view other parts of the image on the screen, otherwise it is statically in the first of the image and cuts the rest off, with no way of viewing it.

Share this post


Link to post
Share on other sites

Hi,

 

Any other suggestion? I really only need a simplistic way of being able to pan, so then I can view other parts of the image on the screen, otherwise it is statically in the first of the image and cuts the rest off, with no way of viewing it.

 

Ok, we will try

 

Best regards,

Share this post


Link to post
Share on other sites

Farshad, could you add zooming in addition to the panning please.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×