I am struggling to get Bitmaps blurred using Android.
I have seen a lot of information about using a simple kernel like
0 0 0 5 0 0 0
0 5 18 32 18 5 0
0 18 64 100 64 18 0
5 32 100 100 100 32 5
0 18 64 100 64 18 0
0 5 18 32 18 5 0
0 0 0 5 0 0 0
My problem is that I am really not sure how to multiply this with my Bitmap in an efficient way.
Should I go through every pixel and
image.getPixel(x, y)
while storing those values to a new array (so I don't have to get those values over and over again) and then go through the array and for each value add up the surrounding values multiplied by the corresponding field in the kernel divided by 1068 (in the case of the above kernel (= all entries summed up))?
Is there any better way to do this? Is there a simple solution for the borders?
Or is there even something available in the Android SDK I missed?