Hello,
I wanted pixel information from image. I tried display.colorSample() but the results weren’t accurate probably because image on screen is placed according to the aspect ratio.
So I went around looking and found byteMap, since it was talked about in one of the forums.
I wanted to get a table of data returned by getBytes() method. But it prints some kinda junk value on the console.
Using this does the job per pixel. But I have to iterate over everything and then add it to the table.
local function GetAlpha (x, y) local index = (y - 1) \* w + x return alpha:byte(index) end
Using getBytes{get_info = true} didn’t do the job of returning a table. Is it broke or am i doing something wrong.