I need do draw on Android's Canvas using Blur effect, it is a very simple feature, I need to draw a circular area, which is blurred (the foreground) and the background transparent, I can do everything with manipulating the colour alpha to do it with custom transparency but I need it to be blurred instead of transparent.. any ideas?
Apply radial blur around a fixed focal point in an image. Select one area to keep in focus and control the amount and gradient of the blur. In Photoshop, go to Filter > Blur Gallery and select Iris Blur. Click the pin at the centre of the ring and place it on your focal point.
(For those who are coming back, though this is an old question)
On the Paint object which you are using to draw the Color, set
paint.setMaskFilter(new BlurMaskFilter(8, BlurMaskFilter.Blur.NORMAL))
Then, in Android Manifest.xml, set
android:hardwareAccelerated="false"
for your activity (Blur doesn't work when hardware acceleration is true)
For more explanation refer Android BlurMaskFilter has no effect in canvas.drawOval while text is blurred
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With