Page 1 of 2

Source code for 'Flower.jpg'?

Posted: Mon Apr 20, 2015 7:32 pm
by Transco
Is the source code for the example program 'flower.jpg' listed some place. I need clarification on how to embed photos in the the program rather than using the Dropbox, and the file format to be used. Even using the Dropbox, all of my photos keep getting rejected with a 'Unsupported file format' error. What I am trying to do is have a series of canned (stored) images that the user can select from (with thumbnails if possible) that will become the background layer and a simple program like paint.txt that will allow him to annotate it in the foreground layer.

Re: Source code for 'Flower.jpg'?

Posted: Mon Apr 20, 2015 7:37 pm
by Mr. Kibernetik
I am not sure I understood your concern, but example program which uses "Flower.jpg" image is "pages.txt" in Interactive Interface section.

Re: Source code for 'Flower.jpg'?

Posted: Mon Apr 20, 2015 7:39 pm
by Mr. Kibernetik
If you have problems using your images, then please post a simple example of your code which rejects your image.

Re: Source code for 'Flower.jpg'?

Posted: Thu Apr 23, 2015 6:12 am
by Mr. Kibernetik
Smart BASIC uses Dropbox cloud storage for files transfer.
Please read documentation, section Notes about activating Dropbox.

Re: Source code for 'Flower.jpg'?

Posted: Thu Apr 23, 2015 12:53 pm
by Transco
I still can't figure out how to move files from the Dropbox to the local file area. I can enable the option and get the dropbox icon in the bottom menu bar. I set it with the arrow pointing from the cloud to local. What's next?

Re: Source code for 'Flower.jpg'?

Posted: Thu Apr 23, 2015 1:21 pm
by Mr. Kibernetik
Transco wrote:I still can't figure out how to move files from the Dropbox to the local file area. I can enable the option and get the dropbox icon in the bottom menu bar. I set it with the arrow pointing from the cloud to local. What's next?
Just copy/paste files between Dropbox and smart BASIC.

Re: Source code for 'Flower.jpg'?

Posted: Thu Apr 23, 2015 2:11 pm
by Transco
How do I list the directory of the dropbox so I can choose a file to copy?

Re: Source code for 'Flower.jpg'?

Posted: Thu Apr 23, 2015 2:17 pm
by Mr. Kibernetik
You don't need to list anything.

When you tap Dropbox icon (bottom right icon) in the files table, you enter Dropbox.
Here you can select/copy/paste files you need.
Then with the same button you can return to Local files storage to select/copy/paste files.

Re: Source code for 'Flower.jpg'?

Posted: Thu Apr 23, 2015 2:32 pm
by Dutchman
Mr. Kibernetik wrote: When you tap Dropbox icon (bottom left icon) in the files table ……
On my display it is the bottom right icon :?

Re: Source code for 'Flower.jpg'?

Posted: Thu Apr 23, 2015 2:35 pm
by Mr. Kibernetik
Dutchman wrote:
Mr. Kibernetik wrote: When you tap Dropbox icon (bottom left icon) in the files table ……
On my display it is the bottom right icon :?
Yes, of course bottom RIGHT !!! :)