在vb.net中更改图像大小和分辨率(Windows应用程序) [英] Change Image size and resolution in vb.net (Windows Application)
本文介绍了在vb.net中更改图像大小和分辨率(Windows应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在vb.net(Windows应用程序)中更改图像分辨率.
谢谢和问候,
Sivasankaran G
Hi,
How to change the image resolution in vb.net (Windows Application).
Thanks and Regards,
Sivasankaran G
推荐答案
这称为图像重采样.另请参阅我对Abhinav答案的评论.
可以在这里找到一个好的.NET解决方案:
http://stackoverflow.com/questions/249587/high-quality-image-scaling- c-sharp [ ^ ].
回应OP的其他解释要求.
我不知道还有什么要解释的,因为从我所引用的讨论中应该可以清楚地了解到.也许您需要更好地了解重采样的概念.请参阅:
http://en.wikipedia.org/wiki/Resampling_%28bitmap%29 [ ^ ].
-SA
This is called image resampling. Please see also my comment to the answer by Abhinav.
One good .NET solution could be found here:
http://stackoverflow.com/questions/249587/high-quality-image-scaling-c-sharp[^].
In response to OP''s request for additional explanation.
I don''t know what else to explain as it should be clear from the discussion I''ve referenced. Perhaps you need to understand better the concept of resampling. The please see:
http://en.wikipedia.org/wiki/Resampling_%28bitmap%29[^].
—SA
看看TransformedBitmap
^ ].
这将允许您更改图像的大小.
更改图像分辨率并不是那么容易.缩放图像会使图像看起来更大-但其显示方式会有所变化.它将显得更柔和. 裁剪和缩放图像 [
Have a look at theTransformedBitmap
class[^].
This would allow you to change the size of your image.
Changing the image resolution is not that easy. Scaling an image will make an image look bigger - but there will be changes in the way it appears. It will appear softer. Cropping and Scaling Images[^] should help you with scaling.
Scaling is based on one of various alogrithms that you could apply.
这篇关于在vb.net中更改图像大小和分辨率(Windows应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文