Image Problems

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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
Quinton B.
Posts: 87
Joined: Mon Mar 20, 2017 5:13 am

Image Problems

Post by Quinton B. » Mon May 13, 2019 1:00 pm

I'm trying for the image that I select from my mobile library to be put neatly into an image, but it doesn't work correctly, this is what happens: https://drive.google.com/file/d/1hUzT_n ... sp=sharing

Code: Select all

on mouseUp
   # the X, Y dimensions for an image are not supported on Android and are ignored
   mobilePickPhoto "library"
   if the result is text then
      put the result into image "The_Image"
   end if
end mouseUp

Klaus
Posts: 10921
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Image Problems

Post by Klaus » Mon May 13, 2019 1:28 pm

Hi Quinton,

from the dictionary, which is really better than its reputation, about "mobilepickphoto":
...
If the user cancels the pick, the command returns with result cancel.
Otherwise a new image object is created on the current card of the
default stack containing the chosen image.
...

Best

Klaus

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 3182
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Image Problems

Post by richmond62 » Mon May 13, 2019 2:08 pm

I've always had problems with my image: ask Klaus.

Klaus
Posts: 10921
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Image Problems

Post by Klaus » Mon May 13, 2019 2:09 pm

So true! :D :D :D

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”