Manabu-GT / EtsyBlur

EtsyBlur is an Android library that allows developers to easily add a glass-like blur effect implemented in the Etsy app.
Apache License 2.0
757 stars 151 forks source link

Blur#execute() does not honor the value of BlurConfig#overlayColor #28

Open nikwen opened 7 years ago

nikwen commented 7 years ago

Example code:

Bitmap bitmap = BitmapFactory.decodeResource(resources, R.mipmap.example);

BlurConfig.Builder builder = new BlurConfig.Builder();
builder.overlayColor(Color.argb(136, 255, 255, 255)); // semi-transparent white
Blur blur = new Blur(this, builder.build());
Bitmap result = blur.execute(bitmap, false);

Expected result:

The resulting bitmap has a semi-transparent white overlay painted on top of it.

Actual result:

The overlay is missing. The BlurEngines ignore the value of BlurConfig#overlayColor.