Mobile crop issue

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
hrcap
Posts: 141
Joined: Mon Jan 14, 2019 5:20 pm

Mobile crop issue

Post by hrcap » Sat Apr 20, 2019 11:34 pm

Afternoon All

I have run into an issue in that when you crop an image on mobile you can't then place it into an 'image holder'

I have attached a simplified example, am I doing something wrong / is there a work around

Please run the stack on mobile (iOS simulator) to see the issue)



Many Thanks
Attachments
Crop and place in frame mobile.livecode.zip
(9.03 KiB) Downloaded 187 times

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7392
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Mobile crop issue

Post by jacque » Sun Apr 21, 2019 4:16 pm

I think you'd get more responses if you describe what you want to do, post the handlers, and then then tell us how it fails. That way people don't need to set up a simulator and do a build just to answer. Often we can see what's going on just by reading the scripts.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

hrcap
Posts: 141
Joined: Mon Jan 14, 2019 5:20 pm

Re: Mobile Snapshot issue

Post by hrcap » Mon Apr 22, 2019 1:06 pm

Hi Jacque

I hope that you are having a good Easter. Thank you very much for the reply.

This problem has slightly evolved since I posted it, when taking a snapshot on a mobile device I then cannot use the snapshot

The blow script functions on desktop but not on mobile?

Any input would be much appreciated.


Many Thanks


Code: Select all


--snapshot only seems to work within this script when used on desktop
      -- now takes a snapshot of the cropped image and replaces the image prior to the crop with the snapshot
      -- this will ensure that the image stays the correct size
      
      import snapshot from image g_name_holder_image
      
      set the name of it to t_snapshot_of_resized
      
      --now deletes the original pic
      put empty into image g_name_holder_image --empties the holder ready for the snapshot to be put into it
      
      
      -- now renames the snapshot to become the profile pic
      put image t_snapshot_of_resized into image g_name_holder_image --puts the snapshot into the holder
      
      
      delete image t_snapshot_of_resized --deletes the snapshot because it is no longer needed


Post Reply