android实时高斯模糊
16lz
2021-01-24
以前自己写过一个高斯模糊的工具类,是把bitmap进行处理,最近要用结果找不到了,写起来有麻烦,还好现在有相关开源框架,特此记录一下。
框架地址
使用方法
Adding to project
Add dependencies in your build.gradle
:
dependencies { implementation 'com.github.mmin18:realtimeblurview:1.2.1'}
Support API level < 19
The following step is only required if your minSdkVersion < 19, or you use renderscript support mode.
Both AndroidX and Android Support Library is supported.
android {buildToolsVersion '24.0.2' // Use 23.0.3 or higherdefaultConfig {minSdkVersion 15renderscriptTargetApi 19renderscriptSupportModeEnabled true // Enable RS support}}
Add proguard rules if necessary:
-keep class android.support.v8.renderscript.** { *; }-keep class androidx.renderscript.** { *; }
只需要在你的布局上盖一层下面的view,就能实时高斯模糊了
更多相关文章
- Android(安卓)Studio 3.1.1更新问题Could not get unknown prope
- Android(安卓)- match_parent 和 fill_parent差异
- Android(安卓)数据库框架OrmLite的使用(一)
- android 自定义View设置自定义监听 框架(监听自定义字符)
- android CTS测试使用方法
- Android(安卓)OpenGL ES 开发教程(7):创建实例应用OpenGLDemos程
- Android之MTP框架和流程分析
- Android(安卓)开源框架
- android下usb框架系列文章---(4)android下的光盘功能控制