在Android中是否有可能模糊触摸时的部分图像? [英] Is it possible to blur part of image on touch in Android?

查看:84
本文介绍了在Android中是否有可能模糊触摸时的部分图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想模糊图像视图中的特定区域.

i want to blur particular area on image view.

例如我想允许用户在Android中绘制类似于裁剪的矩形, 用户在图像上绘制该矩形后,矩形内的区域将变得模糊 或手指触摸.

eg. i want to allow user to draw rectangle similar to crop in android, once user draws that rectangle on image, the area inside rectangle will be blurred or on finger touch.

我进行了很多搜索,但是大多数示例都说明了如何模糊全图, dint找到任何教程或链接来解释关于仅模糊某些部分的内容 图片.

i searched a lot,but most of the examples explain how to blur full image, dint find any tutorial or link that explains about blurring only some part of an image.

任何帮助将不胜感激.

any help will be really appreciated.

推荐答案

没有什么比这容易!

但是您只能将其像素化,选择目标区域,按两次( Ctrl + -)两次或三次,然后按( Ctrl + + )相同的次数.

But you can only pixelate it, select the targeted area, press (Ctrl+-) twice or thrice, then (Ctrl++) the same number of times.

这篇关于在Android中是否有可能模糊触摸时的部分图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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