C#中的图像模糊问题 [英] Image Blur problem in C#

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

问题描述

将图像从图像列表拍摄到图片框时,它完全变得模糊了.

While taking image from imagelist to picturebox, it is totally getting blurred. What can be done to get image without blur?

推荐答案

确保每个图像的尺寸与 PictureBox.SizeMode [ ^ ]设置为AutoSize.

/ravi
Ensure the dimensions of each image match the ImageList.ImageSize[^] property of your image list. Also ensure the PictureBox.SizeMode[^] is set to AutoSize.

/ravi


发生这种情况的常见原因是,如果使用的图像文件的大小比为其分配的图片框小得多.该控件将拉伸图像以使其适合,但是该拉伸算法将导致图像严重模糊,尺寸的差异越大,指数增长就越严重.
解决方案是找到正在使用的图像的较大版本,该图像的大小与您要使用的图片框控件的大小接近.
The common reason for that to happen is if you use an image file that is much smaller in size than the picture box you are assigning it to. The control will stretch the image to fit, but that stretching algorithm will result in severe blurring of the image which gets exponentially worse the greater the difference in size.
The solution is to either find a larger version of the image you are using, one that is as close to the size of the picture box control you want to use.


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

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