How can I blur and dim an image to be used as an activity background?

岁酱吖の 提交于 2019-12-12 05:58:35

问题


Like the title says: I want to blur and darken a downloaded image.
The BlurMaskFilter in the SDK sounds relevant, but I can't find any documentation on it.

Any suggestions?


回答1:


I've only used this once and just for fun (not an expert). Try something like:

paint.setMaskFilter(new BlurMaskFilter(20, Blur.OUTER));

for more there is a nice blog here.



来源:https://stackoverflow.com/questions/6064523/how-can-i-blur-and-dim-an-image-to-be-used-as-an-activity-background

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!