In B4A I can do a mass extraction of a bitmap's pixels by:
B4X:
Dim pixels(bmp.Width * bmp.Height) As Int
Dim jo = bmp As JavaObject
jo.RunMethod("getPixels", Array As Object(pixels, 0, bmp.Width, 0, 0, bmp.Width, bmp.Height))
Which seems to be incredibly efficient.
In B4I I have been looking all over the forums for the last 6 hours, experimented with iRandomAccessFile etc - all to no avail - the only thing I have been able to find is JanPRO's Objective C pixel-by-pixel solution:
I can now convert the bitmap to bytes and am then using ByteConverter.IntsFromBytes from the iRandomAccessFile library to extract pixels en mass, but this seems slow compared to the B4A solution in my first post - is there a faster way to extract Int from Byte?