import image in standalone
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
import image in standalone
Is it possible to import an image in a standalone stack.
If yes what script?
thanks, Rob
If yes what script?
thanks, Rob
Re: import image in standalone
To import an image to a LC stack is possible, but if you mean standalone app then I'm almost sure that you can't.
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit
Re: import image in standalone
Hi Rob,
of course you can import an image into a standalone:
...
import paint from file "path/to/file.jpg"
...
which will, of course, NOT get saved, because it is a standalone
You will need to save it before closing your app and "import" it again,
when the app starts the next time.
Best
Klaus
of course you can import an image into a standalone:
...
import paint from file "path/to/file.jpg"
...
which will, of course, NOT get saved, because it is a standalone

You will need to save it before closing your app and "import" it again,
when the app starts the next time.
Best
Klaus
Re: import image in standalone
Hi Klaus,
Good that you clarified it, at least to some extend.
But...
Can you please clarify?
Thanks.
keram
Good that you clarified it, at least to some extend.
But...
How do I open that standalone (for example apk file)?Klaus wrote:of course you can import an image into a standalone:
and where to put this line?Klaus wrote:import paint from file "path/to/file.jpg"
This also not clear for me since my app do not have any Save nor Import functions...Klaus wrote:You will need to save it before closing your app and "import" it again,
when the app starts the next time.
Can you please clarify?
Thanks.
keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit
Re: import image in standalone
Hi Keram,
Just like storing "preferences" in a separate file in the users "prefs" or "documents" folder.
In the end it depends where and how you need to import an image.
Best
Klaus
I thought we were talking about importing an image at runtime, means the app is open and running!?keram wrote:How do I open that standalone (for example apk file)?Klaus wrote:of course you can import an image into a standalone:
Wherever you want to import an image!keram wrote:and where to put this line?Klaus wrote:import paint from file "path/to/file.jpg"

Yes, that's what I saidkeram wrote:This also not clear for me since my app do not have any Save nor Import functions...Klaus wrote:You will need to save it before closing your app and "import" it again,
when the app starts the next time.

Just like storing "preferences" in a separate file in the users "prefs" or "documents" folder.
In the end it depends where and how you need to import an image.
Best
Klaus
Re: import image in standalone
Hi Keram,
Check out this little stack
http://forums.livecode.com/viewtopic.ph ... 68#p103136
Just add some photos and text and then look in Documents/myPlants/Preferences.txt
Read that file and you'll see how it works.
Add breakpoints and step through the code.
Simon
Check out this little stack
http://forums.livecode.com/viewtopic.ph ... 68#p103136
Just add some photos and text and then look in Documents/myPlants/Preferences.txt
Read that file and you'll see how it works.
Add breakpoints and step through the code.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: import image in standalone
Thanks Simon,
It's a really good example.
keram
It's a really good example.
keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit