L liulifeng77 Active Member Licensed User Longtime User Apr 9, 2018 #1 hi, When I was working on pictures, I used "bimap.getpixel", but it is very slow. Is there any way to make it faster? Thanks.
hi, When I was working on pictures, I used "bimap.getpixel", but it is very slow. Is there any way to make it faster? Thanks.
Erel B4X founder Staff member Licensed User Longtime User Apr 9, 2018 #2 GetPixel itself cannot be made faster. It might be faster to get all pixels at once though it is more complicated. What exactly are you doing? Upvote 0
GetPixel itself cannot be made faster. It might be faster to get all pixels at once though it is more complicated. What exactly are you doing?
L liulifeng77 Active Member Licensed User Longtime User Apr 9, 2018 #3 I want find a retangle filled pure color(green or red) from a picture.if check the pixel one by one, it is too slow.any suggestions?thanks. Upvote 0
I want find a retangle filled pure color(green or red) from a picture.if check the pixel one by one, it is too slow.any suggestions?thanks.
Erel B4X founder Staff member Licensed User Longtime User Apr 9, 2018 #4 Getting all pixels at once: https://www.b4x.com/android/forum/threads/get-image-pixels.91666/ Upvote 0
L liulifeng77 Active Member Licensed User Longtime User Apr 10, 2018 #5 wow,it is so fast. thanks. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 10, 2018 #6 Check BitmapCreator if you want to do the other side of the conversion, convert an array of bytes to an image. Upvote 0
Check BitmapCreator if you want to do the other side of the conversion, convert an array of bytes to an image.