Hi,
I use getPixels() to get pixels from the entire image and I realize that I can read one pixel at a time defining 0,0 or 0,1 and so on, but everytime I use that funcion, it slows the app down. Knowing that, I want to read the entire image at once, store it into an Integer and read later with x and y.
Here I read the entire image, but how can i later read an x and y coordinate? Like this:
Obviously that doesn't work, but I can't figure out how to make that work.
I use getPixels() to get pixels from the entire image and I realize that I can read one pixel at a time defining 0,0 or 0,1 and so on, but everytime I use that funcion, it slows the app down. Knowing that, I want to read the entire image at once, store it into an Integer and read later with x and y.
B4X:
Dim p() As Int
p=getPixels(Canvas1.Bitmap,0,X,Y,Canvas1.Bitmap.Width,Canvas1.Bitmap.Height)
Here I read the entire image, but how can i later read an x and y coordinate? Like this:
B4X:
p(12,49)