Just starting out? Need help? Post your questions and find answers here.
Stefan
 
Posts: 23
Joined: Mon Feb 05, 2018 9:44 pm

Upload and download pictures

by Stefan Sat Feb 10, 2018 10:04 am

How can I upload and download pictures?
falsam
 
Posts: 253
Joined: Mon May 05, 2014 9:49 pm
Location: France

Re: Upload and download pictures

by falsam Sat Feb 10, 2018 1:18 pm

http://www.spiderbasic.com/showcase/onlineviewer/

Select Image and click play button ;)
➽ Windows 10 - JDK 1.8 - SB 2.20 - Android 5.5
Mood
http://falsam.com

Sorry for my poor english
Stefan
 
Posts: 23
Joined: Mon Feb 05, 2018 9:44 pm

Re: Upload and download pictures

by Stefan Sat Feb 10, 2018 11:00 pm

Which Button? Wrong example?



; ------------------------------------------------------------
;
; SpiderBasic - 2D Drawing example file
;
; (c) Fantaisie Software
;
; ------------------------------------------------------------
;

If OpenWindow(0, 100, 200, 300, 200, "2D Drawing Test", #PB_Window_TitleBar)

; Create an offscreen image, with a green circle in it.
; It will be displayed later
;
If CreateImage(0, 300, 200)
If StartDrawing(ImageOutput(0))
Box(0, 0, 300, 300, RGB(230,230,230)) ; Set the background to white

Circle(100,100,50,RGB(0,0,255)) ; a nice blue circle...

Box(150,20,20,20, RGB(0,255,0)) ; and a green box

FrontColor(RGB(255,0,0)) ; Finally, red lines..
For k=0 To 20
LineXY(10,10+k*8,200, 0)
Next

DrawingMode(#PB_2DDrawing_Transparent)
BackColor(RGB(0,155,155)) ; Change the text back and front colour
FrontColor(RGB(0,0,0))
Text$ = "Hello World !"

LoadFont(0, "times", 30)
DrawingFont(FontID(0))

DrawText(10, 150, Text$)

StopDrawing()
EndIf
EndIf

; Create a gadget to display our nice image
;
ImageGadget(0, 0, 0, 300, 200, ImageID(0))
EndIf
User avatar
Peter
 
Posts: 479
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1

Re: Upload and download pictures

by Peter Sat Feb 10, 2018 11:18 pm

Stefan wrote:Which Button? Wrong example?

falsam wrote:Select Image and click play button

Image
Stefan
 
Posts: 23
Joined: Mon Feb 05, 2018 9:44 pm

Re: Upload and download pictures

by Stefan Sun Feb 11, 2018 11:56 am

I see, I shall use the Image example.
And then I shall replace this:
LoadImage(0, "Data/SpiderBasicLogo.png")

with

LoadImage(0, "http://homepage.com/pic/apicture.jpg")


But how can i upload a picture?
Dirk Geppert
 
Posts: 58
Joined: Fri Sep 22, 2017 7:02 am

Re: Upload and download pictures

by Dirk Geppert Mon Feb 12, 2018 9:54 am

Return to Coding Questions

Who is online

Users browsing this forum: No registered users and 1 guest