I'm sure I've done this before but I can't remember how
So I have an RGBA bitmap that I've loaded into a variable tile image
Each value is the 32bit representation of a pixel
How can I convert it to the same format as you get from the pixels of costume reporter?
I feel there's a shortcut available to me somewhere to save me the trouble of decoding the integers
Ta for that but it turns out my data isn't quite right - it's not actually integers
It's sort of in bytes (but not quite!)
The data length should be exactly 520000 but it looks like some some of the byes are being returned as 16bit values - very strange - I need to work out what's going on!
I'm down a deep rabbit hole
I'm getting my data via my MQTT extension and it turns out that JavaScript fails to convert it cleanly and gets confused due to unicode
The use of the spread operator ("..."), which simulates calling a proc with zillions of parameters, usually causes a problem.
But it seems that "typed array".toString() is skewed on your platform.
In this case toString() should return text "53,89,137..." without any unicode consideration.