how can i find the size of an image ?
Im using this code, and I want to check the size of the image before adding it to the list view, if the image size is 96x96 then i add it, if not i skip it.
if u want to know why i use this code, http://www.vbforums.com/showthread.php?t=505807Code:For Each fname As String In files Dim bmp As Bitmap Dim streamreader As New System.IO.StreamReader(fname) Try bmp = New Bitmap(Image.FromStream(streamreader.BaseStream)) Me.ImageList1.Images.Add("", bmp) ListView1.Items.Add("", i) Catch ex As Exception Finally streamreader.Close() End Try i = i + 1 Next
ie: how can i find the size of an image in an imagelist?




Reply With Quote