Import Image

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
fko
Posts: 61
Joined: Tue May 20, 2014 2:13 pm

Import Image

Post by fko »

Hi,

In the application i am doing, i would like to let choose the user the image he wants to put in one 'Image Area' ( i think it should be here )...This image should be in 'the gallery'...
The required size of the image ( to fill all the image área ) is giving by me.

I have really no idea about how to do this...:-(
I was reading in some posts in this forum and in the lessons, but I didn't manage to see what i have to do

What should i do?

Thanks in advance.

Regards,
fko
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Import Image

Post by Klaus »

Hi fko,

"Gallery"? Does this mean this is for "mobile"?
That is a bit different thatn the desktop!

Please always note your target platform.


Best

Klaus
fko
Posts: 61
Joined: Tue May 20, 2014 2:13 pm

Re: Import Image

Post by fko »

Hi Klaus,

Sorry for my late answer...:-(
I made one week of holidays and i didn't see your answer before...

So yes, it is for 'mobile'...For the moment i am developping and testing in Desktop, but the idea is to make it for 'mobile'...

regards,
fko
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Import Image

Post by Klaus »

Aha! :D

OK, check -> mobilepickphoto in the dictionary, that is what you need.
fko
Posts: 61
Joined: Tue May 20, 2014 2:13 pm

Re: Import Image

Post by fko »

Hi Kalus,

I looked at "mobilePickPhoto" in the dictionary, but I still have a doubt...:-)

How do i assign the image choosen by the user to the Image Area?

regards,
fko
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Import Image

Post by Klaus »

Hi fko,

"mobilepickphoto" will create a NEW image object on your card!
So you can refer to it a LAST IMAGE and do something like thnis:
...
mobilepickphoto...

## User imported an image from gallery or whatever, now assign that image to your image area:
put last img into img "your special user image object here..."

## We don't need th "mobilepickedphoto" anymore:
delete last img
...
You get the picture :D

You can also search the iOS and Android forum, this has come up very often in the past!


Best

Klaus
Post Reply