views:

363

answers:

1

Hi, 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?

A: 

If you're not gonna need to manipulate it afterwards you could just draw to a buffer and blur it yourself pixel by pixel, then blit that buffer to screen when you need to paint it.

Or this: http://developer.android.com/reference/android/graphics/BlurMaskFilter.Blur.html

tm1rbrt
Well, BlurMaskFilter, will not cut it since it will only blur the edges, I need the blur to be evenly distributed trough the object (circle), and with blurmaskfilter, I can only "sharpen the edges"
Tancho