如何在不使用渲染脚本的情况下模糊图像的特定部分,因为我的minsdk是14。 [英] How to blur the specific part of image without using Render Script,as my minsdk is 14.

查看:75
本文介绍了如何在不使用渲染脚本的情况下模糊图像的特定部分,因为我的minsdk是14。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在不使用渲染脚本的情况下模糊android中图像的特定部分。我正在使用minSdkVersion 14.我想像图像处理应用程序那样动态地制作图像模糊。动态意味着在图像顶部应该有一个可移动的视图,在该视图内部,图像将是清晰的,而不是它应该模糊。

I want to blur the specific part of image in android without using Render Script. I am using minSdkVersion 14. I want to make image blur dynamically like image processing apps do. Dynamically means there should be one movable view on top of image and inside that view, Image will be clear and other than that it should be blurred.

推荐答案

首先应模糊位图:

Android:快速位图模糊?

然后,您必须在中间使用透明将图像蒙版应用于该位图。

Then you have to apply image masking to that bitmap by using transparent in the middle.

屏蔽(裁剪)图像

然后你应该把这个位图作为drawale放到你的可移动图像视图中。

Then you should put this bitmap as drawale to your movable imageview.

这篇关于如何在不使用渲染脚本的情况下模糊图像的特定部分,因为我的minsdk是14。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆