of     1   

EchoReaper
#118201818Monday, November 18, 2013 9:07 PM GMT

Because ROBLOX doesn't allow the changing of RGB values in GUI Images(or transparency of the image itself), I decided to just build the images out of 1x1 pixel frames and use the BackgroundColor3 property of the frame to allow me to change the RGB values and the BackgroundTransparency property to change the transparency of the image, but I don't want to manually check each image I have, pixel by pixel, for those properties. I am asking this here because my question involves file formats/hexadecimal values. How would I go about converting hex formatted .png files into a system I could use on ROBLOX?
dennis96411
#118223595Tuesday, November 19, 2013 1:22 AM GMT

I have actually done a proof of concept of this with the help of Absurdism (check my places). I haven't worked on the transparency part though. In the end, it's too resource-heavy for practical usage.
EchoReaper
#118226502Tuesday, November 19, 2013 1:54 AM GMT

I may be able to use that(I'm going to be using images from Terraria which are 16 bit I believe.) How does the algorithm work?
dennis96411
#118227052Tuesday, November 19, 2013 2:00 AM GMT

I had to use a program to convert images I want into text files that contain the RGB values of every pixel. Then I wrote an algorithm in Roblox that parses the text files and create a 1x1 frame for every pixel. It's kind of like what you had in mind.
EchoReaper
#118228545Tuesday, November 19, 2013 2:16 AM GMT

Which program did you use to get the RGB values? That's been my biggest obstacle up until this point.
dennis96411
#118229461Tuesday, November 19, 2013 2:25 AM GMT

ImageMagick's convert utility.
Jetta765214
#118232211Tuesday, November 19, 2013 2:52 AM GMT

I made this a few months ago http://web.roblox.com/Forum/ShowPost.aspx?PostID=113737949 Slightly confusing in how i explain it, but in essence i use python+pygame to open images, then save the image as rgb in a .txt file and set as a global variable, then use a script to use this massive table, and convert it to a gui.
As8D
#118253465Tuesday, November 19, 2013 3:16 PM GMT

Galaxis' programis & ImgToGUI-converterus. Though >15000 Frames will lagz. Erp. - As, well, I use it for heightmaps :I
SCP087Project
#118255013Tuesday, November 19, 2013 4:10 PM GMT

I have a Lua script which turns images into a script, if you want it. It runs quite well with 256x256 images, on my machine at least. All you need is the JSON lua library and the gd lua library (if you have luarocks: luarocks install luajson). luagd can be found at luaforge (dot) net (slash) projects (slash) lua-gd (slash) in sourcecode. I don't know how to compile it, it came with luaforwindows. This is the script: pastebin/nMg4R36n
Prehistoricman
#118255915Tuesday, November 19, 2013 4:36 PM GMT

I basically did the same as digpoe, but before he did it :D He stole mah code and use of the gd library, basically. I don't quite know exactly how he does it, but I have to convert images to truecolour, then get the colour index of each pixel, convert to hex, convert to decimal, done! I'm currently thinking on ways to make conversion quicker, and making things in general more efficient.
SCP087Project
#118255938Tuesday, November 19, 2013 4:36 PM GMT

pre: Lol, it's called reading the documentation.
Prehistoricman
#118256404Tuesday, November 19, 2013 4:51 PM GMT

Digpoe, you've not actually said anything that makes yours better. So far, your arguments have been full quality (which mine supports) and 'cuz', which doesn't mean anything at all. Mine supports variable quality, I'll be working on antialiasing soon, and it can draw to a GUI OR Color3 bricks. Beat it.

    of     1