Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Load external image

Author
Message
Max Tillberg
19
Years of Service
User Offline
Joined: 16th Jul 2005
Location:
Posted: 4th Feb 2018 16:32
I would like to load an external image file into AppGameKit located on a publicly available server and wonder if someone could point me in the right direction?
Sincerely,
Max Tillberg
Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 4th Feb 2018 16:56 Edited at: 4th Feb 2018 17:16
The GetHTTPFile documentation gives an example of this.

Essentially, you set a server host then you call gethttpfile and wait for it to complete. This will place the image in your working directory. You can then load it (LoadImage).

Dont forget to close the http connection and delete it too.

Some code...mainly based from the example of GetHTTPFile

Login to post a reply

Server time is: 2024-11-24 02:37:29
Your offset time is: 2024-11-24 02:37:29