View previous topic :: View next topic |
Author |
Message |
Lynxz Gaming Expert Cheater Reputation: 4
Joined: 01 Jul 2017 Posts: 208 Location: help
|
Posted: Fri Feb 23, 2018 8:15 am Post subject: CEImage using image link [help] |
|
|
so i wanna to make a ceimage link to image website
example http://www.growtopiagame.com/worlds/parkour.png
using link no manual how?
_________________
my english is bad
discord : rynx#9828 |
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Fri Feb 23, 2018 9:12 am Post subject: |
|
|
add an onclick event that does shellExecute(the url)?
_________________
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Fri Feb 23, 2018 10:34 am Post subject: |
|
|
Quote: | so i wanna to make a ceimage link to image website |
Maybe it's mean 'make a CEImage with get the image from a website link', is it?
If true :
Code: | function createPictureFromURL(url)
local http = getInternet()
local file = http.getURL(url)
http.destroy()
local picture = createPicture()
local stream = createStringStream(file)
picture.loadFromStream(stream)
return picture
end
url = 'http://www.growtopiagame.com/worlds/parkour.png'
LinxPic = createPictureFromURL(url)
if form == nil then
form = createForm()
end
if image == nil then
image = createImage(form)
end
if picture == nil then
picture = LinxPic
image.setPicture(picture)
form.width, form.height = 700,700
image.Height = form.Height
image.Width = form.Width
image.Stretch = true
end
form.show() |
Description: |
|
Filesize: |
207.65 KB |
Viewed: |
4175 Time(s) |
|
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Last edited by Corroder on Fri Feb 23, 2018 11:02 am; edited 1 time in total |
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Fri Feb 23, 2018 10:44 am Post subject: |
|
|
Corroder wrote: | Quote: | so i wanna to make a ceimage link to image website |
Maybe it's mean 'make a CEImage with get the image from a website link', is it? | possible, if so then I suppose you could use something like (untested)
Code: | local net = getInternet()
local img = net.getURL(imageurl)
local stream = createMemoryStream()
stream.write(stringToByteTable(img))
--form_name.image_name
CETrainer.CEImage1.Picture.LoadFromStream(stream)
stream.destroy() | alternatively you could write it to a file and use CETrainer.CEImage1.loadImageFromFile(filepath)... not sure which is better
_________________
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Fri Feb 23, 2018 11:05 am Post subject: |
|
|
FreeER
Quote: | possible, if so then I suppose you could use something like (untested) |
It is possible, I am also make some code on my post EDIT above.
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL |
|
Back to top |
|
|
Lynxz Gaming Expert Cheater Reputation: 4
Joined: 01 Jul 2017 Posts: 208 Location: help
|
Posted: Fri Feb 23, 2018 5:02 pm Post subject: |
|
|
Wow work thanks
now i can make custom player position with worlds too xD
thx! Corroder and FreeEr Again !
_________________
my english is bad
discord : rynx#9828 |
|
Back to top |
|
|
|