像素化图像中code [英] pixelate image in code

查看:235
本文介绍了像素化图像中code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了如何通过code像素化图像的机器人,其结果是多种多样的。

I've searched for how to pixelate an image in android via code, the results are varied.

我发现在这里找到关于如何申请等功效库和教程: HTTP ://xjaphx.word$p$pss.com/learning/tutorials/

I've found libraries and tutorials on how to apply other effects found here: http://xjaphx.wordpress.com/learning/tutorials/

有人可以明确的事情对我来说,什么是对android的飞行

Can someone clear things up for me, what is the simplest way of pixelating an image on the fly in android

此外,它是方便的,如果它是一个功能,我可以有多少轮或多少,我想要的图像pixelating。

Also it would be handy if it was a function that I could how many rounds or how much I wanted the image pixelating.

感谢提前。

推荐答案

要像素化图像将使用近邻的算法,以缩小图像,然后再扩大规模,使用相同的算法最简单的方法。

The simplest way to pixelate the image would be to scale image down using "nearest neighbour" algorithm, and then scale up, using the same algorithm.

过滤在图像上试图找到的平均花费更多的时间,但实际上并没有放弃在结果质量的改进,毕竟你故意想让你的图像失真。

Filtering over the image trying to find an average takes much more time, but does not actually give any improvements in result quality, after all you do intentionally want your image distorted.

这篇关于像素化图像中code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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