Amit D.Shinde said:
I am Using VB.Net 2002
I want to Insert Thumbnails of Image files like .bmp, .jpg etc
in my form
Have a look at the 'Image.GetThumbnailImage' method.
If you want to be able to specify interpolation mode:
\\\
Dim bmp As New Bitmap( _
"C:\Lagoon1024x768.bmp" _
)
Dim bmp2 As New Bitmap( _
bmp.Width * 0.1, _
bmp.Height * 0.1, _
Imaging.PixelFormat.Format24bppRgb _
)
Dim g As Graphics = Graphics.FromImage(bmp2)
' Select/change interpolation mode here.
g.InterpolationMode = _
Drawing.Drawing2D.InterpolationMode.HighQualityBicubic
' Draw image using specified interpolation mode.
g.DrawImage(bmp, 0, 0, bmp2.Width, bmp2.Height)
g.Dispose()
Me.PictureBox1.Image = bmp2
bmp2.Save("C:\foo.bmp")
..
..
..
///