Android draw with blur

前端 未结 3 2096
清歌不尽
清歌不尽 2020-12-28 23:20

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 tr

3条回答
  •  礼貌的吻别
    2020-12-28 23:42

    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

提交回复
热议问题