lolerisJoin Date: 2009-02-23 Post Count: 1610 |
If one could make a website which, supported the image link, could return the image data in text, "downloading" images from the web to a roblox game would be a piece of caik.
And this idea is pointless if HttpService can fetch image data on it's own. Haven't tried HttpService yet ._.
But just so you know. |
|
UnclearJoin Date: 2011-08-27 Post Count: 17060 |
Well there you go. |
|
digpoeJoin Date: 2008-11-02 Post Count: 9092 |
but how do we set an object's image to that data?
The current method works on ROBLOX automatically polling the content URL and getting it; we can't actually imbed images manually via HttpService. |
|
|
Someone said that you get the source of the page? |
|
digpoeJoin Date: 2008-11-02 Post Count: 9092 |
Let's say we already have the data.
What are you going to do to turn the image into a displayable format? |
|
|
^ That's my point.
Anyways, aside from that, I think I remember that you can also GET images. You can store it in a string maybe? |
|
digpoeJoin Date: 2008-11-02 Post Count: 9092 |
GETting images returns a UTF-8 representation of the image, so storing it in a string would make you see the UTF-8 representation and not the view you want. |
|
|
digpoe, that makes it even easier because you could just do
red = string[(n)%4]
green = string[(n+1)%4]
blue = string[(n+2)%4]
alpha = string[(n+3%4]
With 0 as the starting index. |
|
digpoeJoin Date: 2008-11-02 Post Count: 9092 |
No, you can't.
funfact: I can't actually post the data as SciTE turns it into spaces, or chrome does. but to put it simply;
(0/00)PNG --(file format) (0/00 = ‰)
data of image |
|
um3kJoin Date: 2008-02-28 Post Count: 189 |
This could most certainly work. However, it either needs to be an uncompressed format like BMP or TIFF, or you'll have to write a decompressor in Lua. That's certainly possible, but it would likely be as slow as molasses on Pluto. Also, you couldn't use it as an image in Roblox, you would have to display it as Gui frames, not exactly efficient. |
|
AlyteJoin Date: 2011-10-24 Post Count: 10090 |
Don't even bother. |
|
As8DJoin Date: 2009-12-24 Post Count: 2907 |
Oh no... not >15000 GUI Frames for a 200x200 (small) image again! NOOO! LAGZ!
- As, victim of Galaxi's imgToGuiconvertrur. |
|