Hi,
Is there a alternative method to GetPixel? Maybe with JavaObejct or something?
I already found a code here, but it throws an error everytime I try to read the Int value. (https://www.b4x.com/android/forum/threads/getpixels-from-a-bitmap.41999/#content)
I want to read an entire Canvas and then put the values in a loop to read those and do further processing...
Thanks for the reply.
I get that I cannot convert NumberToString.
How do I use that function in that link?
Is that an ItemArray, An Int or something else?
I do not understand how to get values from that code...
That's my question. Thanks ^^
pxlTest(0) gives the first pixel ! Not pxlTest(1) !
pxlTest(pxlTest.Length - 1) gives the last pixel.
pxlTest(pxlTest.Length - 2) gives the last but one pixel.
etc.
pxlTest is an Array of Ints (integers) not a String !
Length is the length, number of items, of the Array !
The count begins with 0 so the first item is pxlTest(0) and the last item is pxlTest(pxlTest.Length - 1).
If you Dim an Array like Dim MyVariable(200) As Int, the last item in the array is MyVariable(199) and not MyVariable(200).
MyVariable.Length = 200, but the last item is 199 so MyVariable.Length - 1.