Hi!
This is a question to the lib "Native DirectBuffer" (see: https://www.b4x.com/android/forum/threads/native-directbuffer-library.30891 )
I'm drawing a Bitmap in an ImageView. Later I have to modify it (for example: Change all black Pixel to blue Pixel).
At first I was using Canvas.Bitmap.GetPixel and Canvas.DrawPoint. It works, but it wasn't very fast.
Then I found this lib. I used it and it speeds up this task by factor 289!! I couldn't believe it. Really a great lib!
@keylab83: Congratulations, you did a great job!!!
So I only have one question: is there any reason, not to use this lib in newer apps (because the lib is from 2013 and maybe there are any problems with newer Android versions)?
Thank you & kind regards!
Wolfgang
This is a question to the lib "Native DirectBuffer" (see: https://www.b4x.com/android/forum/threads/native-directbuffer-library.30891 )
I'm drawing a Bitmap in an ImageView. Later I have to modify it (for example: Change all black Pixel to blue Pixel).
At first I was using Canvas.Bitmap.GetPixel and Canvas.DrawPoint. It works, but it wasn't very fast.
Then I found this lib. I used it and it speeds up this task by factor 289!! I couldn't believe it. Really a great lib!
@keylab83: Congratulations, you did a great job!!!
So I only have one question: is there any reason, not to use this lib in newer apps (because the lib is from 2013 and maybe there are any problems with newer Android versions)?
Thank you & kind regards!
Wolfgang