我是靠谱客的博主 标致牛排,这篇文章主要介绍android Blur模糊效果,现在分享给大家,希望可以做个参考。

复制代码
1
2
3
4
5
6
7
8
9
转载: http://stackoverflow.com/questions/14988990/android-fast-bitmap-blur/14988991#14988991 final RenderScript rs = RenderScript.create( myAndroidContext ); final Allocation input = Allocation.createFromBitmap( rs, photo, Allocation.MipmapControl.MIPMAP_NONE, Allocation.USAGE_SCRIPT ); final Allocation output = Allocation.createTyped( rs, input.getType() ); final ScriptIntrinsicBlur script = ScriptIntrinsicBlur.create( rs, Element.U8_4( rs ) ); script.setRadius( myBlurRadius /* e.g. 3.f */ ); script.setInput( input ); script.forEach( output ); output.copyTo( photo );

最后

以上就是标致牛排最近收集整理的关于android Blur模糊效果的全部内容,更多相关android内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(59)

评论列表共有 0 条评论

立即
投稿
返回
顶部