如何在WinForm的ListView中使图像缩放 [英] how to make zoom for image in listview in winform
本文介绍了如何在WinForm的ListView中使图像缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我使用此代码在winform的listview中显示了文件夹中的图像
hi all
i displayed images from folder in listview in winform using this code
DirectoryInfo dir = new DirectoryInfo(@"D:\image");
foreach (FileInfo file in dir.GetFiles())
{
this.imageList1.Images.Add(Image.FromFile(file.FullName));
}
for (int j = 0; j < this.imageList1.Images.Count; j++)
{
ListViewItem item = new ListViewItem();
item.ImageIndex = j;
this.listView1.Items.Add(item);
}
而且我想用图像显示图像的名称并使用户能够缩放图像,但是我不知道如何显示名称并进行缩放
请帮忙
谢谢u
and i want to display the name of image with image and enable user to make zoom for image but i do not know how to display name and make zoom
please help
thank u
推荐答案
ImageListView是一个.NET 2.0控件,用于显示图像文件列表:
ImageListView [ ^ ]
ImageListView is a .NET 2.0 control for displaying a list of image files:
ImageListView[^]
这篇关于如何在WinForm的ListView中使图像缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文