Source code for 'Flower.jpg'?

Transco
Posts: 10
Joined: Mon Apr 20, 2015 2:59 pm
My devices: iPad air 2
iPhone 6+
iPod Touch (latest)

Source code for 'Flower.jpg'?

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Source code for 'Flower.jpg'?

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Source code for 'Flower.jpg'?

Post by Mr. Kibernetik »

If you have problems using your images, then please post a simple example of your code which rejects your image.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Source code for 'Flower.jpg'?

Post by Mr. Kibernetik »

Smart BASIC uses Dropbox cloud storage for files transfer.
Please read documentation, section Notes about activating Dropbox.

Transco
Posts: 10
Joined: Mon Apr 20, 2015 2:59 pm
My devices: iPad air 2
iPhone 6+
iPod Touch (latest)

Re: Source code for 'Flower.jpg'?

Post 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?

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Source code for 'Flower.jpg'?

Post 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.

Transco
Posts: 10
Joined: Mon Apr 20, 2015 2:59 pm
My devices: iPad air 2
iPhone 6+
iPod Touch (latest)

Re: Source code for 'Flower.jpg'?

Post by Transco »

How do I list the directory of the dropbox so I can choose a file to copy?

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Source code for 'Flower.jpg'?

Post 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.

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: Source code for 'Flower.jpg'?

Post 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 :?

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Source code for 'Flower.jpg'?

Post 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 !!! :)

Post Reply