调整datagridview中的图像大小 [英] Resize images within the datagridview
本文介绍了调整datagridview中的图像大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨:玫瑰:
如何在datagridview上显示图像将在vb.net中调整大小
例如分辨率150 * 150
Hi:rose:
How should images displayed on datagridview Will resize in vb.net
For example Resolution 150 * 150
推荐答案
您的问题没有得到很好的解释。如何在DataGridView
中显示图像?您使用的是哪种列类型?如果您使用的是DataGridViewImageColumn
,则可以设置< a href =http://msdn.microsoft.com/en-us/library/ system.windows.forms.datagridviewcolumn.autosizemode.aspx> AutoSizeMode< / a> [< a href =http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn。 autosizemode.aspxtarget =_ blanktitle =New Window> ^< / a>]
或宽度 [ ^ ]
如需了解更多信息,请阅读DataGridViewImageColumn [ ^ ]并查看pag底部的示例e。
Your question is not well explained. How are you displaying your images in yourDataGridView
? What column type are you using? If you are usingDataGridViewImageColumn
you can set the<a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn.autosizemode.aspx">AutoSizeMode</a>[<a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn.autosizemode.aspx" target="_blank" title="New Window">^</a>]
or Width[^]
For further info read DataGridViewImageColumn [^] and see the example in the bottom of the page.
查看此CP文章,观察图像的大小调整。
DataGridView中的图像缩略图预览 [ ^ ]
Have a look this CP Article, observe resize of Image.
Image Thumbnail Preview in DataGridView[^]
非常感谢亲爱的朋友们
谢谢问题解决了:玫瑰:
Thank you very dear friends
Thanks problem solved:rose:
这篇关于调整datagridview中的图像大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文