用于创建像素化图像的C#代码 [英] C# code for create pixelation image

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

问题描述

你好

请告知图像如何像素化而不是每个方形像素转换为圆形像素。

h [已删除] n@gmail.com

谢谢。



电子邮件已删除 - OriginalGriff [ / edit]

hello
please advise as to how an image to pixelated and but Instead of each square pixel convert to circle pixel.
h[DELETED]n@gmail.com
Thanks.

[edit]Email removed - OriginalGriff[/edit]

推荐答案

试试这个: http://notes.ericwillis.com/2009/11/pixelate-an-image-with-csharp/ [ ^ ]用于基本像素化,但我强烈建议圆形pixcel会导致更多问题治愈:圆圈不会完美地相互接触(不喜欢正方形)所以你要么有重叠(在这种情况下它可能不会很明显它们是圆圈)或者你会有很大的差距(相当于21.4%)原始图像)没有像素化。
Try this: http://notes.ericwillis.com/2009/11/pixelate-an-image-with-csharp/[^] for basic pixelation, but I woudl strongly suggest that circular pixcels will cause more problems that it would cure: circles do not "but up" to each other nicely (unlikes squares) so you would either have an overlap (in which case it probably won't be apparent they are circles) or you will have large gaps (equilivent to 21.4% of the original image) which is not pixelated.


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

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