Android圖片模糊庫:Blurry

fefre 9年前發布 | 32K 次閱讀 Blurry Android開發 移動開發

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.baiduhome.net/lib/view/home/1438006540410

 本文由用戶 fefre 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!