Hi,
I use this line of code to add images to a imagelist, and link it to listview, but it is very very slow. Up to 40 seconds to add 100 images.
Private Sub create()
Dim img As System.Drawing.Image
Dim imagepatha As String
imagepatha = "C:\ImageInput\imag1.tif"
img = New System.Drawing.Bitmap(imagepathA)
ImageList1.Images.Add(img)
img.Dispose()
End Sub
I have also used, with no difference
img = new System.Drawing.Image.FromFile(ImagePathA)
1.- If a do addrange will it help. Can some one post a addrange example
imagelist.images.addrange(¿?)
2.- Would a multithreading help?
3.- Other suggstion?
Thanks,
I use this line of code to add images to a imagelist, and link it to listview, but it is very very slow. Up to 40 seconds to add 100 images.
Private Sub create()
Dim img As System.Drawing.Image
Dim imagepatha As String
imagepatha = "C:\ImageInput\imag1.tif"
img = New System.Drawing.Bitmap(imagepathA)
ImageList1.Images.Add(img)
img.Dispose()
End Sub
I have also used, with no difference
img = new System.Drawing.Image.FromFile(ImagePathA)
1.- If a do addrange will it help. Can some one post a addrange example
imagelist.images.addrange(¿?)
2.- Would a multithreading help?
3.- Other suggstion?
Thanks,