开发者

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

开发者 https://www.devze.com 2023-03-06 23:01 出处:网络
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.

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消