Wiki source code of Get image from [URL] and use as current background
Last modified by admin on 2023/10/01 14:23
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="box infomessage" %) | ||
2 | ((( | ||
3 | Gets an image from a specified URL and uses it as current background. Requires internet connection. | ||
4 | |||
5 | [[image:get-image-from-background-brick.png]] | ||
6 | |||
7 | [[Learn more ~>~>>>doc:Documentation.Web requests.WebHome]] | ||
8 | ))) | ||
9 | |||
10 | (% class="row" %) | ||
11 | ((( | ||
12 | (% class="col-xs-12 col-sm-6" %) | ||
13 | ((( | ||
14 | (% class="box" %) | ||
15 | ((( | ||
16 | ==== **Example** ==== | ||
17 | |||
18 | When the stage is tapped, the background changes to the image requested from the specified URL. | ||
19 | |||
20 | [[image:get-image-from-background-example.png]] | ||
21 | ))) | ||
22 | ))) | ||
23 | |||
24 | (% class="col-xs-12 col-sm-6" %) | ||
25 | ((( | ||
26 | (% class="box" %) | ||
27 | ((( | ||
28 | ==== **Result** ==== | ||
29 | |||
30 | [[[[image:null4.png||alt="Download"]]>>https://share.catrob.at/app/project/941a003b-d8b6-11ea-a5c3-005056a36f47]] | ||
31 | |||
32 | [[image:get-image-from-background-example.gif]] | ||
33 | ))) | ||
34 | ))) | ||
35 | ))) | ||
36 | |||
37 | (% id="gtx-trans" style="position: absolute; left: 4px; top: 345px;" %) | ||
38 | ((( | ||
39 | (% class="gtx-trans-icon" %) | ||
40 | ((( | ||
41 | |||
42 | ))) | ||
43 | ))) |