In B4A I can do a mass extraction of a bitmap's pixels by:
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:
https://www.b4x.com/android/forum/threads/getpixelcolor.56922/#post-400769
which is as slow as a wet week if you do the obvious and put it inside a double set of For/Next.
Is there any efficient way to do this?
Thanks in anticipation...
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:
https://www.b4x.com/android/forum/threads/getpixelcolor.56922/#post-400769
which is as slow as a wet week if you do the obvious and put it inside a double set of For/Next.
Is there any efficient way to do this?
Thanks in anticipation...