Hello to all, I am using this code for upload image (jpg.) from my computer, and in PictureBox in Size Mode I am using "StretchImage".
But the problem is, that it kills quality of picture (Picture Box is set in size: 230; 125), any idea, what to do, that will not destroy quality of image...
Thanks to all, for help...
Code:
Dim dlg As New OpenFileDialog
dlg.Filter = "Picture File (*.jpg)|*.jpg|Picture File (*.jpeg)|*.jpeg|All files (*.*)|*.*"
If dlg.ShowDialog = Windows.Forms.DialogResult.OK Then
TextBox1.Text = dlg.FileName
PictureBox1.Image = Image.FromFile(dlg.FileName)
End IfThanks to all, for help...