Android图片模糊库:Blurry

fefre 9年前

Blurryis是一个易于使用的Android图片模糊库。

logo

Screenshot

Demo

How do I use it?

Setup

Dependencies
dependencies {      compile 'jp.wasabeef:blurry:0.0.3' }
Enable Renderscript
android {      defaultConfig {          renderscriptTargetApi 22 renderscriptSupportModeEnabled true }  }

Functions

Overlay

Parent must be ViewGroup

Blurry.with(context).radius(25).sampling(2).onto(rootView);

Into

Blurry.with(context).capture(view).into(imageView);

Blur Options

  • Radius
  • Down Sampling
  • Color Filter
  • Asynchronous Support
Blurry.with(context)    .radius(10)    .sampling(8)    .color(Color.argb(66, 255, 255, 0))    .async()    .onto(rootView);

Requirements

Android 2.3+

项目主页:http://www.open-open.com/lib/view/home/1438006540410