How can I blur and dim an image to be used as an a

2019-08-22 20:57发布

问题:

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.