如何在应用程序文件夹中调整图像大小并在gridview中显示调整大小的图像 [英] how to resize images in application folder and display resize images in gridview
本文介绍了如何在应用程序文件夹中调整图像大小并在gridview中显示调整大小的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请告诉我如何将图像转换为调整大小的图像,例如asp.net中的某些高度和宽度
感谢
Pls, tell me how to convert images to resize image, like some height and width in asp.net
Thanks
推荐答案
Bitmap类具有getThumbnail
函数,该函数可以接受高度和宽度.您可以使用save
功能保存它.尽管此功能的运行速度稍慢,但仍可方便使用.
祝你好运.
The Bitmap class has agetThumbnail
function which accepts a height and width. You may save it using thesave
function. Though this function works little slower it is handy available.
Good luck.
这篇关于如何在应用程序文件夹中调整图像大小并在gridview中显示调整大小的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文