Android 图片毛玻璃的实现方法

来源:互联网 发布:无限极专属网络电视盒 编辑:程序博客网 时间:2024/06/06 07:02

1:Android图片毛玻璃的实现方法

http://blog.csdn.net/fan7983377/article/details/51537337

repositories {

   jcenter()

   mavenCentral()  // GPUImage forAndroid

}

 

dependencies {

   compile 'jp.wasabeef:glide-transformations:2.0.1'

   // If you want to use the GPU Filters

   compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.3.0'

}

Glide.with(MainActivity.this)

        .load(R.drawable.bj)

        //radius为模糊半径,如果不写,默认为25

        .bitmapTransform(new BlurTransformation(MainActivity.this, radius))

       .into(mImageView);

原创粉丝点击